docs/masqmail-paper

view masqmail-paper.tex @ 0:2950295e9c89

the source is already finished
author meillo@marmaro.de
date Wed, 11 Mar 2009 17:11:17 +0100
parents
children
line source
1 % masqmail: a paper for the chaosseminar talk
2 %
3 % markus schnalke <meillo@marmaro.de>
4 %
5 % since 2009-03-01
7 \documentclass[a4paper,twocolumn]{article}
9 \usepackage{paper}
11 \usepackage{url}
12 \usepackage{graphicx}
13 \usepackage{verbatim}
16 \begin{document}
18 \date{}
19 \title{\textbf{\huge masqmail\\\large a mail transfer agent for workstations and small networks}}
20 \author{markus schnalke\\meillo@marmaro.de}
21 \maketitle
23 \copyright{
24 Get this document from \url{http://marmaro.de/docs}\,.
25 }
28 \abstract{
29 This paper describes a plan to revive masqmail. It is a short overview of my diploma thesis \cite{masqmail-diploma}.
30 }
34 \section{Introduction}
36 masqmail \cite{masqmail-homepage} is a small Mail Transfer Agent (MTA). It focuses on workstations and small networks that have non-permanent online connections. In these cases it is a small replacement for sendmail, exim, qmail, and postfix.
38 masqmail was written by Oliver Kurth between 1999 and 2003. Since then it was not developed further. In the meanwhile it is not even maintained and its original website is offline. Hence bugs have not been fixed as they appeared and the program did not evolve as emailing changed.
40 Nevertheless, the program has a remaining user base, mostly because no other MTA covers setups with non-permanent online connections over multiple providers equally well.
42 This discrepancy should get removed.
45 \section{Market analysis}
47 Before putting effort into some old software, it is important to know if the software is still important and if it will probably be important in future. If a software has no more relevance, effort is better put into something else. Fortunately, this is not the case for masqmail.
49 Email will likely stay important during the next decade. And if email itself becomes obsolete, it is pretty sure that a similar technology will supersede it. Thus MTAs, or programs pretty similar to them, will be still of need in the next years.
51 masqmail's kind of MTA was important some years ago when dial-up online connections were common. When they became rare, masqmail's decline began. The future will likely show new fields of operation for masqmail. Home servers become popular, thus small MTAs are needed again. Notebooks are frequently offline and they often move between different networks; they are perfect hosts for masqmail.
55 \section{Mail transfer agents}
57 masqmail's type of MTA can be called ``real'' MTAs---not simple forwarders nor groupware. The common substitutes for masqmail are: sendmail, exim, qmail, and postfix. These four programs are among the most popular MTAs and share between one third and half of the market.
59 sendmail and exim are both monolithic (like masqmail). They are about ten times larger than masqmail and thus no good substitutes.
61 qmail and postfix have a modular architecture which is seen to be more secure. postfix is as large as sendmail and tries to be full-featured and compatible to it. qmail is quite small, but it is outdated because its author stopped development and the community provides (for historical reasons) only patches.
63 Anyway, they all focus on permanent online connections.
67 \section{masqmail's present and future}
69 To make masqmail ready for the future, first the requirements need to be defined. It is common to split them into functional and non-functional ones. Functional requirements are for example support for special protocols, encryption, or authentication. Non-functional requirements include security, robustness, and extendability.
71 The requirements are rated by their importance and by the pending work to achieve them. Large and important work tasks have a higher focus and should probably get addressed first. Low importance or few pending work lead to low focus.
73 Ordering the requirements by their focus results in a list of work tasks. The six topmost tasks are: encryption, authentication, security, reliability, spam handling, and extendability.
75 The next decision is about how to do this work. Three approaches are possible: 1) improve the existing code, 2) add wrappers and interposition filters, or 3) redesign and recreate the program. The first two can be combined well.
77 The pros and cons for each approach are manifold; they can not get evaluated sufficiently here. Only one view shall be given: architecture.
79 A program's architecture is probably its most influencing attribute. It determines many of the quality properties and influences the way further development goes. masqmail's architecture is monolithic and very interweaved. Figure \ref{fig:callgraph} shows a call graph which depicts masqmail's internal structure.
81 \begin{figure}[htb]
82 \vspace*{2ex}
83 \begin{center}
84 \includegraphics[width=0.8\columnwidth]{callgraph.eps}
85 \end{center}
86 \vspace*{-4ex}
87 \caption{Call graph of masqmail}
88 \label{fig:callgraph}
89 \end{figure}
91 There is no single way for further development that satisfies all wishes. Thus a double-strategy is recommended. The short-term goal is to keep masqmail usable by solving the most important problems in the existing code. The long-term goal is to make masqmail ready for the future. To create a new and modern masqmail, a redesign is mandatory. The new version shall then supersede the current one.
96 \section{Improvement plans}
99 \subsection{Based on current code}
101 The first three work tasks (encryption, authentication, and security) can be added to current masqmail without much problems. But other work tasks require much effort this way, so they are delayed to the new design.
104 \subsection{A new design}
106 The new masqmail needs to be modular, for sure. Its core should be independent from the incoming and outgoing channels to allow easy adding of new protocol handlers, which will likely become important in future. Invoking external mail scanning software is important nowadays; this needs to be respected.
108 The proposed new design is shown in figure \ref{fig:new-arch}.
110 \begin{figure}[htb]
111 \includegraphics[width=\columnwidth]{masqmail-arch-new.eps}
112 \caption{A new architecture for masqmail}
113 \label{fig:new-arch}
114 \end{figure}
119 \section{Help wanted!}
121 The here described plan to revive masqmail is only a first step. Now, volunteer developers are required to make it become reality. Programming needs to be done, documentation is important, also ``marketing'', and even simply using masqmail.
123 I much welcome your help, advice, and comments.\footnote{btw: I'm not looking for work-slaves, but for partners.}
125 \quad
127 \emph{Help masqmail!}
134 {\footnotesize
135 \bibliographystyle{plain}
136 \bibliography{references}
137 }
141 \end{document}
142 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%