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:
Timo Makinen 2020-09-02 21:07:21 +00:00
parent 574916dfaf
commit 5b24509081
4 changed files with 114 additions and 24 deletions

View 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