Articles in this section

How to exclude a domain from DMARC check in Plesk for Linux

kb: how-to Plesk for Linux ABT: Group A

Applicable to:

  • Plesk for Linux

Question

How to add a domain to DMARC whitelist in Plesk for Linux?

Answer

  1. Connect to a Plesk server via SSH.
  2. Create the dmarc.conf file in /etc/psa/:

    # touch /etc/psa/dmarc.conf

  3. Open the dmarc.conf file in a text editor. In this example, we are using the vi editor:

    # vi /etc/psa/dmarc.conf

  4. Add the following configuration to the file. Replace example domains with domains that must be ignored by DMARC check:

    Note: If several domains are to be added, separate them by a comma.

    CONFIG_TEXT: IgnoreMailFrom example.com, example.net

    ## IgnoreMailFrom domain[,...]
    ## default (none)
    ## Gives a list of domain names whose mail (based on the From: domain) is to
    ## be ignored by the filter. The list should be comma-separated. Matching
    ## against this list is case-insensitive. The default is an empty list,
    ## meaning no mail is ignored.

  5. Save the changes and close the file.

For mass mail services such as Mailjet, SendGrid or Mailchimp, you may need to add the envelope sender domain (the Return-Path, shown as smtpdomain in the DMARC line of /var/log/maillog) instead of the From header domain. The match may need to be exact, so a bounce subdomain like bnc3.email.example.com may not be covered by email.example.com or example.com. A working exclusion logs “marked as ignored. Skipping DMARC check..” for that domain.

Was this article helpful?

Comments

3 comments
Date Votes

Please sign in to leave a comment.