postfix: Fix email sending to local addresses
CentOS 7 sendmail and postfix doesn't have support for sending to SMTPs server on port 465 so use stunnel for those.
This commit is contained in:
parent
574916dfaf
commit
5b24509081
4 changed files with 114 additions and 24 deletions
7
roles/postfix/templates/stunnel.conf.j2
Normal file
7
roles/postfix/templates/stunnel.conf.j2
Normal file
|
@ -0,0 +1,7 @@
|
|||
foreground = yes
|
||||
pid =
|
||||
|
||||
[smtps-wrapper]
|
||||
accept = localhost:2525
|
||||
client = yes
|
||||
connect = {{ mail_server }}:465
|
Loading…
Add table
Add a link
Reference in a new issue