ref: 4be504ebed25aee25578d461e5b7ac3779fbb049
dir: /smtpd.ms/
Make sure to chmod +x /bin/service/tcp25 or else the mail server won't be able to start ; cat /bin/service/tcp25 #!/bin/rc #smtp serv net incalldir user user=`{cat /dev/user} exec upas/smtpd -s -e -n $3 Make sure to edit /mail/lib/smtpd.conf: # # sample smtpd configuration options for inside connections # # # replace YOURDOM with the name of your domain # replace 10.0.0.0 with the IP address range of your networks defaultdomain example.com norelay on verifysenderdom off #disable dns verification of sender domain saveblockedmsg off #save blocked messages # # if norelay is on, you need to set the # networks allowed to relay through # as well as the domains to accept mail for # ournets 198.51.100.0/24 ourdomains *.example.com Copy /mail/lib/rewrite.direct to /mail/lib/rewrite. $a See dkim.ms guide for enabling dkim. Make sure to add spf and dmarc records as indicated in ndb.ms guide. To test sending an email: .P1 ; upasname=sender@example.com upas/marshal -s 'Alpha Bravo Charlie' recipient@example.org .P2 Type a message, then a newline, then EOF.