annotate thesis/tex/2-MailTransferAgents.tex @ 100:5a244b27a117

some excluded parts for the archive
author meillo@marmaro.de
date Wed, 19 Nov 2008 18:23:37 +0100
parents d24fdd3d5990
children 6e2eaf91e59f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
89
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
1 \chapter{Mail transfer agents}
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
2
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
3 After having read about the history of electronic mail and the basics of \mta{}s in the last chapter, this chapter introduces a group of \mta{}s. Among them, the already mentioned \sendmail. The selected group will be delimited against other groups of \MTA{}s, which are described as well.
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
4
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
5 The chosen programs will be presented to the reader in a short overview and with the most important facts. The next chapter will show a comparison of these programs in several disciplines.
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
6
99
d24fdd3d5990 added lots of comments and annotations about what to do
meillo@marmaro.de
parents: 93
diff changeset
7 \section{Advantages of \MTA{}s}
d24fdd3d5990 added lots of comments and annotations about what to do
meillo@marmaro.de
parents: 93
diff changeset
8
d24fdd3d5990 added lots of comments and annotations about what to do
meillo@marmaro.de
parents: 93
diff changeset
9 << why are they important? >> %FIXME
d24fdd3d5990 added lots of comments and annotations about what to do
meillo@marmaro.de
parents: 93
diff changeset
10
89
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
11
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
12 \section{Types of \MTA{}s}
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
13 ``Mail transfer agent'' is a term covering a variety of programs. One thing is common to them: they transfer email from one \emph{thing} to another. These \emph{things} can be hosts, meaning independent machines, or protocols like \NAME{SMTP} and \NAME{UUCP}, between which mail is transfered.\footnote{\sendmail{}'s initial purpose was moving mail between \NAME{UUCP}, \NAME{SMTP}, and \name{Berknet}.}
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
14
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
15 Beside this common property, \MTA{}s can be very different. Some of them have \NAME{POP3} and/or \NAME{IMAP} servers included. Some can fetch mails through these protocols. Others have have all features you can think of. And maybe there are some that do nothing else but transporting email.
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
16
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
17 Following are groups of \mta{}s that will \emph{not} be regarded further.
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
18
92
e050221efd38 much restructuring again
meillo@marmaro.de
parents: 89
diff changeset
19 \subsection*{Relay-only \MTA{}s}
89
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
20 \label{subsec:relay-only}
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
21 This is the most simple kind of \MTA. It transfers mail only to defined \name{smart hosts}\footnote{\name{smart host}s are \MTA{}s that receives email and route it to the actual destination}. \name{Relay-only} \MTA{}s do not receive mail from outside the system, and they do not deliver locally.
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
22
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
23 Most \MTA{}s can be configured to act as such a \name{forwarder}. But this is usually an additional functionality.
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
24
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
25 One would use such a program to give a system the possibility to send mail, without the need to do lots of configuration. In a local network, usually the clients are set up with a \name{relay-only} \MTA, while there is one \name{mail server} that acts as a \name{smart host}. The ``dumb'' clients send mail to this one \name{mail server} which does all the work.
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
26
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
27 Examples for that group are: \name{nullmailer}, \name{ssmtp} and \name{esmtp}.
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
28
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
29
92
e050221efd38 much restructuring again
meillo@marmaro.de
parents: 89
diff changeset
30 \subsection*{Groupware}
89
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
31 Normally the term ``groupware'' does not mean one single program, but a suite of programs. They build a framework which is then populated with various modules that provide actual funktionality. Modules for mail transfer, file storage, calendars, resource management, instant messaging, etc., are commonly available.
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
32
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
33 One would use one of these program suites if the main work to do is not mail transfer, but providing integrated communication facilities and team working support for a group of people. The most common scenario are companies. They have \name{groupware} running to provide adequate services for their teams to work efficently. But one may use \name{groupware} on the home server for his family members also.
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
34
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
35 Examples are: \name{Lotus Notes}, \name{Microsoft Exchange}, \name{OpenGroupware.org} and \name{eGroupWare}.
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
36
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
37
92
e050221efd38 much restructuring again
meillo@marmaro.de
parents: 89
diff changeset
38 \subsection*{``Real'' \MTA{}s}
89
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
39 There is a third type of \mta{}s in between the minimalistic \name{relay-only} \MTA{}s and the bloated \name{groupware}. Those programs may be named ``real \MTA{}s'', or ``proper \MTA{}s'', though there is no common name. They are what is meant with the term ``\mta''.
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
40
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
41 Common to them is their focus on transfering email, while being able to act as \name{smart host}. Their variety ranges from ones mostly restricted to mail transfer (\name{qmail}) to others already having interfaces for adding further mail processing modules (\name{postfix})---thus everything in between the other two groups. %FIXME: are postfix and qmail good examples?
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
42
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
43 This group is of importance in this document. The programs selected for the comparison are ``real \MTA{}s''.
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
44
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
45
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
46
92
e050221efd38 much restructuring again
meillo@marmaro.de
parents: 89
diff changeset
47 \subsection*{Programs to sort out}
89
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
48
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
49 \name{Mail transfer agent}s can be segmented in various ways, apart from the classification above. Groups of programs wiproperties significantly different from \masqmail\ will be sorted out now.
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
50
92
e050221efd38 much restructuring again
meillo@marmaro.de
parents: 89
diff changeset
51 \subsection*{Non-\emph{sendmail-compatible} \MTA{}s}
89
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
52 Due to \sendmail's significance---described in section \ref{sec:sendmail}---compatiblity interfaces for \sendmail\ are of importance for \unix\ \MTA{}s. Being not \emph{sendmail-compatible} does not need to matter for some fields of action, but makes the program ineligible for serving as a general purpose \MTA\ on \unix\ systems.
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
53
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
54 Hence all \MTA{}s not having a \emph{sendmail-compatible} interface or not offering it as a compatibility addon, will not be covered here.
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
55
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
56 An Examples here is \name{Apache James}. %FIXME: check if correct
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
57
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
58
92
e050221efd38 much restructuring again
meillo@marmaro.de
parents: 89
diff changeset
59 \subsection*{Non-free software}
89
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
60 Only programs being \freesw\ are regarded, because comparing \freesw\ with proprietary or commercial software is not what typical users of programs like \masqmail\ do. Comparison with those non-free programs may be a point for large \freesw\ projects, trying to step into the business world. Small projects, mostly used by individuals at home, need to be compared against other projects of similar shape.
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
61
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
62 The comparison should be seen from \masqmail's point of view, so non-free software is out of the way.
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
63
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
64
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
65
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
66 \section{Popular \MTA{}s}
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
67 The programs remaining are \emph{sendmail-compatible} ``smart'' \MTA{}s that focus on mail transfer and are \freesw. One would not use a program for a job it is not suited for. Therefor only \mta{}s that are mostly similar to \masqmail\ are regarded.
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
68
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
69 For the comparision, five programs are taken. These are: \sendmail, \name{qmail}, \name{postfix}, \name{exim}, and \masqmail. The four alternatives to \masqmail\ are the most important representatives of the regarded group. % FIXME: add ref that affirm that
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
70
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
71 \name{courier-mta} is also a member of this group, being even closer to \name{groupware} than \name{postfix}. It is excluded here, because the \NAME{IMAP} and webmail parts of the mail server suite are more in focus than its \MTA. Common mail server setups even bundle \name{courier-imap} with \name{postfix}.
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
72
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
73 Other members are: \name{smail}, \name{zmailer}, \name{mmdf}, and more; they all are less important and rarely used.
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
74
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
75 Following is a small introduction to each of the five programs chosen for comparision.
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
76
92
e050221efd38 much restructuring again
meillo@marmaro.de
parents: 89
diff changeset
77 \subsection*{\sendmail}
89
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
78 \label{sec:sendmail}
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
79 \sendmail\ is the most popular \mta. Since it was one of the first \MTA{}s and was shipped by many vendors of \unix\ systems.
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
80
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
81 The program was written by Eric Allman as the successor of his program \name{delivermail}. \sendmail\ was first released with \NAME{BSD} 4.1c in 1983. Allman was not the only one working on the program. Other people developed own versions of it and a variety of flavors came up, especially in the late eighties when Allman was inactive.
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
82
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
83 \sendmail\ is focused on transfering mails between different protocols and networks, this lead to a very flexible (though complex) configuration.
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
84
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
85 The latest version is 8.14.3 from May 2008. The program is distributed under the \name{Sendmail License} as both, \freesw\ and proprietary software of \name{Sendmail, Inc.}.
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
86
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
87 Further development will go into the project \name{MeTA1} which succeeds \sendmail.
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
88
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
89 More information can be found on the \sendmail\ homepage \citeweb{sendmail:homepage} and on \citeweb{wikipedia:sendmail} and \citeweb{jdebp}.
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
90
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
91
92
e050221efd38 much restructuring again
meillo@marmaro.de
parents: 89
diff changeset
92 \subsection*{\name{qmail}}
89
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
93 \label{sec:qmail}
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
94 \name{qmail} is seen by its community as ``a modern SMTP server which makes sendmail obsolete''. It was written by Daniel~J.\ Bernstein starting in 1995. His primary goal was to create a secure \MTA\ to replace the popular, but vulnerable, \sendmail.
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
95
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
96 \name{qmail} first introduced may innovative concepts in \mta\ design and is generally seen as the first security-aware \MTA\ developed.
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
97
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
98 Since November 2007, \name{qmail} is released in the \name{public domain} which makes it \freesw. The latest release is 1.03 from July 1998.
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
99
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
100 The programs homepages are \citeweb{qmail:homepage1} and \citeweb{qmail:homepage2}. Further information about \name{qmail} is available on \citeweb{lifewithqmail}, \citeweb{wikipedia:qmail} and \citeweb{jdebp}.
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
101
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
102
92
e050221efd38 much restructuring again
meillo@marmaro.de
parents: 89
diff changeset
103 \subsection*{\name{postfix}}
89
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
104 \label{sec:postfix}
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
105 The \name{postfix} project was started in 1999 at \name{IBM research}, then called \name{VMailer} or \name{IBM Secure Mailer}. Wietse Venema's program ``attempts to be fast, easy to administer, and secure. The outside has a definite Sendmail-ish flavor, but the inside is completely different.''\citeweb{postfix:homepage} In fact, \name{postfix} was mainly designed after qmail's architecture to gain security. But in contrast to \name{qmail} it aims much more on being fast and full-featured.
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
106
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
107 Today \name{postfix} is taken by many \unix systems and \gnulinux distributions as default \MTA.
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
108
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
109 The latest stable version is numbered 2.5.5 from August 2008. \name{postfix} is covered by the \name{IBM Public License 1.0} which is a \freesw\ license.
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
110
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
111 Additional information is available on the program's homepage \citeweb{postfix:homepage}, on \citeweb{jdebp} and \citeweb{wikipedia:postfix}.
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
112
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
113
92
e050221efd38 much restructuring again
meillo@marmaro.de
parents: 89
diff changeset
114 \subsection*{\name{exim}}
89
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
115 \label{sec:exim}
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
116 \name{exim} was started in 1995 by Philip Hazel at the \name{University of Cambridge}. Its age is about the same as \name{qmail}'s, but the architecture is totally different.
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
117
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
118 While \name{qmail} took a completely new approach, \name{exim} forked of \name{smail-3}, and therefor is monolitic like that and like \sendmail. But having no separation of the individual components of the system, like \name{qmail} and \name{postfix} have, did not hurt. Its security is comparably good.
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
119
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
120 \name{exim} is highly configurable, especially in the field of mail policies. This makes it easy to specify how mail is routed through the system and who is allowed to send email to whom. Also interfaces for integration of virus and spam check programs are provided by design.
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
121
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
122 The program is \freesw, released under the \GPL. The latest stable version is 4.69 from December 2007.
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
123
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
124 One finds \name{exim} on its homepage \citeweb{exim:homepage}. More information about it can be retrieved from \citeweb{wikipedia:exim} and \citeweb{jdebp}.
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
125
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
126
92
e050221efd38 much restructuring again
meillo@marmaro.de
parents: 89
diff changeset
127 \subsection*{\masqmail}
89
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
128 \label{sec:masqmail}
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
129 The \masqmail\ program was written by Oliver Kurth, starting in 1999. His aim was to create a small \mta\ which is especially focused on computers with dial-up connections to the internet. \masqmail\ is easy configurable for situations which are rarely solveable with the common \MTA{}s.
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
130
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
131 \masqmail\ queues mail for destinations outside the local network if no connection to the internet is online. If the machine goes online, this mail is sent. Mail to local machines is sent immediately.
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
132
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
133 While the other \MTA{}s are more general purpose \MTA{}s, \masqmail\ aims on special situations only. Nevertheless can it handle ordinary mail transfers too.
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
134
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
135 \masqmail\ is released under the \GPL, which makes it \freesw. The latest stable version is 0.2.21 from November 2005.
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
136
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
137 The program's new homepage \citeweb{masqmail:homepage} provides further information about this \MTA.
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
138
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
139
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
140
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
141
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
142 \section{Comparison of \MTA{}s}
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
143
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
144 % http://shearer.org/MTA_Comparison
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
145 % http://www.geocities.com/mailsoftware42/
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
146 % http://fanf.livejournal.com/50917.html
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
147 % http://archives.neohapsis.com/archives/postfix/2006-07/1762.html
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
148 % http://www.oreillynet.com/lpt/a/6849
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
149 % http://www.mailradar.com/mailstat/
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
150
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
151 \subsection{First release}
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
152 sendmail: 1983
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
153
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
154 postfix: 1999
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
155
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
156 qmail: 1996 (first beta 0.70), 1997 (first general 1.0)
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
157
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
158 exim: 1995
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
159
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
160 masqmail: 1999
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
161
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
162 exchange: 1993
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
163
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
164
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
165 \subsection{Lines of code (with sloccount on debian packages)}
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
166 sendmail: 93k
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
167
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
168 postfix: 92k
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
169
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
170 qmail: 18k
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
171
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
172 exim: 54k
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
173
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
174 masqmail: 14k
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
175
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
176 exchange: (no source available)
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
177
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
178
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
179 \subsection{Architecture}
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
180 sendmail: monolitic
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
181
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
182 postfix: modular
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
183
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
184 qmail: modular
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
185
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
186 exim: monolitic
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
187
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
188 masqmail: monolitic
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
189
92
e050221efd38 much restructuring again
meillo@marmaro.de
parents: 89
diff changeset
190 Like its anchestor \sendmail, \masqmail\ is a monolitic program. It consists of only one \emph{setuid root}\footnote{Runs as user root, no matter which user invoked it.}\index{setuid root} binary file, named \path{masqmail}. All functionality is included in it; of course some more comes from dynamic libraries linked.
e050221efd38 much restructuring again
meillo@marmaro.de
parents: 89
diff changeset
191
e050221efd38 much restructuring again
meillo@marmaro.de
parents: 89
diff changeset
192
89
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
193 exchange: (unknown)
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
194
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
195
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
196 \subsection{Design goals}
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
197 sendmail: flexibility
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
198
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
199 postfix: performance and security
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
200
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
201 qmail: security
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
202
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
203 exim: general, flexible \& extensive facilities for checking
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
204
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
205 masqmail: for non-permanent internet connection
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
206
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
207 exchange: groupware
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
208
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
209
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
210 \subsection{Market share (by Bernstein in 2001)}
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
211 sendmail: 42\%
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
212
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
213 postfix: 1.6\%
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
214
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
215 qmail: 17\%
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
216
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
217 exim: 1.6\%
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
218
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
219 masqmail: (unknown)
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
220
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
221 exchange: 18\%
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
222
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
223
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
224
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
225
99
d24fdd3d5990 added lots of comments and annotations about what to do
meillo@marmaro.de
parents: 93
diff changeset
226 \subsection{complexity}
89
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
227
99
d24fdd3d5990 added lots of comments and annotations about what to do
meillo@marmaro.de
parents: 93
diff changeset
228 \subsection{security}
89
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
229
99
d24fdd3d5990 added lots of comments and annotations about what to do
meillo@marmaro.de
parents: 93
diff changeset
230 \subsection{simplicity of configuration and administration}
89
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
231
99
d24fdd3d5990 added lots of comments and annotations about what to do
meillo@marmaro.de
parents: 93
diff changeset
232 \subsection{flexibility of configuration and administration}
89
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
233
99
d24fdd3d5990 added lots of comments and annotations about what to do
meillo@marmaro.de
parents: 93
diff changeset
234 \subsection{code size}
89
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
235
99
d24fdd3d5990 added lots of comments and annotations about what to do
meillo@marmaro.de
parents: 93
diff changeset
236 \subsection{code quality}
89
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
237
99
d24fdd3d5990 added lots of comments and annotations about what to do
meillo@marmaro.de
parents: 93
diff changeset
238 \subsection{documentation (amount and quality)}
89
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
239
99
d24fdd3d5990 added lots of comments and annotations about what to do
meillo@marmaro.de
parents: 93
diff changeset
240 \subsection{community (amount and quality)}
89
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
241
99
d24fdd3d5990 added lots of comments and annotations about what to do
meillo@marmaro.de
parents: 93
diff changeset
242 \subsection{used it myself}
89
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
243
99
d24fdd3d5990 added lots of comments and annotations about what to do
meillo@marmaro.de
parents: 93
diff changeset
244 \subsection{ had problems with it}
89
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
245
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
246
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
247
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
248
99
d24fdd3d5990 added lots of comments and annotations about what to do
meillo@marmaro.de
parents: 93
diff changeset
249 << quality criteria >> %FIXME
d24fdd3d5990 added lots of comments and annotations about what to do
meillo@marmaro.de
parents: 93
diff changeset
250
d24fdd3d5990 added lots of comments and annotations about what to do
meillo@marmaro.de
parents: 93
diff changeset
251 << standards of any kind >> %FIXME
d24fdd3d5990 added lots of comments and annotations about what to do
meillo@marmaro.de
parents: 93
diff changeset
252
d24fdd3d5990 added lots of comments and annotations about what to do
meillo@marmaro.de
parents: 93
diff changeset
253 << how to compare? >> %FIXME
d24fdd3d5990 added lots of comments and annotations about what to do
meillo@marmaro.de
parents: 93
diff changeset
254
d24fdd3d5990 added lots of comments and annotations about what to do
meillo@marmaro.de
parents: 93
diff changeset
255 << (bewertungsmatrix) objectivity >> %FIXME
d24fdd3d5990 added lots of comments and annotations about what to do
meillo@marmaro.de
parents: 93
diff changeset
256
d24fdd3d5990 added lots of comments and annotations about what to do
meillo@marmaro.de
parents: 93
diff changeset
257 << how many criterias for ``good''? >> %FIXME
d24fdd3d5990 added lots of comments and annotations about what to do
meillo@marmaro.de
parents: 93
diff changeset
258
93
a6f8a93abd64 new chapter 4 (split ch5); added lots of annotations
meillo@marmaro.de
parents: 92
diff changeset
259
a6f8a93abd64 new chapter 4 (split ch5); added lots of annotations
meillo@marmaro.de
parents: 92
diff changeset
260
a6f8a93abd64 new chapter 4 (split ch5); added lots of annotations
meillo@marmaro.de
parents: 92
diff changeset
261
89
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
262
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
263
92
e050221efd38 much restructuring again
meillo@marmaro.de
parents: 89
diff changeset
264 \subsubsection*{masqmail stuff}
89
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
265
92
e050221efd38 much restructuring again
meillo@marmaro.de
parents: 89
diff changeset
266 The \masqmail\ executable can be called under various names for \name{sendmail-compatibility} reasons. This is commonly organized by creating symbolic links with with different names to the \masqmail\ executable. These are \path{/usr/lib/sendmail} and \path{/usr/sbin/sendmail} because many programs expect a \mta\ to be located there. Further more \sendmail\ provides shortcuts by calling it with a different name instead of supplying command line arguments. The best known of it is \path{mailq}, which is equivilent to calling the \MTA\ with the argument \verb+-bq+. \masqmail\ reacts to the names \path{mailq}, \path{smtpd}, \path{mailrm}, \path{runq}, \path{rmail}, and \path{in.smtpd}. The last four are an addition to \sendmail. Not implemented is the name \path{newaliases} because it is not relevant to \masqmail. To provide the command nonetheless, one may write a shell script located at \path{/usr/bin/newaliases}, that simply invokes \verb+masqmail -bi+.
89
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
267
92
e050221efd38 much restructuring again
meillo@marmaro.de
parents: 89
diff changeset
268 %masqmail: mailq, mailrm, runq, rmail, smtpd/in.smtpd
e050221efd38 much restructuring again
meillo@marmaro.de
parents: 89
diff changeset
269 %sendmail: hoststat, mailq, newaliases, purgestat, smtpd
89
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
270
92
e050221efd38 much restructuring again
meillo@marmaro.de
parents: 89
diff changeset
271 \masqmail\ is written in the \NAME{C} programming language. The program, as of version 0.2.21, consists of 34 source code and eight header files, containing about 9,000 lines of code\footnote{Measured with \name{sloccount} by David A.\ Wheeler.}. Additionally, it includes a \name{base64} implementation (about 300 lines) and \name{md5} code (about 150 lines). For systems that do not provide \name{libident}, this library is distributed as well (circa 600 lines); an available shared library however has higher precedence in linking.
89
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
272
92
e050221efd38 much restructuring again
meillo@marmaro.de
parents: 89
diff changeset
273 The only mandatory dependency is \name{glib}---a cross-platform software utility library, originated in the \NAME{GTK+} project. It provides safer replacements for many standard library functions. (The unsafe \verb+sprintf()+ is one example.) Also it offers handy data containers, easy-to-use implementations of data structures, and much more.
89
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
274
92
e050221efd38 much restructuring again
meillo@marmaro.de
parents: 89
diff changeset
275 With \masqmail\ comes the small tool \path{mservdetect}; it helps setting up a configuration that uses the \name{mserver} system to detect the online state. Two other binaries get compiled for testing purposes: \path{readtest} and \path{smtpsend}. All three programms use \masqmail\ source code; they only add a file with a \verb+main()+ function each.
89
3b5ba7331eb5 complete restructuring of whole document
meillo@marmaro.de
parents:
diff changeset
276
92
e050221efd38 much restructuring again
meillo@marmaro.de
parents: 89
diff changeset
277 \masqmail\ does not provide an interface for modules with additional functionality. There exists no add-on or module system. But the code is separated by function to the various source files, and some functional parts can be included or excluded by defining symbols. This means adding some argument (like \verb+--enable-maildir+) to the \verb+configure+ call. Thus the concerning code gets not removed by the preprocessor.