28.9 Testing Postfix
An easy way to test the postfix configuration is to send an email message between local users on the system. To perform a quick test, use the mail tool as follows (where name and mydomain are replaced by the name of a user on the system and your domain name respectively):
# mail name@mydomain.com
When prompted, enter a subject for the email message and then enter message body text. To send the email message, simply press Ctrl-D. For example:
# mail neil@mydomain.com
Subject: Test email message
This is a test message.
EOT
Run the mail command again, this time as the other user and verify that the message was sent and received:
Heirloom Mail version 12.5 7/5/10. Type ? for help.
"/var/spool/mail/neilsmyth": 1 message 1 new
>N 1 root Mon Mar 25 13:36 18/625 "Test email message"
&
If the message does not appear, check the log file (/var/log/maillog) for errors. A successful...