...
Code Block | ||
---|---|---|
| ||
sudo postconf -e "inet_interfaces = loopback-only" # receive no mail from the network, and do not deliver any mail locally |
I think something to watch out for is the sender email must be a a valid domain name with mx records setup and possible a real mail service listening, http://www.postfix.org/STANDARD_CONFIGURATION_README.html
Setup MX Records
Warning |
---|
This section should be filled out with a general discussion of what MX is for and how to configure within Rackspace. |
...
Code Block | ||
---|---|---|
| ||
echo "test" | mail -s testsubject bhitch@imagecomics.com |
The log for a valid send will look something like this,
Code Block |
---|
tail /var/log/mail.info
Jun 23 22:06:38 krypton postfix/pickup[15174]: AA67C2F824D: uid=2500 from=<tinpham>
Jun 23 22:06:38 krypton postfix/cleanup[15988]: AA67C2F824D: message-id=<20110624020638.AA67C2F824D@myra>
Jun 23 22:06:38 krypton postfix/qmgr[15175]: AA67C2F824D: from=<bhitch@krypton.com>, size=294, nrcpt=1 (queue active)
Jun 23 22:06:39 krypton postfix/smtp[15990]: AA67C2F824D: to=<bhitch@rogers.com>, relay=mx1.rog.mail.yahoo.com[98.139.214.154]:25, delay=1, delays=0.02/0.01/0.25/0.74, dsn=2.0.0, status=sent (250 ok dirdel)
Jun 23 22:06:39 krypton postfix/qmgr[15175]: AA67C2F824D: removed
|
If you do not see your receive your test email, try looking in your spam folder.
References
https://help.ubuntu.com/10.04/serverguide/C/postfix.html - How to setup postfix
...