Mail is not forwarded: DATA from localhost[127.0.0.1]: 5.7.1 Command rejected

Created:

2016-11-16 12:47:07 UTC

Modified:

2017-08-18 13:39:18 UTC

2

Was this article helpful?


Have more questions?

Submit a request

Mail is not forwarded: DATA from localhost[127.0.0.1]: 5.7.1 Command rejected

Applicable to:

  • Plesk 12.5 for Linux
  • Plesk 11.x for Linux
  • Plesk 12.0 for Linux

Symptoms

  • Mail is not forwarded with the error:
    milter-reject: DATA from localhost[127.0.0.1]: 5.7.1 Command rejected; from=<from@example1.com> to=<to@example2.com>
  • Getting notifications from server:
    milter-reject: END-OF-MESSAGE from localhost[127.0.0.1]: 5.7.1 Command rejected

Cause

Mail filter handlers misconfiguration

Resolution

Check and correct the following entries in /etc/postfix/main.cf file:

    # grep -ir milt /etc/postfix/main.cf
smtpd_milters = , inet:127.0.0.1:12768
non_smtpd_milters =

After the smtpd_milters and non_smtpd_milters parameters were changed to the correct ones, restart the Postfix:

  • In Plesk, go under Tools & Settings > Services Management > SMTP Server (Postfix). Click Restart the service icon.

  • To restart Postfix via command line:

    # /etc/init.d/postfix stop
    # /etc/init.d/postfix start
 
Have more questions? Submit a request
Please sign in to leave a comment.