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
14
roles/postfix/files/stunnel-smtps.service
Normal file
14
roles/postfix/files/stunnel-smtps.service
Normal file
|
@ -0,0 +1,14 @@
|
|||
[Unit]
|
||||
Description=Stunnel for SMTPs connections
|
||||
After=network.target
|
||||
After=syslog.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
PrivateTmp=true
|
||||
User=smtps
|
||||
Group=smtps
|
||||
ExecStart=/usr/bin/stunnel /etc/stunnel/smtps.conf
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Add table
Add a link
Reference in a new issue