How to restrict the field "From" mismatch for emails?

Created:

2016-12-21 00:48:53 UTC

Modified:

2017-08-08 13:41:57 UTC

1

Was this article helpful?


Have more questions?

Submit a request

How to restrict the field "From" mismatch for emails?

Applicable to:

  • Plesk for Linux

Question

How to restrict the field From mismatch for emails?

Answer

  1. To lookup key value for authentication ID add a line in /etc/postfix/main.cf
    smtpd_sender_login_maps = hash:/var/spool/postfix/plesk/virtual
  2. Check the value of smtpd_sender_restrictions parameter
    # grep smtpd_sender_restrictions /etc/postfix/main.cf
    smtpd_sender_restrictions = check_sender_access hash:/var/spool/postfix/plesk/blacklists, reject_sender_login_mismatch, permit_sasl_authenticated
  3. Restart Postfix:
    # service postfix restart

Note: The setting will be applied server-wide.

Have more questions? Submit a request
Please sign in to leave a comment.