Hi I am trying to config my SMTP server to receiving incoming emails, yet to no avail. I just tried to send an e-mail from a gmail account and this was the server response 501 501 5.1.3 Bad recipient address syntax (state 14) What could be causing this, it is obviously the config of the SMTP server but I don't know what. Pls help! Kind regards FYI - I have been using the http://www.howtoforge.com/virtual-users-domains-postfix-courier-mysql-squirrelmail-fedora-10 . Also I think it could matter that my host is still running on a global IP address ref so the e-mail addresses would be something like [email protected]
I am getting a line in my maillog: Code: postfix/smtpd[21450]: warning: Illegal address syntax from localhost.localdomain[127.0.0.1] in RCPT command: <[email protected]> I am getting the feeling I am overlooking something stupid here. I set the proxy_interfaces setting to 1.2.3.4 since my server behind a NAT. Nothing. What is the difference between editing the settings in main.cf versus postconf -e? Is it the same thing? Also, I can send mail from the server to a gmail account using mailx. When trying to use Squirrelmail to send email from a user account it throws a bad syntax error at me, similar to the server response when trying to send emails to it. What am I missing here??
I have the suspicion that postfix rejects all mails to a [email protected] address and therefore the Illegal address syntax msg. Can someone confirm this before I post my main.cf file???
Is that a setting in the config file or is it a more complicated matter? Thank you very much for all your replies!
This worked for me! If you find that you are receiving 5.1.x errors while trying to send SMTP emails it may be that your mail server has either the parameter strict_rfc821_envelopes = yes or adheres strictly to the ESMTP (RFC 5321) protocols which require email addresses to be enclosed in < > as in "John Doe <[email protected]>". Ref: http://groups.google.com/group/cake-php/browse_thread/thread/d412342fc3ffbf32?pli=1