Title: Email System
1Email System
2Internet Relay Email
From P. 447, of TCP/IP Illustrated Volume 1,
Richard Stevens
3Mail message format
- SMTP protocol for exchanging email msgs
- RFC 2822 standard for text message format
- envelope
- header lines, e.g.,
- To
- From
- Subject
- body
- the message, ASCII characters only
header
blank line
body
4Functions of Mail Servers
- To accept outgoing mail from user agents and
inject it into the mail system - To receive incoming mail from the outside world
- To deliver mail to end users mailboxes
- To allow users to access their mailboxes with
IMAP or POP
5Mail System Architecture
6A Message from Eric
7A Message from Eric
8Final Delivery
(a) Sending and reading mail when the receiver
has a permanent Internet connection and the user
agent runs on the same machine as the message
transfer agent. (b) Reading e-mail when the
receiver has a dial-up connection to an ISP.
9Aliasing by Example
10Software Packages for Maintaining Mailing Lists
- Majordomo
- http//www.greatcircle.com
- Mailman
- http//www.list.org/
- ListProc
- http//www.cren.net/
- SmartList
- Derived from procmail http//www.procmail.org/
- Listmanager
- http//www.listmanager.org/
- LISTSERV Lite
- www.lsoft.com
11Sendmail
- www.sendmail.org
- Tasks
- Controlling messages as they leave the users
keyboard - Understanding the recipients addresses
- Choosing an appropriate delivery or transport
agent - Reformatting headers as required
- Passing the transformed message to the delivery
agent - Players
- sendmail.cf
- Control incoming mail and mail queues during the
submission process - submit.cf
- Control the handling of mail that originates on
the local machines - Mail queues /var/spool/mqueue,
/var/spool/clientmqueue - Other files
12Sendmail Configuration File
- To determine
- Choice of delivery agents
- Address rewriting rules
- Mail header formats
- Options
- Security precautions
- Spam resistance
13Spam-related Features in Sendmail
- Relaying
- The access database
- User or site blacklisting
- FEATURE(blacklist_recipients)
- www.spamhaus.org
- Header checking
- FEATURE(accept_unresolvable_domains) sendmail
accepts mail from domains that do not exist or do
not resolve - Rate and connection limits set per-host or
per-net limits on the rate at which incoming
connections are accepted - SpamAssasin
- http//spamassassin.apache.org/
14One Example Access Database
15One Example Access Database