OpenSMTPD auf Slackware 15.0
https://slackbuilds.org/repository/15.0/network/opensmtpd ↗
root@server
# groupadd --gid 270 smtpd
# useradd --uid 270 --gid 270 --system --shell /bin/false --home-dir /var/empty smtpd
# groupadd --gid 271 smtpq
# useradd --uid 271 --gid 271 --system --shell /bin/false --home-dir /var/empty smtpq
https://paketspiegel.de/opensmtpd.html ↗
root
# vi /etc/rc.d/rc.local
+ if [ -x /etc/rc.d/rc.opensmtpd ] + then + + source /etc/rc.d/rc.opensmtpd start + + fi
# chmod +x /etc/rc.d/rc.opensmtpd
root
# vi /etc/opensmtpd/smtpd.conf
+ pki mail.example.com cert "/root/.acme.sh/mail.example.com_ecc/fullchain.cer" + pki mail.example.com key "/root/.acme.sh/mail.example.com_ecc/mail.example.com.key"
− listen on localhost + #listen on localhost + listen on <Internetprotokolladresse> tls pki mail.example.com auth-optional
+ match from any for domain "example.com" action "local"
+ match from local for domain "mail.example.com" action "local"
− match for local action "local" + #match for local action "local" − match from local for any action "relay" + #match from local for any action "relay"
+ match auth from any for any action "relay"
root
# vi /etc/opensmtpd/aliases
− postmaster: root + #postmaster: root + postmaster: <Benutzer>
# newaliases
root
# vi /etc/opensmtpd/mailname
mail.example.com
root
# chmod 755 /var/mail
# chmod 755 /var/spool/mail
root
# /etc/rc.d/rc.opensmtpd testconf
# /etc/rc.d/rc.opensmtpd stop
# /etc/rc.d/rc.opensmtpd start
benutzer@desktop
$ openssl s_client -connect mail.example.com:25 -starttls smtp | openssl x509 -dates -noout