Welcome to WebmasterWorld Guest from

Forum Moderators: phranque

Message Too Old, No Replies

Automated emails: what headers are important to ensure delivery?

2:34 am on Jul 26, 2017 (gmt 0)

Senior Member

WebmasterWorld Senior Member 5+ Year Member Top Contributors Of The Month

joined:Mar 15, 2013
posts: 707
votes: 58

I'm trying to go through every step possible to make sure my user-requested email is delivered.

It turns out that there are a bajillion potential mail headers:


So far, I'm setting To, From, Date, Message-ID, and Subject, but still being filtered as spam by Gmail (even though I have a +0.1 SpamAssassin score, a 100 SenderScore, and Mail-Tester.com gives me a 10/10... grrr).

What other headers might I want to consider adding to make sure I'm not getting filtered?
4:34 am on Aug 5, 2017 (gmt 0)

Moderator from US 

WebmasterWorld Administrator keyplyr is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Sept 26, 2001
votes: 692

Don't know much more than you do about mail headers.

At my mail server, I set my own filters entirely by Sender, Recipient and terms found in Subject as well as the content (buzz words.) I have a similar system at my email client.
6:50 am on Aug 5, 2017 (gmt 0)


WebmasterWorld Administrator phranque is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Aug 10, 2004
votes: 133

have you looked at implementing the SPF protocol?

Sender Policy Framework (SPF) for Authorizing Use of Domains in E-Mail, Version 1:
https://www.rfc-editor.org/rfc/rfc4408.txt [rfc-editor.org]

SPF: Project Overview:
http://www.openspf.org/ [openspf.org]
3:27 pm on Aug 5, 2017 (gmt 0)

Junior Member from US 

5+ Year Member

joined:Dec 23, 2008
votes: 4

Yes. SPF and DKIM

Any "secret" headers that you seek to allow your emails to slip past spam filtering
would've been implemented by the sime-ball spammers YEARS AGO.