Add to Favourites Add to Favourites    Print this Article Print this Article

Adding a DMARC record to help lower your spam score

DMARC is a system that adds some rules for DKIM and SPF, so remote servers have a better idea of what your intention is for messages that fail those 2 systems.
It doesn't really do anything, but adds clarity for actions taken by remote servers, and should lower your spam score in some cases.
Be sure your SPF TXT value contains "-all" (not ~all), and you have DKIM setup before proceeding.

Note: When using the Evolution skin:
  1. Navigate to "DNS Management"
  2. Click "Add Record"
  3. For "Record Type", select "TXT"
  4. TXT Record Type, seelct "DMARC"
  5. Enter your email into the "Aggregate Email (RUA)" field: spam-reports@domain.com
  6. Click "Add"



For other skins, like "Enhanced", to add a DMARC record, go to your domain's DNS Management, and add the following TXT record:

_dmarc    TXT    "v=DMARC1; p=none; sp=none; rua=mailto:spam-reports@domain.com"

Be sure to include the whole thing in "quotes".

The E-Mail Address will sometimes be sent reported spam messages by larger providers.  Not all services will email this address, but it's handy if a a client in large email provider clicks "this is spam" for a given message, and you'll be sent that message, so you can determine if someone on your domain is spamming or spoofing, or if the client incorrectly clicked that message (at which point, you'd probably want to remove that client from your mail-out, as they likely don't want it).

The rua=mailto:email portion is not mandatory if you don't want to get these emails.

You can change the values as desired, as per the DMARC specifications:
http://dmarc.org

Google's DMARC guide:
https://support.google.com/a/answer/2466563?hl=en



I wish to automate new DMARC records for all new domains

If you like the above setup, and you want to automate it's addition to all new dns zones, you can run the following:

cd /usr/local/directadmin/data/templates/custom
cp ../dns_txt.conf .

and then add the record you want to the bottom of the custom/dns_txt.conf by running this command:

echo '_dmarc="v=DMARC1; p=none; sp=none; rua=mailto:spam-reports@|DOMAIN|"' >> dns_txt.conf

keeping in mind that this assumes you've got a spam-reports account created already.


Was this answer helpful?

Also Read