fix: use start tls for internal smtp

do this by adding a new non transparent port forward and connect via this port
and the normal mail.atlantishq.de address

also always copy the passwd file for dovecot
This commit is contained in:
2023-04-06 19:23:20 +02:00
parent fcf62beb1b
commit 80f6b89b3d
3 changed files with 12 additions and 3 deletions

View File

@@ -7,7 +7,8 @@ nsca_password: HISTORY_PURGED_SECRET
RSYSLOG_SERVER: internal.monitoring.atlantishq.de RSYSLOG_SERVER: internal.monitoring.atlantishq.de
influxdb_telegraf_password: HISTORY_PURGED_SECRET influxdb_telegraf_password: HISTORY_PURGED_SECRET
smtp_internal_host: 192.168.122.101 smtp_internal_host: mail.atlantishq.de
smtp_internal_host_port: 8025
smtp_service_user: noreply smtp_service_user: noreply
smtp_service_pass: HISTORY_PURGED_SECRET smtp_service_pass: HISTORY_PURGED_SECRET

View File

@@ -78,3 +78,11 @@
src: nginx_default.conf src: nginx_default.conf
dest: /etc/nginx/sites-available/default dest: /etc/nginx/sites-available/default
notify: restart nginx notify: restart nginx
- name: Deploy user passwd config
copy:
src: dovecot_passwd
dest: /var/dovecot/auth/passwd
owner: dovecot
group: dovecot
notify: restart dovecot

View File

@@ -83,13 +83,13 @@
smtpServer : smtpServer :
password : "{{ smtp_service_pass }}" password : "{{ smtp_service_pass }}"
replyToDisplayName: "" replyToDisplayName: ""
starttls: "false" starttls: "true"
auth: "true" auth: "true"
replyTo: "" replyTo: ""
envelopeFrom: "" envelopeFrom: ""
from: "{{ smtp_service_user }}@atlantishq.de" from: "{{ smtp_service_user }}@atlantishq.de"
fromDisplayName: "" fromDisplayName: ""
host: "{{ smtp_internal_host }}" host: "{{ smtp_internal_host }}"
port: "25" port: "{{ smtp_internal_host_port }}"
ssl: "false" ssl: "false"
user: "{{ smtp_service_user }}" user: "{{ smtp_service_user }}"