Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I sent a mail from my machine relayed through a public mail server to my gmail account using smtp on telnet.

now when i select show original on for that mail in my gmail account.

I see several headers just before the body of my mail.


Are these headers being added by gmail or my mail server. How do I find out.

Is this because of the process described in Section 3.8.1 of this rfc.

Update: Can you give an example of the scenario given in this section of the rfc. I am assuming that when my mail server sends a mail to a gmail account, the gmail server is a gateway as defined in the rfc as it is going into a different environment. Am i wrong?

share|improve this question
Gmail servers are not the gateway (although I do not know how Google is handling this service, so this is pure speculation). If you send email to/from Gmail, then Gmail is the recipient/originating server. "Your" mail server is using a third party scanning/filtering service, that --among other things, I guess-- will add and/or rewrite the headers. That being said, I am really not getting what you are asking on your 'update.' – user1797 Mar 18 '10 at 13:41
i want to see a practical example of mails passing through gateways. How do i do that? – Rohit Banga Mar 18 '10 at 13:45
gateways are explained here – Rohit Banga Mar 18 '10 at 13:46
up vote 1 down vote accepted

Public mail server? What is that? Those headers come from Trend ScanMail. No relation to Gmail, or Google.

share|improve this answer
sorry for the wrong terminology. – Rohit Banga Mar 18 '10 at 13:19
Not a problem, I just wasn't too sure about what you mean. – user1797 Mar 18 '10 at 13:23
see the update please – Rohit Banga Mar 18 '10 at 13:24

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.