On 11/12/2010 6:47 AM, Mingliang Zu wrote:

    Mingliang Zu should show us the output of "postconf -n"
    rather than snips from main.cf <http://main.cf>.


      -- Noel Jones


Sorry. Here is my entire conf:
[r...@rhel5 postfix]# postconf -n
...
non_fqdn_reject_code = 501

The default reject codes are chosen carefully, after studying relevant standards and testing real-world behavior. You should use the same care before changing them.

smtpd_sender_restrictions = reject_non_fqdn_sender

Good, that setting does what you have asked. Testing that here gives:
...
MAIL FROM:<sender>
250 2.1.0 Ok
RCPT TO:<[email protected]>
504 5.5.2 <sender>: Sender address rejected: need fully-qualified address


Make sure you run "postfix reload" after editing main.cf.


  -- Noel Jones

Reply via email to