rendered paste body# cat /etc/mail/smtpd.conf
listen on lo0
accept from all for all deliver to maildir "/home/maildir"
# pgrep smtpd
# smtpd
# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 tm.my.domain ESMTP OpenSMTPD
helo me
250 tm.my.domain Hello me [127.0.0.1], pleased to meet you
mail from:<x@y.com>
250 2.1.0 Sender ok
rcpt to:<x@y.com>
530 5.0.0 Recipient rejected: x@y.com
rcpt to:<x@localhost>
530 5.0.0 Recipient rejected: x@localhost
rcpt to:<x@microsoft.com>
530 5.0.0 Recipient rejected: x@microsoft.com
rcpt to:<x@gmail.com>
530 5.0.0 Recipient rejected: x@gmail.com
quit
221 2.0.0 tm.my.domain Closing connection
Connection closed by foreign host.
# ls -ld /home/maildir
drwxr-xr-x 2 _smtpd _smtpd 512 Jan 6 12:59 /home/maildir