When you send an email a header is part of the message. For example, when you check your mail you can view the raw source and see the headers, which has information about the sender of email in it, etc.
When I send mail using the mail command, from address1 to address2, the header includes some information about the sender, like sender's hostname, IP, etc.
Now my Question is: How is the information for the header generated, and how can I avoid or change them (i.e, forge them)?
I'm use Fedora 17 and Sendmail.
Received:header as it forwards the email to the next one — starting with your computer or nearest mail server and ending at the recipient's. Modifying them at the destination doesn't erase the trail of the email (MTAs keep logs), and I can't think of a single legitimate/ethical reason for changing existingReceived:headers. – Alexios Jul 2 '12 at 20:28