smtp/imap/webmail fully working tested

This commit is contained in:
Aeris 2018-11-26 23:02:11 +01:00
parent ba11fccaf4
commit a99736499d
2 changed files with 22 additions and 12 deletions

View file

@ -33,12 +33,15 @@
dest: "{{ docker_project_folder }}/mailserver" dest: "{{ docker_project_folder }}/mailserver"
- name: Copy webmail Add - name: Copy webmail Add
copy: template:
src: webmail src: config.inc.php.j2
dest: "{{ docker_project_folder }}/mailserver" dest: "{{ docker_project_folder }}/mailserver/webmail/config.inc.php"
- name: make start executable in traefik - name: make start executable smtp
shell: chmod +x "{{ docker_project_folder }}/mailserver/smtp/start.sh" copy:
dest: "{{ docker_project_folder }}/mailserver/smtp/start.sh"
src: smtp/start.sh
mode: '555'
- name: Copy imap - name: Copy imap
copy: copy:
@ -46,24 +49,27 @@
dest: "{{ docker_project_folder }}/mailserver" dest: "{{ docker_project_folder }}/mailserver"
- name: make start executable imap - name: make start executable imap
shell: chmod +x "{{ docker_project_folder }}/mailserver/imap/start.sh" copy:
dest: "{{ docker_project_folder }}/mailserver/imap/start.sh"
src: imap/start.sh
mode: '555'
- name: Copy spam - name: Copy spam
copy: copy:
src: spam src: spam
dest: "{{ docker_project_folder }}/mailserver" dest: "{{ docker_project_folder }}/mailserver"
- name: make start executable in spam - name: make start executable spam
shell: chmod +x "{{ docker_project_folder }}/mailserver/spam/start.sh" copy:
dest: "{{ docker_project_folder }}/mailserver/spam/start.sh"
src: spam/start.sh
mode: '555'
- name: Copy db - name: Copy db
copy: copy:
src: db src: db
dest: "{{ docker_project_folder }}/mailserver" dest: "{{ docker_project_folder }}/mailserver"
- name: make start executable in db
shell: chmod +x "{{ docker_project_folder }}/mailserver/db/databases.sh"
- name: Copy traefik - name: Copy traefik
copy: copy:
src: traefik src: traefik
@ -78,7 +84,7 @@
copy: copy:
src: docker-entrypoint.sh src: docker-entrypoint.sh
dest: "{{ docker_project_folder }}/mailserver/docker-entrypoint.sh" dest: "{{ docker_project_folder }}/mailserver/docker-entrypoint.sh"
mode: "+x" mode: "555"
- name: Copy docker-compose - name: Copy docker-compose
template: template:

View file

@ -5,3 +5,7 @@ $config['smtp_conn_options'] = array('ssl' => array( 'verify_peer'
$rcmail_config['managesieve_port'] = 4190; $rcmail_config['managesieve_port'] = 4190;
$rcmail_config['managesieve_host'] = 'tls://imap'; $rcmail_config['managesieve_host'] = 'tls://imap';
$config['managesieve_conn_options'] = array( 'ssl' => array( 'verify_peer' => false, 'verify_peer_name' => false ), ); $config['managesieve_conn_options'] = array( 'ssl' => array( 'verify_peer' => false, 'verify_peer_name' => false ), );
$config['password_db_dsn'] = 'mysql://mail:{{ DB_PASSWORD }}@db/postfix';
$config['password_query'] = "UPDATE mailbox SET password=CONCAT('{SHA512-CRYPT}', ENCRYPT (%p, CONCAT('$5$', SUBSTRING(SHA(RAND()), -16)))) WHERE username=%u;";