Postfix Not Accepting Commands on OSX Lion - Timeout Occurs
Solution 1:
The last three log messages turned out to be the culprit. Googling for them turned up this page;
In order to fix the problem your console is displaying, you should:
- Create a
submit.cred
file in/etc/postfix
directory (sudo touch /etc/postfix/submit.cred
will do). - Create a header for that file:
sudo echo "submitcred version 1" >> /etc/postfix/submit.cred
- Add as many lines as the number of users you want to enable to submit mail, in the form
hostname|user|passwd
:sudo echo''hostname|username|password" >> /etc/postfix/submit.cred
- Give the file the appropriate permissions:
sudo chmod 600 /etc/postfix/submit.cred
Once you've done this you could restart postfix and everything sould run smoothly.
I created the file /etc/postfix/submit.cred and set the permissions to 0600. Everything started working after that.
Solution 2:
Just comment out the imap_submit_cred_file = /etc/postfix/submit.cred
in the /etc/postfix/main.cf
file. Then you don't have to configure any usernames and passwords. And Postfix listens to localhost only by default.