mail PDF Print E-mail

mail

 

The mail program will list mail that has been sent. Select the last mail which you just sent by typing the number corresponding to the mail. You will see something similar to this:


##########################################

From This e-mail address is being protected from spambots. You need JavaScript enabled to view it Mon Mar 28 03:19:17 2005

X-Original-To: mike

Delivered-To: This e-mail address is being protected from spambots. You need JavaScript enabled to view it

Date: Mon, 28 Mar 2005 03:19:17 -0700 (MST)

From: This e-mail address is being protected from spambots. You need JavaScript enabled to view it (mike)

To: undisclosed-recipients:;


this is a test of the sendmail program


###########################################


The text that you see above your line of text for the mail is called the header. The header is a portion that is added by sendmail. The body, which is separated from the header by a blank line, is the content of your email.


The header format is based on a word which is followed by a colon. The word establishes the content of the line that follows. For example, Delivered-To: describes the user the mail was actually delivered to.


The Subject: of the header is a optional feature. The Subject: can be added by editing your original file and adding:

Subject: Test


###########################################

From This e-mail address is being protected from spambots. You need JavaScript enabled to view it Mon Mar 28 04:02:15 2005

X-Original-To: mike

Delivered-To: This e-mail address is being protected from spambots. You need JavaScript enabled to view it

Subject: test

Date: Mon, 28 Mar 2005 04:02:15 -0700 (MST)

From: This e-mail address is being protected from spambots. You need JavaScript enabled to view it (mike)

To: undisclosed-recipients:;


this is a test of the sendmail program


###########################################


The Subject: line is now viewable in the header since you manually added it to your file like an email program does.


Try to add two Subject: lines...notice the result.



###########################################

...snip


Subject: test

Subject: new test

Date: Mon, 28 Mar 2005 04:12:06 -0700 (MST)


..snip

###########################################


Sendmail is looking for a format string, text + : which it determines how it will be used in the header. Try to add a line for FROM:


Add this line to your file:

From: Aliens


###########################################

From This e-mail address is being protected from spambots. You need JavaScript enabled to view it Mon Mar 28 04:02:15 2005

X-Original-To: mike

Delivered-To: This e-mail address is being protected from spambots. You need JavaScript enabled to view it

Subject: test

From: This e-mail address is being protected from spambots. You need JavaScript enabled to view it


###########################################


Notice that the program interprets the From: Aliens to be a header line even though a line has already been added by sendmail for the real person who sent the message. This gives you some idea about how spammers will manipulate the header to try to fool recipients about the real originator of the message.




Understanding Header Files


Return-Path: < This e-mail address is being protected from spambots. You need JavaScript enabled to view it >

The Return-Path provides you with the address of the sender so you will be able to return an email.

Received: from psmtp.com (exprod5mx120.postini.com [64.18.0.34]) by mail1.example.com (8.12.10/8.12.2) with SMTP id j3UGkfgL028886 for < This e-mail address is being protected from spambots. You need JavaScript enabled to view it >; Sat, 30 Apr 2005 10:46:41 -0600 (MDT)

The message was received from the psmtp.com server, IP Address is listed. Notice that the mail has traveled between two servers before it was delivered. The psmtp.com server sent the mail to the pop3 server mail1.example.com. The version of sendmail is 8.12.10 and the SMTP is is listed for delivery. Finally the time and date are available for when the mail was accessed.

Received: from source ([12.32.36.122]) (using TLSv1) by exprod5mx120.postini.com ([64.18.4.10]) with SMTP; Sat, 30 Apr 2005 09:46:34 PDT

The psmtp.com server received the mail from the source or sender who was at 12.32.36.122, date and time are listed.

Received: from ns.bigstrike.org (ns.bigstrike.org [127.0.0.1]) by ns.bigstrike.org (8.13.1/8.13.1) with ESMTP id j3UGhuFc016030; Sat, 30 Apr 2005 10:43:56 -0600

The mail was sent from the source of ns.bigstrike.org. Note that ns.bigstrike.org is running a newer version of sendmail.

Received: (from root@localhost) by ns.bigstrike.org (8.13.1/8.13.1/Submit) id j3UGhuOk016029; Sat, 30 Apr 2005 10:43:56 -0600



The third Received shows who the sender was, the root user.

The next group of information is added by the local machine.

Date: Sat, 30 Apr 2005 10:43:56 -0600

This is the date the mail was sent.

From: root < This e-mail address is being protected from spambots. You need JavaScript enabled to view it >

The is the user who sent the mail.

Message-Id: < This e-mail address is being protected from spambots. You need JavaScript enabled to view it >

This is the Message-ID the format is year,month,day,time.id

To: This e-mail address is being protected from spambots. You need JavaScript enabled to view it

This is who the mail is sent to.

Subject: Test for Company

Subject of the email.

Cc: This e-mail address is being protected from spambots. You need JavaScript enabled to view it

X-pstn-levels: (S:13.87598/99.90000 R:95.9108 P:95.9108 M:97.0232 C:98.7678 )



These are timeout settings.

X-pstn-settings: 5 (2.0000:2.0000) s gt3 gt2 gt1 r p m c



X-pstn-addresses: from < This e-mail address is being protected from spambots. You need JavaScript enabled to view it > [3075/137]

Status:

X-Evolution-Source: pop://mike@bigstrike.org

Evolution received the mail on the desktop.

Mime-Version: 1.0

9.6. Mail Delivery Agents