Fixing Postfix on Lion to just relay mail
January 12th, 2012
I upgraded to lion and in process postfix (for just sending mail via localhost ie: programatic mail etc) was broken. So I googled and saw that you needed to add a “submit.cred” file. That’s true if you use the out of the box setup but, if you just want to relay mail go and edit your /etc/postfix/main.cf
comment out:
imap_submit_cred_file = /etc/postfix/submit.cred
add the following to the bottom of the config:
mydomain_fallback = localhost
message_size_limit = 10485760
myorigin = localhost
inet_interfaces = loopback-only
local_transport = error:local delivery is disabled
mynetworks = 127.0.0.0/8
now stop/restart postfix:
sudo postfix stop (if you are running it as a daemon it will auto restart)
sudo postfix start
you should be all set!
Leave a Reply