# 25/tcp SMTP (MTA+MSA) with STARTTLS # 587/tcp SMTP (MSA) with STARTTLS and mandatory authentication # 495/tcp SMTP (MSA) over TLS # 110/tcp POP3 with STARTTLS # 993/tcp IMAP over TLS # 995/tcp POP3 over TLS # in this example, we consider a server "sombrero" for the domain "9grid.eu" cp /mail/lib/rewrite.direct /mail/lib/rewrite in /mail/lib/rewrite, replace "YOURDOMAIN.DOM" by "9grid.eu" in /mail/lib/remotemail, replace "yourdomain.dom" by "9grid.eu" in /mail/lib/smtpd.conf, replace "YOURDOM.COM" by "9grid.eu" in /cron/upas/cron, replace "mailserver" by "sombrero" acme /mail/lib/smtpd.conf norelay on verifysenderdom on saveblockedmsg on ourdomains 9grid.eu acme /cfg/sombrero/cpurc site=9grid.eu auth/secstore -n -G factotum | read -m > /mnt/factotum/ctl acme /rc/bin/service/tcp25 exec upas/smtpd -c /sys/lib/tls/cert.pem -n $3 acme /rc/bin/service/tcp587 exec upas/smtpd -c /sys/lib/tls/cert.pem -a -n $3 acme /rc/bin/service/tcp465 exec tlssrv -c/sys/lib/tls/cert.pem -lsmtp -r`{cat $3/remote} /bin/upas/smtpd -a -n $3 >[2]/sys/log/smtps acme /rc/bin/service/tcp110 exec /$cputype/bin/upas/pop3 -t /sys/lib/tls/cert.pem >>[2] /sys/log/pop3 acme /rc/bin/service/tcp993 exec tlssrv -c/sys/lib/tls/cert.pem -limap4d -r`{cat $3/remote} /bin/ip/imap4d -p >[2]/sys/log/imap4d acme /rc/bin/service/tcp995 exec tlssrv -c/sys/lib/tls/cert.pem -lpop3 -r`{cat $3/remote} /bin/upas/pop3 -p >[2]/sys/log/pop3 # remove -p in tcp993 and tcp995 to disable LOGIN authentication (CRAM-MD5 only)