annotate thesis/tex/4-MasqmailsFuture.tex @ 201:013a13ee0a5f

subsections to unnumbered subsubsections
author meillo@marmaro.de
date Wed, 31 Dec 2008 17:41:13 +0100
parents 2e006e8f5250
children f2b8481789f6
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
109
de590ff06051 changes suggested by schaeffter
meillo@marmaro.de
parents: 99
diff changeset
1 \chapter{\masqmail's present and future}
93
a6f8a93abd64 new chapter 4 (split ch5); added lots of annotations
meillo@marmaro.de
parents:
diff changeset
2
185
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
3 This chapter \dots %fixme write text here
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
4
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
5
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
6
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
7
137
c60b164bfd3c rearranging of ch04
meillo@marmaro.de
parents: 133
diff changeset
8 \section{Existing code base}
185
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
9
142
1b0ba5151d1b person names in small caps
meillo@marmaro.de
parents: 140
diff changeset
10 Here regarded is version 0.2.21 of \masqmail. This is the last version released by Oliver \person{Kurth}, and the basis for my thesis.
1b0ba5151d1b person names in small caps
meillo@marmaro.de
parents: 140
diff changeset
11
132
a83a29e10b10 new books
meillo@marmaro.de
parents: 129
diff changeset
12
185
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
13 \subsubsection*{The source code}
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
14
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
15 \masqmail\ is written in the 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.
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
16
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
17 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. It also offers handy data containers, easy-to-use implementations of data structures, and much more.
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
18
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
19 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.
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
20
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
21 \masqmail\ does not provide an interface to plug in modules with additional functionality. There exists no add-on or module system. The code is only separated by function to the various source files. Some functional parts can be included or excluded by defining symbols. Adding maildir support at compile time, means giving the option \verb+--enable-maildir+ to the \path{configure} call. This preserves the concerning code to get removed by the preprocessor. Unfortunately the \verb+#ifdef+s are scattered through all the source, leading to source code that is hard to read.
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
22 %fixme: refer to ifdef-considered-harmful ?
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
23
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
24
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
25
137
c60b164bfd3c rearranging of ch04
meillo@marmaro.de
parents: 133
diff changeset
26 \subsubsection*{Features}
c60b164bfd3c rearranging of ch04
meillo@marmaro.de
parents: 133
diff changeset
27
142
1b0ba5151d1b person names in small caps
meillo@marmaro.de
parents: 140
diff changeset
28 \masqmail\ accepts mail on the command line and via \SMTP. Mail queueing and alias expansion is supported. \masqmail\ is able to deliver mail to local mailboxes (in \name{mbox} or \name{maildir} format) or pass it to a \name{mail delivery agent} (like \name{procmail}). Mail destinated to remote locations is sent using \SMTP\ or can be piped to commands, being gatesways to \NAME{UUCP} or \NAME{FAX} for example.
132
a83a29e10b10 new books
meillo@marmaro.de
parents: 129
diff changeset
29
142
1b0ba5151d1b person names in small caps
meillo@marmaro.de
parents: 140
diff changeset
30 Outgoing \SMTP\ connections feature \SMTP-\NAME{AUTH} and \SMTP-after-\NAME{POP} authentication, but incoming connections do not. Using wrappers for outgoing connections is supported. This offers a two way communication through a wrapper application like \name{openssl}.
137
c60b164bfd3c rearranging of ch04
meillo@marmaro.de
parents: 133
diff changeset
31 %todo: what about SSL/TLS encryption?
132
a83a29e10b10 new books
meillo@marmaro.de
parents: 129
diff changeset
32
142
1b0ba5151d1b person names in small caps
meillo@marmaro.de
parents: 140
diff changeset
33 \masqmail\ focuses on non-permanent online connections, thus a concept of online routes is used. One may configure any amount of routes to send mail. Each route can have criterias, like matching \texttt{From:} or \texttt{To:} headers, to determine if mail is allowed to be sent using it. Mail to destinations outside the local net gets queued until \masqmail\ is informed about the existance of a online connection.
1b0ba5151d1b person names in small caps
meillo@marmaro.de
parents: 140
diff changeset
34
137
c60b164bfd3c rearranging of ch04
meillo@marmaro.de
parents: 133
diff changeset
35 The \masqmail\ executable can be called under various names for sendmail-compatibility reasons. This is organized by symbolic links with different names pointing to the \masqmail\ executable. The \sendmail\ names are \path{/usr/lib/sendmail} and \path{/usr/sbin/sendmail} because many programs expect the \mta\ to be located there. Further more \sendmail\ supports calling it with a different name instead of supplying command line arguments. The best known of this shortcuts is \path{mailq}, which is equivilent to calling it with the argument \verb+-bq+. \masqmail\ recognizes the names \path{mailq}, \path{smtpd}, \path{mailrm}, \path{runq}, \path{rmail}, and \path{in.smtpd}. The first two are inspired by \sendmail. Not implemented is the name \path{newaliases} because \masqmail\ does not generate binary representations of the alias file.\footnote{A shell script located named \path{newaliases}, that invokes \texttt{masqmail -bi}, can provide the command to satisfy other software needing it.} \path{hoststat} and \path{purgestat} are missing for sendmail-compatibility.
c60b164bfd3c rearranging of ch04
meillo@marmaro.de
parents: 133
diff changeset
36 %masqmail: mailq, mailrm, runq, rmail, smtpd/in.smtpd
c60b164bfd3c rearranging of ch04
meillo@marmaro.de
parents: 133
diff changeset
37 %sendmail: hoststat, mailq, newaliases, purgestat, smtpd
132
a83a29e10b10 new books
meillo@marmaro.de
parents: 129
diff changeset
38
137
c60b164bfd3c rearranging of ch04
meillo@marmaro.de
parents: 133
diff changeset
39 Additional to the \mta\ job, \masqmail\ also offers mail retrieval services with being a \NAME{POP3} client. It can fetch mail from different remote locations, dependent on the active online route.
132
a83a29e10b10 new books
meillo@marmaro.de
parents: 129
diff changeset
40
a83a29e10b10 new books
meillo@marmaro.de
parents: 129
diff changeset
41
a83a29e10b10 new books
meillo@marmaro.de
parents: 129
diff changeset
42
a83a29e10b10 new books
meillo@marmaro.de
parents: 129
diff changeset
43
a83a29e10b10 new books
meillo@marmaro.de
parents: 129
diff changeset
44
a83a29e10b10 new books
meillo@marmaro.de
parents: 129
diff changeset
45
177
7781ad0811f7 new sections, moved content, and more
meillo@marmaro.de
parents: 173
diff changeset
46 \section{Requirements}
146
2c4673d983c3 wrote about requirements (related to directions to go)
meillo@marmaro.de
parents: 142
diff changeset
47
185
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
48 This section identifies the requirements for a modern \masqmail. Most of them will apply to modern \MTA{}s in general.
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
49
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
50
177
7781ad0811f7 new sections, moved content, and more
meillo@marmaro.de
parents: 173
diff changeset
51
7781ad0811f7 new sections, moved content, and more
meillo@marmaro.de
parents: 173
diff changeset
52 \subsection{General requirements}
146
2c4673d983c3 wrote about requirements (related to directions to go)
meillo@marmaro.de
parents: 142
diff changeset
53
189
79803ad327ca reworked general requirements
meillo@marmaro.de
parents: 188
diff changeset
54 Here follows a list of quality requirements for \masqmail, or other kinds of programs in similar environment and with similar jobs. These requirements specify the non-functional properties of the software, thus they are also called \name{non-functional requirements}. The list is based on \person{Hafiz} \cite[page~2]{hafiz05}, with insperation from \person{Spinellis} \cite[page~6]{spinellis06}.
185
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
55 %fixme: refer to ch01 and ch02
146
2c4673d983c3 wrote about requirements (related to directions to go)
meillo@marmaro.de
parents: 142
diff changeset
56
137
c60b164bfd3c rearranging of ch04
meillo@marmaro.de
parents: 133
diff changeset
57
177
7781ad0811f7 new sections, moved content, and more
meillo@marmaro.de
parents: 173
diff changeset
58 \subsubsection*{Security}
196
b80438534651 rewrites and new content about non-functional requirements
meillo@marmaro.de
parents: 191
diff changeset
59 \MTA{}s are critical points for computer security, as they are accessable from external networks. They must be secured with high effort. Properties like high priviledge level, work load influenced from extern, work on unsafe data, and demand for reliability, increase the need for security. \masqmail\ needs to be secure enough for its target field of operation.
177
7781ad0811f7 new sections, moved content, and more
meillo@marmaro.de
parents: 173
diff changeset
60
7781ad0811f7 new sections, moved content, and more
meillo@marmaro.de
parents: 173
diff changeset
61
7781ad0811f7 new sections, moved content, and more
meillo@marmaro.de
parents: 173
diff changeset
62 \subsubsection*{Reliability}
196
b80438534651 rewrites and new content about non-functional requirements
meillo@marmaro.de
parents: 191
diff changeset
63 Reliability is the second essential quality property for an \MTA. Mail for which the \MTA\ took responsibility must never get lost. The \MTA\ must not be \emph{the cause} of any mail loss, no matter what happens. Unreliable \mta{}s are of no value.
189
79803ad327ca reworked general requirements
meillo@marmaro.de
parents: 188
diff changeset
64
177
7781ad0811f7 new sections, moved content, and more
meillo@marmaro.de
parents: 173
diff changeset
65
189
79803ad327ca reworked general requirements
meillo@marmaro.de
parents: 188
diff changeset
66 \subsubsection*{Robustness}
196
b80438534651 rewrites and new content about non-functional requirements
meillo@marmaro.de
parents: 191
diff changeset
67 Being robust means handling errors properly. Small errors may get tolerated, large errors may kill a process. Killed processes should be automatically restarted and lead to a clean state again. Log messages should be written in every case. Robust software does not need a special environment, it creates the right environment itself. \person{Raymond}'s \name{Rule of Robustness} and his \name{Rule of Repair} are good descriptions.\cite[pages~18--21]{raymond03}
177
7781ad0811f7 new sections, moved content, and more
meillo@marmaro.de
parents: 173
diff changeset
68
7781ad0811f7 new sections, moved content, and more
meillo@marmaro.de
parents: 173
diff changeset
69
7781ad0811f7 new sections, moved content, and more
meillo@marmaro.de
parents: 173
diff changeset
70 \subsubsection*{Extendability}
196
b80438534651 rewrites and new content about non-functional requirements
meillo@marmaro.de
parents: 191
diff changeset
71 Modern needs like large messages demand for more efficient mail transport through the net. Aswell is a final solution needed to defeat the spam problem. New mail transport protocols seem to be the only good solutions for both problems. They also can improve reliability, authentication, and verification issues. \masqmail's architecture needs to be extendable, to allow new features to be added afterwards. For example new mail transfer protocols as they appear and are used.
b80438534651 rewrites and new content about non-functional requirements
meillo@marmaro.de
parents: 191
diff changeset
72
146
2c4673d983c3 wrote about requirements (related to directions to go)
meillo@marmaro.de
parents: 142
diff changeset
73
189
79803ad327ca reworked general requirements
meillo@marmaro.de
parents: 188
diff changeset
74 \subsubsection*{Maintainability}
196
b80438534651 rewrites and new content about non-functional requirements
meillo@marmaro.de
parents: 191
diff changeset
75 Maintaining software takes much time and effort. \person{Spinellis} guesses ``40\,\% to 70\,\% of the effort that goes into a software system is expended after the system is written first time.'' \cite[page~1]{spinellis03}. This work is called \emph{maintaining}. Hence making software good to maintain is effort that will easy 40 to 70\,\% of the work afterwards.
146
2c4673d983c3 wrote about requirements (related to directions to go)
meillo@marmaro.de
parents: 142
diff changeset
76
189
79803ad327ca reworked general requirements
meillo@marmaro.de
parents: 188
diff changeset
77
79803ad327ca reworked general requirements
meillo@marmaro.de
parents: 188
diff changeset
78 \subsubsection*{Testability}
196
b80438534651 rewrites and new content about non-functional requirements
meillo@marmaro.de
parents: 191
diff changeset
79 Good testability make maintainance easier too, because functionality is directly verifiable when changes are done, thus removing the uncertainty. Modularized software makes testing easier, because parts can be testet without external influences. \person{Spinellis} sees testability as a subquality of maintainability.
189
79803ad327ca reworked general requirements
meillo@marmaro.de
parents: 188
diff changeset
80
79803ad327ca reworked general requirements
meillo@marmaro.de
parents: 188
diff changeset
81
79803ad327ca reworked general requirements
meillo@marmaro.de
parents: 188
diff changeset
82 \subsubsection*{Performance}
196
b80438534651 rewrites and new content about non-functional requirements
meillo@marmaro.de
parents: 191
diff changeset
83 Also called ``efficiency''. Efficient software requires few time and few resources. The merge of communication hardware and its move from service providers to homes and to mobile devices, demand smaller and more resource-friendly software. The amount of mail will be lower, even if much more mail will be sent. More important will be the energy consumption and heat emission. These topics increased in relevance during the past years and they are expected to become more central.
132
a83a29e10b10 new books
meillo@marmaro.de
parents: 129
diff changeset
84
a83a29e10b10 new books
meillo@marmaro.de
parents: 129
diff changeset
85
189
79803ad327ca reworked general requirements
meillo@marmaro.de
parents: 188
diff changeset
86 \subsubsection*{Availability}
196
b80438534651 rewrites and new content about non-functional requirements
meillo@marmaro.de
parents: 191
diff changeset
87 Availability is important for server programs. They must stay operational, even during \name{denial of service} attacks.
146
2c4673d983c3 wrote about requirements (related to directions to go)
meillo@marmaro.de
parents: 142
diff changeset
88
2c4673d983c3 wrote about requirements (related to directions to go)
meillo@marmaro.de
parents: 142
diff changeset
89
189
79803ad327ca reworked general requirements
meillo@marmaro.de
parents: 188
diff changeset
90 \subsubsection*{Portability}
196
b80438534651 rewrites and new content about non-functional requirements
meillo@marmaro.de
parents: 191
diff changeset
91 Source code that compiles and runs on various operationg systems is called portable. Portability can be achieved by using standard features of the programming language and common libraries. Basic rules for portable code are defined by \person{Kerighan} and \person{Pike} \cite{kernighan99}. Portable code lets software spread faster.
189
79803ad327ca reworked general requirements
meillo@marmaro.de
parents: 188
diff changeset
92
79803ad327ca reworked general requirements
meillo@marmaro.de
parents: 188
diff changeset
93
79803ad327ca reworked general requirements
meillo@marmaro.de
parents: 188
diff changeset
94 \subsubsection*{Usability}
196
b80438534651 rewrites and new content about non-functional requirements
meillo@marmaro.de
parents: 191
diff changeset
95 Usability, not mentioned by \person{Hafiz} (he focuses on architecture) but by \person{Spinellis} and \person{Kan}, is a property very important from the user's point of view. Software with bad usability is rarely used, no matter how good it is. If roughly equivilent substitutes with better usability exist, the user will switch to one of them. Usability here means easy to set up and configure, too; users are also administrators here. Having \mta{}s on many home servers and clients, requires easy and standardized configuration. The common setups should be configurable with single actions by the user. Complex configuration should be possible, but focused must be the most common form of configuration: choosing one of several standard setups.
146
2c4673d983c3 wrote about requirements (related to directions to go)
meillo@marmaro.de
parents: 142
diff changeset
96
2c4673d983c3 wrote about requirements (related to directions to go)
meillo@marmaro.de
parents: 142
diff changeset
97
137
c60b164bfd3c rearranging of ch04
meillo@marmaro.de
parents: 133
diff changeset
98
146
2c4673d983c3 wrote about requirements (related to directions to go)
meillo@marmaro.de
parents: 142
diff changeset
99
185
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
100
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
101 \subsection{Functional requirements}
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
102
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
103 This section identifies the needed functionality for a modern \MTA. The basic job of a \mta\ is to tranport mail from a sender to a recipient. This is the definition of such kind of software and this is how \MTA{}s are generally seen \cite[page 19]{dent04} \cite[pages 3-5]{hafiz05}.
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
104
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
105 An \MTA\ therefore needs at least a mail receiving facility and a mail sending facility.
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
106
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
107
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
108
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
109 \subsubsection*{Incoming channels}
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
110
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
111 \sendmail-compatible \mta{}s must support at least two incoming channels: mail submitted using the \sendmail\ command, and mail received via the \SMTP\ daemon. Thus it is common to split the incoming channel into local and remote. This is done by \qmail\ and \postfix. The same way is \person{Hafiz}'s view. \SMTP\ is the primary mail transport protocol today, but with the increasing need for new protocols\ref{FIXME} in mind, support for more than just \SMTP\ is good to have. This leads to more than one remote channel.
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
112
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
113
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
114 \subsubsection*{Outgoing channels}
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
115
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
116 Outgoing mail is commonly either sent using \SMTP, piped into local commands (for example \texttt{uucp}), or delivered locally by appending to a mailbox.
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
117
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
118 Outgoing channels are similar for \qmail, \postfix, and \name{sendmail X}: All of them have a module to send mail using \SMTP, and one for writing into a local mailbox. Local mail delivery is a job that requires root priveledge to be able to switch to any user in order to write to his mailbox.
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
119
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
120 As mail delivery to local users, is \emph{not} included in the basic job of an \MTA{}, why should it care about it? In order to keep the system simple and to have programs that do one job well, the local delivery job should be handed over to a specialist: the \name{mail delivery agent}. \NAME{MDA}s know about the various mailbox formats and are aware of the problems of concurrent write access and thelike. Hence handling the message and the responsiblity over to a \NAME{MDA}, like \name{procmail} or \name{maildrop}, seems to be the right way to go.
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
121
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
122 This means an outgoing connection that pipes mail into local commands is required. Other outgoing channels, one for each supportet protocol, may be designed like it was done in other \MTA{}s.
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
123
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
124
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
125
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
126 \subsubsection*{Mail queue}
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
127
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
128 Additionally to the mail receiving and sending facilities, mail queues are a basic feature. A mail queue removes the need to deliver intantly as a message is received. They provide fail-safe storage of mails until they are delivered. Mail queues are probably used in all \mta{}s, excluding the simple forwarders. A mail queue is a essential requirement for \masqmail, as it is to be used for non-permanent online connections. This means, mail must be queued until a online connection is available to send the message.
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
129
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
130 The mail queue and the module to manage it are the central part of the whole system. This demands especially for robustness and reliability, as a failure here can lead to loosing mail. An \MTA\ takes over responsibility for mail in accepting it, hence loosing mail messages is absolutely to avoid. This covers any kind of crash situation too. The worst thing acceptable to happen is a mail to be sent twice.
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
131
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
132 \sendmail, \exim, \qmail, \name{sendmail X}, and \masqmail\ feature one single mail queue. \postfix\ has three of them: \name{incoming}, \name{active}, and \name{deferred}. (The \name{maildrop} queue is excluded, as it is only used for the \texttt{sendmail} command.)
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
133
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
134 \MTA\ setups that do external content scanning tend to require two separate queues. To use \sendmail\ in such setups requires two independent instances, with two separate queues, running. \exim\ can handle it with special \name{router} and \name{transport} rules, but the data flow gets complicated. Having two independent queues seems to be preferable.
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
135
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
136
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
137
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
138
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
139 \subsubsection*{Header sanitizing}
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
140
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
141 Mail coming into the system often lacks important header lines. At least the required ones must be added from the \MTA. One example is the \texttt{Date:} header, another is the, not required but recommended \texttt{Message-ID:} header. Apart from adding missing headers, rewriting headers is important too, to change the locally known domain part of email addresses to globally known ones for example. \masqmail\ needs also the ability to rewrite the domain part dependent on the route used to send the message.
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
142
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
143 Generating the envelope is a related job. The envelope specifies the actual recipient of the mail, no matter what the \texttt{To:}, \texttt{Cc:}, and \texttt{Bcc:} headers tell. Multiple reciptients lead to multiple different envelopes, containing all the same mail message.
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
144
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
145
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
146
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
147
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
148 \subsubsection*{Aliasing}
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
149
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
150 Email addresses can have aliases and need to be expanded. Aliases can be of different kind: different local user, remote user, list of local and/or remote users, or a command. Most important are the aliases in the \path{aliases} file, usually located at \path{/etc/aliases}. Addresses expanding to lists of users lead to more envelopes. Aliases changing the reciptients domain part may require a different route to use.
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
151
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
152
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
153
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
154
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
155 \subsubsection*{Choose route to use}
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
156
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
157 One key feature of \masqmail\ is its ability to send mail out in different ways. The decision is based on the current online state and whether a route may be used for a message or not. The online state can be retrieved in tree ways, explained in \ref{sec:fixme}. A route to send is found by checking every available route for being able to transfer the current message, until one matches.
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
158
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
159
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
160
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
161
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
162 \subsubsection*{Authentication}
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
163
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
164 One thing to avoid is being an \name{open relay}. Open relays allow to relay mail from everywhere to everywhere. This is a major source of spam. The solution is restricting relay\footnote{Relaying is passing mail, that is not from and not for the own system, through it.} access.
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
165
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
166 Several ways to restrict access are available. The most simple one is restrictiction relaying by the \NAME{IP} address. No extra complexity is added this way, but static \NAME{IP} addresses are needed.
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
167
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
168 If static access restriction is not possible, for example mail from locations with changing \NAME{IP} addresses, some kind of authentication mechanism is required. Three common kinds exist:
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
169 \begin{itemize}
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
170 \item \SMTP-after-\NAME{POP}: Uses authenication on the \NAME{POP} protocol to permit incoming \SMTP\ connections for a limited time afterwards.
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
171 \item \SMTP authentication: An extension to \SMTP. Authentication can be requested before mail is accepted.
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
172 \item Certificates: They confirm the identity of someone.
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
173 \end{itemize}
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
174
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
175
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
176
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
177 \subsubsection*{Encryption}
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
178
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
179 Electronic mail is very weak to sniffing attacks, because all data transfer is unencrypted. This concerns the message's content, as well as the email addresses in header and envelope, but also authentication dialogs that may transfer plain text passwords (\NAME{PLAIN} and \NAME{LOGIN} are examples). Thus encryption is wanted.
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
180
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
181 The common way to encrypt \SMTP\ dialogs is using \name{Transport Layer Security} (short: \TLS, successor of \NAME{SSL}). \TLS\ encrypts the datagrams of the \name{transport layer}. This means it works below the application protocols and can be used by any of them\citeweb{wikipedia:tls}.
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
182
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
183 Outgoing \SMTP\ connections can get encrypted using a secure tunnel, created by an external application. Incoming connections, can not use this technique because the remote \NAME{IP} address is hidden then; \NAME{STARTTLS}---defined in \RFC2487---is what \mta{}s implement.
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
184
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
185
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
186
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
187 \subsubsection*{Spam prevention}
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
188
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
189 Spam is a major threat nowadays, but it is a war in which the good guys tend to lose. Putting much effort in fighting spam results in few gain. Real success will only be possible with new---better---protocols and abandonning the weak legacy technologies. The goal is to provide state-of-the-art spam protection, but not more (see section \ref{sec:swot-analysis}). As spam is not just a nuisance for end users, but also for the infrastructure---the \mta{}s---by increasing the amount of mail messages, \MTA{}s need to protect themself.
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
190
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
191 Filtering spam can be done in two ways: Refusing spam during the \SMTP\ dialog or checking for spam after the mail was accepted and queued. Both have advantages and disadvantages, so modern \MTA{}s use them in combination. Spam is identified by the results of a set of checks. Static rules, querying databases (\NAME{DNS} blacklists), requesting special client behavior (\name{greylisting}, \name{hashcash}), or statistical analysis (\name{bogofilter}) are checks that may be used. Running more checks leads to better results, but takes more system resources and time.
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
192
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
193 Doing some basic checks during the \SMTP\ dialog seems to be a must.
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
194
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
195
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
196
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
197 \subsubsection*{Virus checking}
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
198
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
199 Related to spam is malicous content (short: \name{malware}) like viruses, worms, trojan horses. They, in contrast to spam, do not affect the \MTA\ itself, as they are in the mail body. \MTA{}s searching for malware is equal to real world's post offices opening letters to check if they contain something that could harm the recipient. This is not a mail transport job. But the last \MTA---the one responsible for the recipient---seems to be at a good position to do this work.
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
200
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
201 In any way should malware checking be done by external programs that may be invoked by the \mta. But using mail deliver and processing agents, like \name{procmail}, a better suited locations to invoke content scanners.
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
202
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
203 A popular email filter framework is \name{amavis} which integrates various spam and virus scanners. The common setup includes a receiving \MTA\ which sends it to \name{amavis} using \SMTP, \name{amavis} processes the mail and sends it then to a second \MTA\ that does the outgoing transfer. Having interfaces to such scanners is, for sure, good to have.
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
204
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
205
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
206
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
207 \subsubsection*{Archiving}
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
208
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
209 Mail archiving and auditability become more important as electronic mail becomes more important. The ability to archive verbatim copies of every mail coming into and every mail going out of the system, with relation between them, appears to be a goal to achieve.
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
210
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
211 \postfix\ for example has a \texttt{always\_bcc} feature, to send a copy of every mail to a definable reciptient. At least this funtionality should be given, although a more complete approach is preferable.
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
212
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
213
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
214
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
215
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
216
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
217
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
218
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
219
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
220 \section{Work to do}
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
221
187
7f4d97584a6f wrote about work to do
meillo@marmaro.de
parents: 185
diff changeset
222 After \masqmail's features were presented in section \ref{sec:fixme} and the requirements for modern \mta{}s were identified in section \ref{sec:fixme}, here the differences between them are shown.
7f4d97584a6f wrote about work to do
meillo@marmaro.de
parents: 185
diff changeset
223
7f4d97584a6f wrote about work to do
meillo@marmaro.de
parents: 185
diff changeset
224
7f4d97584a6f wrote about work to do
meillo@marmaro.de
parents: 185
diff changeset
225
7f4d97584a6f wrote about work to do
meillo@marmaro.de
parents: 185
diff changeset
226 \subsubsection*{Fulfilled requirements}
7f4d97584a6f wrote about work to do
meillo@marmaro.de
parents: 185
diff changeset
227
200
2e006e8f5250 rewrote much and wrote result and more (ch04)
meillo@marmaro.de
parents: 197
diff changeset
228 \masqmail's incoming and outgoing channels are the ones common to most \MTA{}s: the \texttt{sendmail} command and \SMTP\ for incoming mail; local delivery, piping to commands, and \SMTP\ for outgoing mail. Support for other protocols is not available. To add it, modifications at many places in the source are needed.
187
7f4d97584a6f wrote about work to do
meillo@marmaro.de
parents: 185
diff changeset
229
7f4d97584a6f wrote about work to do
meillo@marmaro.de
parents: 185
diff changeset
230 One single mail queue is used in \masqmail. The envelope and mail headers are generated when the mail is put into the queue. Aliasing is done on delivery, after the route to be used was determined. Headers may be rewritten then. These parts do all provide the functionality required.
7f4d97584a6f wrote about work to do
meillo@marmaro.de
parents: 185
diff changeset
231
7f4d97584a6f wrote about work to do
meillo@marmaro.de
parents: 185
diff changeset
232 Static authentication, based on \NAME{IP} addresses, can be set up using the \path{hosts.allow} and \path{hosts.deny} files. Dynamic authentication is supported in form of \NAME{SMTP-AUTH} and \SMTP-after-\NAME{POP}, but only for outgoing connections. The same for encryption which is also only available for outgoing \SMTP\ connections; here a wrapper application like \name{openssl} needs to be used. Support for authentication and encryption of incoming connections is completely missing, but a basic requirement for all secure emailing.
7f4d97584a6f wrote about work to do
meillo@marmaro.de
parents: 185
diff changeset
233
7f4d97584a6f wrote about work to do
meillo@marmaro.de
parents: 185
diff changeset
234 \masqmail\ does not provide special support for spam filter or content checking. But it is possible to invoke external filter applications by running two independent instances of \masqmail, connected by the filter application. The receiving \MTA\ instance accepts mail and pushes it into the filter. The filter application receives mail, processes it, possible modifies it, and pushes it over to a second \MTA\ instance. The second \MTA\ is responsible for further delivery of the mail. Appendix \ref{app:FIXME} shows configuration files to create such a setup. This is a concept that works in general. However, real spam \emph{prevention}---to not accept spam mail at all---or good filter interfaces are not available, but are nessesary for using \masqmail\ in an unsafe environment.
7f4d97584a6f wrote about work to do
meillo@marmaro.de
parents: 185
diff changeset
235
7f4d97584a6f wrote about work to do
meillo@marmaro.de
parents: 185
diff changeset
236 There is currently no way of archiving every message going through \masqmail.
185
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
237
187
7f4d97584a6f wrote about work to do
meillo@marmaro.de
parents: 185
diff changeset
238
196
b80438534651 rewrites and new content about non-functional requirements
meillo@marmaro.de
parents: 191
diff changeset
239 Non-functional requirements are not so easy to be marked as fulfilled or not. Instead they are discussed here.
b80438534651 rewrites and new content about non-functional requirements
meillo@marmaro.de
parents: 191
diff changeset
240
b80438534651 rewrites and new content about non-functional requirements
meillo@marmaro.de
parents: 191
diff changeset
241 \masqmail\ needs to be ``secure enough'', but what is ``secure enough''? This depends on its target field. Currently \masqmail\ is targeted to workstations and private networks, with explicit warning for use on permanent online hosts \citeweb{masqmail:homepage2}. \masqmail's current security is bad. (For instance does a long time known attack against \sendmail, described by \person{Sill} \cite[page~4]{sill02}, still outwit \masqmail). The security, however, seems acceptable for use on workstations and private networks, if the environment is trusted. In environments where untrusted components or persons have access to \masqmail, its security is too low.
b80438534651 rewrites and new content about non-functional requirements
meillo@marmaro.de
parents: 191
diff changeset
242
b80438534651 rewrites and new content about non-functional requirements
meillo@marmaro.de
parents: 191
diff changeset
243 Similar for its reliability. It has been reported that \masqmail\ has not sent mail under some circumstances \citeweb{FIXME}. %fixme
b80438534651 rewrites and new content about non-functional requirements
meillo@marmaro.de
parents: 191
diff changeset
244 The author also noticed problems with where only one part of the queued message was removed, the other part remained as garbage. Fortunately, reports abou lost mail are not known. Current reliability is not good enough.
b80438534651 rewrites and new content about non-functional requirements
meillo@marmaro.de
parents: 191
diff changeset
245
b80438534651 rewrites and new content about non-functional requirements
meillo@marmaro.de
parents: 191
diff changeset
246 The logging behavior of \masqmail\ is good, but does not cover everything. Also it trusts its environment. For example, if the queue directory is world writeable by accident (or as action of an intruder), any user can remove messages from the queue or replace them with own ones. \masqmail\ does not even write a debug message in this case.
b80438534651 rewrites and new content about non-functional requirements
meillo@marmaro.de
parents: 191
diff changeset
247
b80438534651 rewrites and new content about non-functional requirements
meillo@marmaro.de
parents: 191
diff changeset
248 \masqmail's extendability is very poor. This is a general problem of monolithic software, but can thus be provided with high effort. \exim\ is an example for good extendability for a monolithic program.
b80438534651 rewrites and new content about non-functional requirements
meillo@marmaro.de
parents: 191
diff changeset
249
b80438534651 rewrites and new content about non-functional requirements
meillo@marmaro.de
parents: 191
diff changeset
250 The maintainability of \masqmail\ appears to be equivilent to other software of similar kind. Missing modularity and therefore more complexity makes the maintainer's work harder. In summary is \masqmail's maintainability bearable, and in view of its missing modularity good. The testability suffers from the same. Testing program parts is hard, but done by compiling source parts to special test programs.
b80438534651 rewrites and new content about non-functional requirements
meillo@marmaro.de
parents: 191
diff changeset
251
b80438534651 rewrites and new content about non-functional requirements
meillo@marmaro.de
parents: 191
diff changeset
252 The performance---effenciency---of \masqmail\ is good enough for its target field of operation, where this is a minor goal. As well is its availability. Hence no further work needs to be done her.
b80438534651 rewrites and new content about non-functional requirements
meillo@marmaro.de
parents: 191
diff changeset
253
b80438534651 rewrites and new content about non-functional requirements
meillo@marmaro.de
parents: 191
diff changeset
254 The code's protability is good with view on \unix-like operation systems. At least \name{Debian}, \name{Redhat}, \NAME{SUSE}, \name{slackware}, \name{Free}\NAME{BSD}, \name{Open}\NAME{BSD}, and \name{Net}\NAME{BSD} are reported to be able to compile and run \masqmail\ \citeweb{masqmail:homepage2}. About special requirements for the underlying file system is not heard of. The portability is already good.
b80438534651 rewrites and new content about non-functional requirements
meillo@marmaro.de
parents: 191
diff changeset
255
b80438534651 rewrites and new content about non-functional requirements
meillo@marmaro.de
parents: 191
diff changeset
256 The usability, from the administator's point of view, is very good. \masqmail\ was developed to suite a specific, limited job, its configuration does perfect match. The user's view does not reach to the \MTA, as it is hidden behind the \name{mail user agent}.
b80438534651 rewrites and new content about non-functional requirements
meillo@marmaro.de
parents: 191
diff changeset
257
187
7f4d97584a6f wrote about work to do
meillo@marmaro.de
parents: 185
diff changeset
258
7f4d97584a6f wrote about work to do
meillo@marmaro.de
parents: 185
diff changeset
259
7f4d97584a6f wrote about work to do
meillo@marmaro.de
parents: 185
diff changeset
260 \subsubsection*{Missing parts}
185
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
261
187
7f4d97584a6f wrote about work to do
meillo@marmaro.de
parents: 185
diff changeset
262 Support for other protocols than \SMTP\ seems not to be nessesary at the moment. Adding such support will need lots of work in all parts of \masqmail, hence delaying it until the support is needed appears to be the best solution.
7f4d97584a6f wrote about work to do
meillo@marmaro.de
parents: 185
diff changeset
263
7f4d97584a6f wrote about work to do
meillo@marmaro.de
parents: 185
diff changeset
264 Authentication of incoming \SMTP\ connections is definately needed and should be added soon. The same applies to encryption of incomming connections. These two features are essential for restricting relaying and providing privacy.
7f4d97584a6f wrote about work to do
meillo@marmaro.de
parents: 185
diff changeset
265
7f4d97584a6f wrote about work to do
meillo@marmaro.de
parents: 185
diff changeset
266 As authentication can be a guard against spam, filter facilities have lower priority. But basic spam filtering and interfaces for external tools should be implemented in future. Content checking, if really nessesary, should be left over to the \NAME{MDA}, to deal with it in local delivery.
7f4d97584a6f wrote about work to do
meillo@marmaro.de
parents: 185
diff changeset
267
7f4d97584a6f wrote about work to do
meillo@marmaro.de
parents: 185
diff changeset
268 Archiving again is prefered to be implemented soon. It does not require much work, but enables all kinds of statistical analysis. Also it is a requirement for companies to archive their mail communication.
7f4d97584a6f wrote about work to do
meillo@marmaro.de
parents: 185
diff changeset
269
200
2e006e8f5250 rewrote much and wrote result and more (ch04)
meillo@marmaro.de
parents: 197
diff changeset
270 Non-functional requirements need improvement too.
196
b80438534651 rewrites and new content about non-functional requirements
meillo@marmaro.de
parents: 191
diff changeset
271
b80438534651 rewrites and new content about non-functional requirements
meillo@marmaro.de
parents: 191
diff changeset
272 \masqmail's security is bad and limits it thus to a field of operation that shrinks. Security becomes more important and networking and interaction increases. Save and trusted environment become rare. Improving security is an important thing to do in future.
b80438534651 rewrites and new content about non-functional requirements
meillo@marmaro.de
parents: 191
diff changeset
273
b80438534651 rewrites and new content about non-functional requirements
meillo@marmaro.de
parents: 191
diff changeset
274 Reliability is also to improve. It is a key quality property for an \MTA, and not good enough in \masqmail. Also is the program lacking robustness. Checking the environment and reporting bad characteristics is wanted. Especially improving robustness inrelation to the queue is favorable; applying ideas of \name{crash-only software}\cite{candea03} will be a good step.
b80438534651 rewrites and new content about non-functional requirements
meillo@marmaro.de
parents: 191
diff changeset
275
b80438534651 rewrites and new content about non-functional requirements
meillo@marmaro.de
parents: 191
diff changeset
276 Extendability, maintainability, and testability do all lack from the monolithic architecture and are nearly impossible to improve without changing the programs structure. These properties can hardly be retrofitted into software. But extendability might become important in the future, and the other two make all further work on the software easier.
b80438534651 rewrites and new content about non-functional requirements
meillo@marmaro.de
parents: 191
diff changeset
277
b80438534651 rewrites and new content about non-functional requirements
meillo@marmaro.de
parents: 191
diff changeset
278 Performance is a nice-to-have property, but as performance improvements are in contrast to many other quality poperties (reliability, maintainability, usability, capability \cite[page~5]{kan03}), jeopardizing these to gain some more performance should not be done. \person{Kernighan} and \person{Pike} state clear: ``[T]he first principle of optimization is \emph{don't}.''\cite[page~165]{kernighan99}. \masqmail\ is not a program to be used on large servers, but on small devices. Thus important for \masqmail\ is focusing on energy and heat, maybe also system resources, not on performance.
b80438534651 rewrites and new content about non-functional requirements
meillo@marmaro.de
parents: 191
diff changeset
279
b80438534651 rewrites and new content about non-functional requirements
meillo@marmaro.de
parents: 191
diff changeset
280 Focusing on being portable amoung the various flavors of \unix\ systems seems to be okay, because these systems are the ones \MTA{}s run on usually. Problems with non-\unix platforms are primary expected to come from file systems lacking required features. But no special care should be taken here.
b80438534651 rewrites and new content about non-functional requirements
meillo@marmaro.de
parents: 191
diff changeset
281
b80438534651 rewrites and new content about non-functional requirements
meillo@marmaro.de
parents: 191
diff changeset
282 Configuration could be eased more, by providing configuration generators to be able to run \masqmail\ right ``out of the box'' with only running one of several configuration scripts for common setups. This would make \masqmail\ better usable by people not technical educated.
185
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
283
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
284
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
285
200
2e006e8f5250 rewrote much and wrote result and more (ch04)
meillo@marmaro.de
parents: 197
diff changeset
286 \subsubsection*{The need for structural changes}
2e006e8f5250 rewrote much and wrote result and more (ch04)
meillo@marmaro.de
parents: 197
diff changeset
287
2e006e8f5250 rewrote much and wrote result and more (ch04)
meillo@marmaro.de
parents: 197
diff changeset
288 Adding authentication and encryption support, for example, is limited to a narrow region in the code. Such features are addable to the current code base without much problem. In contrast does adding support for new protocols or mail processing interfaces to external programs require a lot of effort. Changes in many parts of the source code are required. It is a bad idea to implement large retro-fitted features into software that is critical in security and reliability, like \masqmail. Worse if these features need changes in the program's structure, like adding mail scanning interfaces would do.
2e006e8f5250 rewrote much and wrote result and more (ch04)
meillo@marmaro.de
parents: 197
diff changeset
289
2e006e8f5250 rewrote much and wrote result and more (ch04)
meillo@marmaro.de
parents: 197
diff changeset
290 If such features are needed, it is best do redesign the program's structure and rebuild it. A program's structure is primary its architecture. Which is probably the most influencing design decision, and has the greatest impact on the program's future capabilities. The architecture defines what the program can do, and how it can be used. If the architecture does not fit the requirements, develpement reached a dead end \dots\ further work on this basis will make everything worse. The only good solution is to change the architecture, which, sadley but most likely, means a redesign from scratch.
2e006e8f5250 rewrote much and wrote result and more (ch04)
meillo@marmaro.de
parents: 197
diff changeset
291
2e006e8f5250 rewrote much and wrote result and more (ch04)
meillo@marmaro.de
parents: 197
diff changeset
292 Quality properties, like security and reliability, as well as extendability and maintainablity, can hardly be added afterwards---if at all. Only structural changes will improve them. Hence, if security, reliability, extendability (to add support for future mail transfer protocols), or maintainability shall be improved, a redesign of \masqmail\ is the only sane way to go.
2e006e8f5250 rewrote much and wrote result and more (ch04)
meillo@marmaro.de
parents: 197
diff changeset
293
2e006e8f5250 rewrote much and wrote result and more (ch04)
meillo@marmaro.de
parents: 197
diff changeset
294 %\person{Hafiz} adds: ``The major idea is that security cannot be retrofitted into an architecture.''\cite[page 64]{hafiz05}
185
1611abd5443b restructuring and new content (a large commit)
meillo@marmaro.de
parents: 182
diff changeset
295
196
b80438534651 rewrites and new content about non-functional requirements
meillo@marmaro.de
parents: 191
diff changeset
296
b80438534651 rewrites and new content about non-functional requirements
meillo@marmaro.de
parents: 191
diff changeset
297
146
2c4673d983c3 wrote about requirements (related to directions to go)
meillo@marmaro.de
parents: 142
diff changeset
298
200
2e006e8f5250 rewrote much and wrote result and more (ch04)
meillo@marmaro.de
parents: 197
diff changeset
299 \section{Discussion on MTA architecture}
161
18b7b517e2dd wrote about discussion on architecture
meillo@marmaro.de
parents: 155
diff changeset
300
188
afb72fb64962 worked on discussion on architecture
meillo@marmaro.de
parents: 187
diff changeset
301 \masqmail's current artitecture is monolitic like \sendmail's and \exim's. But more than the other two, is it one block of interweaved code. \sendmail\ provides now, with its \name{milter} interface, standardized connection channels to external modules. \exim\ has a highly structured code with many internal interfaces, a good example is the one for authentication ``modules''. %fixme: add ref
afb72fb64962 worked on discussion on architecture
meillo@marmaro.de
parents: 187
diff changeset
302 \masqmail\ has none of them; it is what \sendmail\ was in the beginning: a single large block.
161
18b7b517e2dd wrote about discussion on architecture
meillo@marmaro.de
parents: 155
diff changeset
303
200
2e006e8f5250 rewrote much and wrote result and more (ch04)
meillo@marmaro.de
parents: 197
diff changeset
304 Figure \ref{fig:masqmail-arch} is a call graph generated from \masqmail's source code. It gives a impression of how interweaved the internal structure is.
161
18b7b517e2dd wrote about discussion on architecture
meillo@marmaro.de
parents: 155
diff changeset
305
18b7b517e2dd wrote about discussion on architecture
meillo@marmaro.de
parents: 155
diff changeset
306 \begin{figure}
18b7b517e2dd wrote about discussion on architecture
meillo@marmaro.de
parents: 155
diff changeset
307 \begin{center}
18b7b517e2dd wrote about discussion on architecture
meillo@marmaro.de
parents: 155
diff changeset
308 \input{input/masqmail-arch.tex}
18b7b517e2dd wrote about discussion on architecture
meillo@marmaro.de
parents: 155
diff changeset
309 \end{center}
200
2e006e8f5250 rewrote much and wrote result and more (ch04)
meillo@marmaro.de
parents: 197
diff changeset
310 \caption{Call graph of \masqmail\ to show its internal structure}
161
18b7b517e2dd wrote about discussion on architecture
meillo@marmaro.de
parents: 155
diff changeset
311 \label{fig:masqmail-arch}
18b7b517e2dd wrote about discussion on architecture
meillo@marmaro.de
parents: 155
diff changeset
312 \end{figure}
18b7b517e2dd wrote about discussion on architecture
meillo@marmaro.de
parents: 155
diff changeset
313
200
2e006e8f5250 rewrote much and wrote result and more (ch04)
meillo@marmaro.de
parents: 197
diff changeset
314 \sendmail\ improved its old architecture, for example by adding the milter interface, to add further functionality by invocing external programs. \exim\ was designed, and is carefully maintained, with a modular-like code structure in mind. \qmail\ started from scratch with a ``security-first'' approach, \postfix\ improved on it, and \name{sendmail X}/\name{MeTA1} tries to adopt the best of \qmail\ and \postfix, to completely replace the old \sendmail\ architecture. \person{Hafiz} \cite{hafiz05}. describes this evolution of \mta\ architecture very well.
163
5681a18270b5 new content about architecture; some restructuring
meillo@marmaro.de
parents: 161
diff changeset
315
188
afb72fb64962 worked on discussion on architecture
meillo@marmaro.de
parents: 187
diff changeset
316 Every one of the popular \MTA{}s is more modular, or became more modular over time, than \masqmail\ is. Modern requirements like spam protection and future requirements like---probably---the use of new mail transport protocols demand modular designs for keeping the software simple. Simplicity is a key property for security. ``[T]he essence of security engenieering is to build systems that are as simple as possible.''\cite[page 45]{graff03}
161
18b7b517e2dd wrote about discussion on architecture
meillo@marmaro.de
parents: 155
diff changeset
317
188
afb72fb64962 worked on discussion on architecture
meillo@marmaro.de
parents: 187
diff changeset
318 \person{Hafiz} agrees: ``The goal of making software secure can be better achieved by making the design simple and easier to understand and verify.''\cite[page 64]{hafiz05} He identifies the security of \qmail\ to come from it's \name{compartmentalization}, which goes hand in hand with modularity:
163
5681a18270b5 new content about architecture; some restructuring
meillo@marmaro.de
parents: 161
diff changeset
319 \begin{quote}
188
afb72fb64962 worked on discussion on architecture
meillo@marmaro.de
parents: 187
diff changeset
320 A perfect example is the contrast between the feature envy early \sendmail\ architecture implemented as one process and the simple, modular architecture of \qmail. The security of \qmail\ comes from its compartmentalized simple processes that perform one task only and are therefore testable for security. \cite[page 64]{hafiz05}
163
5681a18270b5 new content about architecture; some restructuring
meillo@marmaro.de
parents: 161
diff changeset
321 \end{quote}
200
2e006e8f5250 rewrote much and wrote result and more (ch04)
meillo@marmaro.de
parents: 197
diff changeset
322 As well does \person{Dent} for \postfix: ``The modular architecture of Postfix forms the basis for much of its security.'' \cite[page 7]{dent04}
2e006e8f5250 rewrote much and wrote result and more (ch04)
meillo@marmaro.de
parents: 197
diff changeset
323
2e006e8f5250 rewrote much and wrote result and more (ch04)
meillo@marmaro.de
parents: 197
diff changeset
324 Modularity is also needed to satisfy modern \MTA\ requirements, in providing a clear interface to add functionality without increasing the overall complexity much.
163
5681a18270b5 new content about architecture; some restructuring
meillo@marmaro.de
parents: 161
diff changeset
325
188
afb72fb64962 worked on discussion on architecture
meillo@marmaro.de
parents: 187
diff changeset
326 Security comes from good design, as \person{Graff} and \person{van Wyk} explain:
163
5681a18270b5 new content about architecture; some restructuring
meillo@marmaro.de
parents: 161
diff changeset
327 \begin{quote}
5681a18270b5 new content about architecture; some restructuring
meillo@marmaro.de
parents: 161
diff changeset
328 Good design is the sword and shield of the security-conscious developer. Sound design defends your application from subversion or misuse, protecting your network and the information on it from internal and external attacks alike. It also provides a safe foundation for future extensions and maintainance of the software.
5681a18270b5 new content about architecture; some restructuring
meillo@marmaro.de
parents: 161
diff changeset
329 %
5681a18270b5 new content about architecture; some restructuring
meillo@marmaro.de
parents: 161
diff changeset
330 %Bad design makes life easier for attackers and harder for the good guys, especially if it contributes to a false sends of security while obscuring pertinent failings.
5681a18270b5 new content about architecture; some restructuring
meillo@marmaro.de
parents: 161
diff changeset
331 \cite[page 55]{graff03}
5681a18270b5 new content about architecture; some restructuring
meillo@marmaro.de
parents: 161
diff changeset
332 \end{quote}
5681a18270b5 new content about architecture; some restructuring
meillo@marmaro.de
parents: 161
diff changeset
333
188
afb72fb64962 worked on discussion on architecture
meillo@marmaro.de
parents: 187
diff changeset
334
200
2e006e8f5250 rewrote much and wrote result and more (ch04)
meillo@marmaro.de
parents: 197
diff changeset
335 All this leads to the wish of a rewrite of \masqmail, using a modern, modular architecture, \emph{if} further features need to be added---ones that require changes in \masqmail's structure. But a rewrite is also needed, if \masqmail\ should become a modern \MTA, with good quality properties.
188
afb72fb64962 worked on discussion on architecture
meillo@marmaro.de
parents: 187
diff changeset
336
200
2e006e8f5250 rewrote much and wrote result and more (ch04)
meillo@marmaro.de
parents: 197
diff changeset
337 But redesigning and rewriting a software from scratch is hard. It takes time to design a new architecture, which must prove it is secure and reliable. As well is much time and work needed to implement the design, test it, fix bugs, and so on. Thus the gain of a new design must overweight the effort needed.
163
5681a18270b5 new content about architecture; some restructuring
meillo@marmaro.de
parents: 161
diff changeset
338
188
afb72fb64962 worked on discussion on architecture
meillo@marmaro.de
parents: 187
diff changeset
339 \person{Wheeler}'s program \name{sloccount} calculates following estimations for \masqmail's code base as of version 0.2.21 (excluding library code):
afb72fb64962 worked on discussion on architecture
meillo@marmaro.de
parents: 187
diff changeset
340 {\small
afb72fb64962 worked on discussion on architecture
meillo@marmaro.de
parents: 187
diff changeset
341 \begin{verbatim}
afb72fb64962 worked on discussion on architecture
meillo@marmaro.de
parents: 187
diff changeset
342 Total Physical Source Lines of Code (SLOC) = 9,041
afb72fb64962 worked on discussion on architecture
meillo@marmaro.de
parents: 187
diff changeset
343 Development Effort Estimate, Person-Years (Person-Months) = 2.02 (24.22)
afb72fb64962 worked on discussion on architecture
meillo@marmaro.de
parents: 187
diff changeset
344 (Basic COCOMO model, Person-Months = 2.4 * (KSLOC**1.05))
afb72fb64962 worked on discussion on architecture
meillo@marmaro.de
parents: 187
diff changeset
345 Schedule Estimate, Years (Months) = 0.70 (8.39)
afb72fb64962 worked on discussion on architecture
meillo@marmaro.de
parents: 187
diff changeset
346 (Basic COCOMO model, Months = 2.5 * (person-months**0.38))
afb72fb64962 worked on discussion on architecture
meillo@marmaro.de
parents: 187
diff changeset
347 Estimated Average Number of Developers (Effort/Schedule) = 2.89
afb72fb64962 worked on discussion on architecture
meillo@marmaro.de
parents: 187
diff changeset
348 Total Estimated Cost to Develop = $ 272,690
afb72fb64962 worked on discussion on architecture
meillo@marmaro.de
parents: 187
diff changeset
349 (average salary = $56,286/year, overhead = 2.40).
afb72fb64962 worked on discussion on architecture
meillo@marmaro.de
parents: 187
diff changeset
350 SLOCCount, Copyright (C) 2001-2004 David A. Wheeler
afb72fb64962 worked on discussion on architecture
meillo@marmaro.de
parents: 187
diff changeset
351 \end{verbatim}
afb72fb64962 worked on discussion on architecture
meillo@marmaro.de
parents: 187
diff changeset
352 }
200
2e006e8f5250 rewrote much and wrote result and more (ch04)
meillo@marmaro.de
parents: 197
diff changeset
353 The development cost is not relevant for a \freesw\ project of volunteer developers, but the development time is. About 24 man-months are estimated. The current code base was written almost completely by Oliver \person{Kurth} within four years, in his spare time. This means he needed around twice as much time.
188
afb72fb64962 worked on discussion on architecture
meillo@marmaro.de
parents: 187
diff changeset
354
afb72fb64962 worked on discussion on architecture
meillo@marmaro.de
parents: 187
diff changeset
355 Given the asumptions that an equal amount of code is to be produced, a third of existing code can be reused plus concepts and experience, and development speed is like \person{Kurth}'s. Then it would take about two years to have a redesigned new \masqmail\ with the same features. Less time could be needed if a simpler architecture allows faster develpement, better testing, and less bugs.
afb72fb64962 worked on discussion on architecture
meillo@marmaro.de
parents: 187
diff changeset
356
161
18b7b517e2dd wrote about discussion on architecture
meillo@marmaro.de
parents: 155
diff changeset
357
18b7b517e2dd wrote about discussion on architecture
meillo@marmaro.de
parents: 155
diff changeset
358
18b7b517e2dd wrote about discussion on architecture
meillo@marmaro.de
parents: 155
diff changeset
359
200
2e006e8f5250 rewrote much and wrote result and more (ch04)
meillo@marmaro.de
parents: 197
diff changeset
360
177
7781ad0811f7 new sections, moved content, and more
meillo@marmaro.de
parents: 173
diff changeset
361
7781ad0811f7 new sections, moved content, and more
meillo@marmaro.de
parents: 173
diff changeset
362
7781ad0811f7 new sections, moved content, and more
meillo@marmaro.de
parents: 173
diff changeset
363
7781ad0811f7 new sections, moved content, and more
meillo@marmaro.de
parents: 173
diff changeset
364
196
b80438534651 rewrites and new content about non-functional requirements
meillo@marmaro.de
parents: 191
diff changeset
365
b80438534651 rewrites and new content about non-functional requirements
meillo@marmaro.de
parents: 191
diff changeset
366
b80438534651 rewrites and new content about non-functional requirements
meillo@marmaro.de
parents: 191
diff changeset
367
b80438534651 rewrites and new content about non-functional requirements
meillo@marmaro.de
parents: 191
diff changeset
368
b80438534651 rewrites and new content about non-functional requirements
meillo@marmaro.de
parents: 191
diff changeset
369
b80438534651 rewrites and new content about non-functional requirements
meillo@marmaro.de
parents: 191
diff changeset
370 \section{Result}
b80438534651 rewrites and new content about non-functional requirements
meillo@marmaro.de
parents: 191
diff changeset
371
200
2e006e8f5250 rewrote much and wrote result and more (ch04)
meillo@marmaro.de
parents: 197
diff changeset
372 The most needed features, authentication and encryption, can be added to the current code base with changes only some areas. These changes should be made soon. Archiving of mail is another feature to add then. More complete logging coverage, reporting of unsafe environment, and fixing security flaws are quality improvements to do. All this work should be done on basis of the current code.
196
b80438534651 rewrites and new content about non-functional requirements
meillo@marmaro.de
parents: 191
diff changeset
373
200
2e006e8f5250 rewrote much and wrote result and more (ch04)
meillo@marmaro.de
parents: 197
diff changeset
374 The implementation of authentication and encryption are covered in the next chapter within this thesis.
196
b80438534651 rewrites and new content about non-functional requirements
meillo@marmaro.de
parents: 191
diff changeset
375
200
2e006e8f5250 rewrote much and wrote result and more (ch04)
meillo@marmaro.de
parents: 197
diff changeset
376 All other work depends on how \masqmail's future plans look like.
196
b80438534651 rewrites and new content about non-functional requirements
meillo@marmaro.de
parents: 191
diff changeset
377
200
2e006e8f5250 rewrote much and wrote result and more (ch04)
meillo@marmaro.de
parents: 197
diff changeset
378 Now, how could \masqmail\ be like, in five years, for instance? Two ways of further development come to mind.
196
b80438534651 rewrites and new content about non-functional requirements
meillo@marmaro.de
parents: 191
diff changeset
379
200
2e006e8f5250 rewrote much and wrote result and more (ch04)
meillo@marmaro.de
parents: 197
diff changeset
380 First, stick to the old architecture and try to add features as possible. This approach needs less effort to be spent, because a working code is alreads present. Further development is only adding small increments to a exiting code base. But the further development goes, the larger is the work needed to add more functionality, and the more bugs will appear, caused by the increasing complexity. Quality of the software will decrease, because lacking of clear internal structure encourages further work to be quick fixes instead of requiring good solutions by design.
196
b80438534651 rewrites and new content about non-functional requirements
meillo@marmaro.de
parents: 191
diff changeset
381
200
2e006e8f5250 rewrote much and wrote result and more (ch04)
meillo@marmaro.de
parents: 197
diff changeset
382 Second, designing \masqmail\ from scratch and rebuilding it. A lot of time and work is required to do so. Additionally, a new design from scratch introduces new risks: Is the design really better? Was thought of everything? Will there come problems not seeable now? Starting from scratch also means a step back. Against these disadvantages stands the gain of the new design: Further development will be easier and probably faster, overall quality will be better and easier to keep up, and dead ends for further development can be avoided.
196
b80438534651 rewrites and new content about non-functional requirements
meillo@marmaro.de
parents: 191
diff changeset
383
200
2e006e8f5250 rewrote much and wrote result and more (ch04)
meillo@marmaro.de
parents: 197
diff changeset
384 Finally, the decision for one of the ways depends on the question whether \masqmail\ should remain what it is, then the first option seems to be the right one to choose. Or \masqmail\ should become a modern \mta\ which is able to expand to include new functionality, then the second option is to choose.
196
b80438534651 rewrites and new content about non-functional requirements
meillo@marmaro.de
parents: 191
diff changeset
385
200
2e006e8f5250 rewrote much and wrote result and more (ch04)
meillo@marmaro.de
parents: 197
diff changeset
386 Security, extendability, and the other quality properties appear to have crucial importance in this decision. If they are important for future versions of \masqmail, a new design is a must.
196
b80438534651 rewrites and new content about non-functional requirements
meillo@marmaro.de
parents: 191
diff changeset
387
200
2e006e8f5250 rewrote much and wrote result and more (ch04)
meillo@marmaro.de
parents: 197
diff changeset
388 \person{Graff} and \person{van Wyk} describe the situation best: ``[I]n today's world, your software is likely to have to operate in a very hostile security environment.'' \cite{graff05} An old-fashioned \mta\ depends, for sure, on a dieing branch, called \name{trusted envrironments}. And nothing other than a fresh and better design will help to survive.
196
b80438534651 rewrites and new content about non-functional requirements
meillo@marmaro.de
parents: 191
diff changeset
389
200
2e006e8f5250 rewrote much and wrote result and more (ch04)
meillo@marmaro.de
parents: 197
diff changeset
390 The suggested further development on \masqmail\ is: First add the most needed features, being authentication and encryption, to the current code base. This is the short time goal. Second---and this is the long time goal---design a new architecture that satisfies the requirements identified, especially the quality requirements. The implementation of this design shall then, after being usable and throughoutly tested, superseed the old \masqmail.
196
b80438534651 rewrites and new content about non-functional requirements
meillo@marmaro.de
parents: 191
diff changeset
391
200
2e006e8f5250 rewrote much and wrote result and more (ch04)
meillo@marmaro.de
parents: 197
diff changeset
392 This action is similar to the change from \sendmail\ to \name{sendmail X}/\name{MeTA1}, except the \sendmail\ change was too late. The plan is to first do the most needed stuff on the old design to make it still usable; then design a new version from scratch, for the future.
196
b80438534651 rewrites and new content about non-functional requirements
meillo@marmaro.de
parents: 191
diff changeset
393
200
2e006e8f5250 rewrote much and wrote result and more (ch04)
meillo@marmaro.de
parents: 197
diff changeset
394 The following chapter \ref{chap:improvements} is about the work on the current code base, to reach the short time goals. The chapter afterwards, numbered \ref{chap:new-design}, then introduces a new, modern design for future versions of \masqmail.
196
b80438534651 rewrites and new content about non-functional requirements
meillo@marmaro.de
parents: 191
diff changeset
395