3 Replies Latest reply: Nov 10, 2011 5:21 PM by CedricBelin
seekoei Level 1 (5 points)

For the life of me I couldn't get smtpd running correctly on my iMac (brand new SL iMac upgraded to Lion).


Looking at the syslog, I kept getting:


postfix/smtpd[1001]: fatal: open /etc/postfix/submit.cred: No such file or directory

postfix/master[971]: warning: process /usr/libexec/postfix/smtpd pid 1001 exit status 1

postfix/master[971]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling


Upon checking, that /etc/postfix/submit.cred file was missing. Created a blank one. Syslog then showed:


postfix/smtpd[1041]: fatal: unsafe ownership or permissions on /etc/postfix/submit.cred: uid/gid/mode are 0/0/644 should be 0/0/0600

postfix/master[1035]: warning: process /usr/libexec/postfix/smtpd pid 1041 exit status 1

postfix/master[1035]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling


Did the chmod 0600 on it.


FINALLY smtpd started accepting connections!


Syslog still showed a warning:


postfix/smtpd[1420]: warning: no valid hostport|username|password entries in /etc/postfix/submit.cred


So I just commented it out of /etc/postfix/main.cf:


# (APPLE) Credentials for using URLAUTH with IMAP servers.

#imap_submit_cred_file = /etc/postfix/submit.cred


And now all looks good.


Seems this is a new (broken?) option Apple have added to postfix.


Hope this helps someone else avoid the frustration I've been having!!  :-)

iMac, Mac OS X (10.7)