Notes for Computer Information Technology 160
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

nov5-email-gateway.md 1.3KB

November 5 - Email Gateway

Overview

  • Email
  • gateway
  • vacation/.forward
  • SMTP/IMAP/POP (protocols)
  • MUA, MTA, MSA, MOA (mail agents)
  • MIME

email

A Protocol is a set of rules to complete a task, SMTP is the protocol is the protocol for sending mail.

Mbox format

example from Wikipedia:

From MAILER-DAEMON Fri Jul  8 12:08:34 2011
From: Author <author@example.com>
To: Recipient <recipient@example.com>
Subject: Sample message 1

This is the body.
>From (should be escaped).
There are 3 lines.

From MAILER-DAEMON Fri Jul  8 12:08:34 2011
From: Author <author@example.com>
To: Recipient <recipient@example.com>
Subject: Sample message 2

This is the second body.

Vacation

Vacation specifies what to do if you are unable to receive email, on the mail command, what to do is specified in ~/.forward all incoming mail will be forwarded to the email address(es) specified in ~/.forward this file can also pipe the email to another program

$ cat ~/.forward  # example forward file
bob@example.com   # forward to bob
alice@example.com # forward to alice
| ~/urgent.bash   # pipe email to shell script urgen.bash