docs/diploma
diff thesis/tex/4-MasqmailsFuture.tex @ 287:6cf649e62d42
minor renames and commenting
author | meillo@marmaro.de |
---|---|
date | Fri, 16 Jan 2009 10:35:48 +0100 |
parents | 391793afb4cb |
children | 8341092a7554 |
line diff
1.1 --- a/thesis/tex/4-MasqmailsFuture.tex Fri Jan 16 09:46:05 2009 +0100 1.2 +++ b/thesis/tex/4-MasqmailsFuture.tex Fri Jan 16 10:35:48 2009 +0100 1.3 @@ -65,7 +65,7 @@ 1.4 1.5 1.6 \paragraph{\RF2: Mail queuing} 1.7 -Mail queuing removes the need to deliver instantly as a message is received. The queue provides fail-safe storage of mails until they are delivered. Mail queues are probably used in all \mta{}s, excluding the simple forwarders. The mail queue is essential for \masqmail, as \masqmail\ is used for non-permanent online connections. This means, mail must be queued until a online connection is available to send the message. This may be after a reboot. Hence the mail queue must provide persistence. 1.8 +Mail queuing removes the need to deliver instantly as a message is received. The queue provides fail-safe storage of mails until they are delivered. Mail queues are probably used in all \mta{}s, even in some simple forwarders. The mail queue is essential for \masqmail, as \masqmail\ is used for non-permanent online connections. This means, mail must be queued until a online connection is available to send the message. This may be after a reboot. Hence the mail queue must provide persistence. 1.9 1.10 The mail queue and the module(s) 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 an already sent mail to be sent again. 1.11 1.12 @@ -86,7 +86,7 @@ 1.13 1.14 1.15 1.16 -\paragraph{\RF5: Selecting a route} 1.17 +\paragraph{\RF5: Route management} 1.18 One key feature of \masqmail\ is its ability to send mail out over different routes. The online state defines the active route to be used. A specific route may not be suited for all messages, thus these messages are hold back until a suiting route is active. For more information on this concept see section \ref{sec:masqmail-routes}. 1.19 1.20 1.21 @@ -145,12 +145,12 @@ 1.22 1.23 1.24 1.25 -\paragraph{\RF9: Virus checking} 1.26 +\paragraph{\RF9: Malware handling} 1.27 Related to spam is malicious 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's 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 \MTA\ responsible for the recipient seems to be at a good position to do this work, so it is often done there. 1.28 1.29 In any way should malware checking be performed by external programs that may be invoked by the \mta. But using mail deliver agents, like \name{procmail}, are better suited locations to invoke content scanners. 1.30 1.31 -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 nice to have, though. 1.32 +A popular email filter framework is \name{amavis} which integrates various spam and malware 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 nice to have, though. 1.33 1.34 1.35 1.36 @@ -176,6 +176,7 @@ 1.37 \paragraph{\RG1: Security} 1.38 \MTA{}s are critical points for computer security, as they are accessible from external networks. They must be secured with high effort. Properties like the need for high privilege level, from outside influenced work load, work on unsafe data, and demand for reliability, increase the need for security. This is best done by modularization, also called \name{compartementalization}, as described in section \ref{sec:discussion-mta-arch}. \masqmail\ needs to be secure enough for its target field of operation. \masqmail\ is targeted to workstations and private networks, with explicit warning to not use it on permanent online hosts \citeweb{masqmail:homepage2}. But as non-permanent online connections and trustable environments become rare, \masqmail's security should be so good, that it is usable with permanent online connections and in unsafe environments. For example should mails with bad content not break \masqmail. 1.39 1.40 +<< conditional compilation >> 1.41 1.42 1.43 \paragraph{\RG2: Reliability} 1.44 @@ -185,6 +186,9 @@ 1.45 1.46 Hence, mail transfer between two processes must use the strategy: The client reissues if it receives no acknowledgement; the server first handles the message and then sends the acknowledgement. This strategy only leads to duplicates if a crash happens in the time between the message is fully transfered to the server and the acknowlegement is received by the client. No mail will get lost. 1.47 1.48 +<< DB as queue >> 1.49 + 1.50 +<< exactly one copy of a message at one time >> 1.51 1.52 \paragraph{\RG3: Robustness} 1.53 Being robust means handling errors properly. Small errors may get corrected, large errors may kill a process. Killed processes should restarted automatically 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 a friendly environment itself. \person{Raymond}'s \name{Rule of Robustness} and his \name{Rule of Repair} are good descriptions \cite[pages~18--21]{raymond03}. 1.54 @@ -197,6 +201,8 @@ 1.55 \paragraph{\RG5: Maintainability} 1.56 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 will ease work afterwards. 1.57 1.58 +<< conditional compilation >> 1.59 + 1.60 1.61 \paragraph{\RG6: Testability} 1.62 Good testability make maintenance easier too, because functionality is directly verifiable when changes are done, thus removing uncertainty. Modularized software makes testing easier, because parts can be tested without external influences. \person{Spinellis} sees testability as a sub-quality of maintainability. 1.63 @@ -238,7 +244,7 @@ 1.64 %\includegraphics[scale=0.75]{img/callgraph.eps} 1.65 \includegraphics[scale=0.75]{img/masqmail-3-omitlog5.eps} 1.66 \end{center} 1.67 - \caption{Call graph of \masqmail\ to show its internal structure} 1.68 + \caption{Internal structure of \masqmail, showed by a call graph} 1.69 \label{fig:masqmail-arch} 1.70 \end{figure} 1.71 1.72 @@ -272,16 +278,20 @@ 1.73 \paragraph{\RF1: In/out channels} 1.74 \masqmail's incoming and outgoing channels are the ones required for an \MTA{}s at the moment. They are depicted in figure \ref{fig:masqmail-in-out} on page \pageref{fig:masqmail-in-out}. This is all what is currently needed. But new protocols and mailing concepts are likely to appear (see section \ref{sec:electronic-mail}). \masqmail\ has no support for adding further protocols. Thus modifications at many places in the source are needed to add them though. Today, support for further protocols is not needed, so \masqmail\ is regarded to fulfill \RF1, but the probable future need should be kept in mind. 1.75 1.76 +<< smtp submission >> 1.77 + 1.78 \paragraph{\RF2: Queueing} 1.79 One single mail queue is used in \masqmail; it satisfies all current requirements. 1.80 1.81 +<< persistence: DB >> 1.82 + 1.83 \paragraph{\RF3: Header sanitizing} 1.84 The envelope and mail headers are generated when the mail is put into the queue. The requirements are fulfilled. 1.85 1.86 \paragraph{\RF4: Aliasing} 1.87 Aliasing is done on delivery. All common kinds of aliases in the global aliases file are supported. \name{.forward} aliasing is not, but this is less common and seldom used. 1.88 1.89 -\paragraph{\RF5: Select route} 1.90 +\paragraph{\RF5: Route management} 1.91 Setting of the route to use is done on delivery. Headers can get rewritten a second time then. This part does provide all the functionality required. 1.92 1.93 \paragraph{\RF6: Authentication} 1.94 @@ -306,6 +316,7 @@ 1.95 \masqmail's current security is bad. However, it seems acceptable for using \masqmail\ on workstations and private networks, if the environment is trustable and \masqmail\ is protected against remote attackers. In environments where untrusted components or persons have access to \masqmail, its security is too low. 1.96 Its author states it ``is not designed to'' such usage \citeweb{masqmail:homepage2}. This is a clear indicator for being careful. Issues like high memory consumption, low performance, and denial-of-service attacks---things not regarded by design---may cause serious problems. In any way, is a security report missing that confirms \masqmail's security level. 1.97 1.98 +<< conditional compilation >> 1.99 1.100 \paragraph{\RG2: Reliability} 1.101 Similar is its reliability not good enough. Situations where only one part of sent message was removed from the queue, and the other part remained as garbage, showed off \citeweb{debian:bug245882}. Problems with large mail and small bandwidth were also reported \citeweb{debian:bug216226}. Fortunately, lost email was no big problem yet, but \person{Kurth} warns: 1.102 @@ -316,6 +327,8 @@ 1.103 In summary: Current reliability needs to be improved. 1.104 %fixme: state machine 1.105 1.106 +<< persistence: db >> 1.107 + 1.108 \paragraph{\RG3: Robustness} 1.109 The logging behavior of \masqmail\ is good, although it does not cover all problem situations. 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. The origin of this problem, however, is \masqmail's trust in its environment. 1.110 1.111 @@ -325,8 +338,10 @@ 1.112 \paragraph{\RG5: Maintainability} 1.113 The maintainability of \masqmail\ is equivalent 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, like in average Free Software projects. 1.114 1.115 +<< conditional compilation >> 1.116 + 1.117 \paragraph{\RG6: Testability} 1.118 -The testability suffers from missing modularity. Testing program parts is hard to do. Nevertheless, it is done by compiling parts of the source to special test programs. 1.119 +The testability suffers from missing modularity. Testing program parts is hard to do. Nevertheless, it is done by compiling parts of the source to special test programs. %fixme: what are the names? what do they test? 1.120 1.121 \paragraph{\RG7: Performance} 1.122 The performance---efficiency---of \masqmail\ is good enough for its target field of operation, where this is a minor goal.