docs/diploma

diff thesis/tex/4-MasqmailsFuture.tex @ 149:ccf0de1ae337

new content and rework
author meillo@marmaro.de
date Tue, 16 Dec 2008 14:10:07 +0100
parents 2c4673d983c3
children 0b17f6e5edae
line diff
     1.1 --- a/thesis/tex/4-MasqmailsFuture.tex	Tue Dec 16 14:09:23 2008 +0100
     1.2 +++ b/thesis/tex/4-MasqmailsFuture.tex	Tue Dec 16 14:10:07 2008 +0100
     1.3 @@ -44,33 +44,23 @@
     1.4  
     1.5  
     1.6  \subsubsection*{Large message handling}
     1.7 -Trends in the market for electronic communication in general, wants consolidated communication, hence email will be used more and more to transfer voice and video messages, leading to large messages, putting load on \mta{}s.
     1.8 -
     1.9 -
    1.10 -\subsubsection*{Integrated communication}
    1.11 -Integration of asynchonous email with synchronous channels seems not be possible in an evolutionary way. As only a revolutionary change of the whole email concept could enable it, it is best to focus on it. A new designed technology will be supperior to a heavily patched and bent email technology.
    1.12 +Trends in the market for electronic communication go towards consolidated communication, hence email will be used more to transfer voice and video messages. This leads to larger messages. The store-and-forward transport of email is not good suited for large data. Thus new protocols, like \NAME{QMTP} (described in section \ref{}), may become popular.
    1.13  
    1.14  
    1.15  \subsubsection*{Ressource friendly software}
    1.16 -The merge of communication hardware and the move of email service from providers to homes, demands smaller and more resource-friendly \MTA{}s. 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 last years and they are expected to become more central. \masqmail\ is not a program to be used on large servers, but to be used on small devices. Thus focusing on energy and heat, not on performance, is the direction to go.
    1.17 +The merge of communication hardware and the move of email services from providers to homes, demands 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. \masqmail\ is not a program to be used on large servers, but to be used on small devices. Thus focusing on energy and heat, not on performance, is the direction to go.
    1.18  
    1.19  
    1.20  \subsubsection*{New mail transfer protocols}
    1.21 -But large data transfers are something to cover. The store-and-forward transport of email is not good suited for large data. Thus new protocols, like \NAME{QMTP} (described in section \ref{}), may become popular. \masqmail\ should be able to operate on them as it becomes neccesary.
    1.22 +Large messages demand more efficient transport through the net. As well is a final solution needed to defeat the spam problem. New mail transport protocols may be the only good solutions for both problems. They also can improve reliability, authentication, and verification issues. \masqmail\ should be able to support new protocols as they appear and are used.
    1.23  
    1.24 -As spam is a problem and the need for a final solution grows, \masqmail\ should be ready to support new protocols when they appear.
    1.25  
    1.26 -protocols like \NAME{SMTP} and \NAME{UUCP}, between which mail is transferred. \sendmail's initial purpose was moving mail between \NAME{UUCP}, \NAME{SMTP}, and \name{Berknet}.
    1.27 -
    1.28 -
    1.29 -\subsubsection*{Spam and malicious content handling}
    1.30 -Spam handling is a major threat to handle. According to the \NAME{SWOT} analysis, the goal is to reduce it to a bearable amount. Spam is a field where the the good guys tend to lose. Putting too much effort in spam handling will result in few gain. Real success will only be possible with new---better---protocols, abandonning the weak legacy technologies.
    1.31 -
    1.32 -Hence \masqmail\ should be able to provide state-of-the-art spam and virus protection, but not more. This is commonly and best done using external, specialized programs that are invoked.
    1.33 +\subsubsection*{Spam handling}
    1.34 +Spam is a major threat. According to the \NAME{SWOT} analysis, the goal is to reduce it to a bearable level. Spam fighting is a war are where the good guys tend to lose. Putting too much effort there will result in few gain. Real success will only be possible with new---better---protocols and abandonning the weak legacy technologies. Hence \masqmail\ should be able to provide state-of-the-art spam protection, but not more.
    1.35  
    1.36  
    1.37  \subsubsection*{Easy configuration}
    1.38 -Having \mta{}s on many home servers and clients, requires easy and standardized configuration. The common situations sould be to set with a single action from the user. Complex configuration should be possible, but easiest should be the most common form of configuration; this will be one of several standard setups.
    1.39 +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.
    1.40  
    1.41  
    1.42  
    1.43 @@ -85,11 +75,55 @@
    1.44  
    1.45  
    1.46  
    1.47 +\subsection{Access and Auth}
    1.48 +
    1.49 +easiest: restricting by static IP addresses (Access control via hosts.allow/hosts.deny)
    1.50 +if dynamic remote hosts need access: some auth is needed
    1.51 +- SASL
    1.52 +- POP/IMAP: pop-before-smtp, DRAC, WHOSON
    1.53 +- TLS (certificates)
    1.54 +
    1.55 +``None of these add-ons is an ideal solution. They require additional code compiled into your existing daemons that may then require special write accesss to system files. They also require additional work for busy system administrators. If you cannot use any of the nonauthenticating alternatives mentioned earlier, or your business requirements demand that all of thyour users' mail pass through your system no matter where they are on the Internet, SASL is probably the solution that offers the most reliable and scalable method to authenticate users.'' (Dent: Postfix, page 44, ch04)
    1.56 +
    1.57 +
    1.58 +
    1.59 +postfix: after-queue-content-filter (smtp communication)
    1.60 +exim: content-scan-feature
    1.61 +sendmail: milter (tcp or unix sockets)
    1.62 +
    1.63 +checks while smtp dialog (pre-queue): in MTA implemented (need to be fast)
    1.64 +checks when mail is accepted and queued: external (amavis, spamassassin)
    1.65 +
    1.66 +anti-virus: clamav
    1.67 +
    1.68 +AMaViS (amavisd-new): email filter framework to integrate spam and virus scanner
    1.69 +internet -->25 MTA -->10024 amavis -->10025 MTA --> reciptient
    1.70 +                |                            |
    1.71 +                +----------------------------+
    1.72 +mail scanner:
    1.73 +incoming queue --> mail scanner --> outgoing queue
    1.74 +
    1.75 +mimedefang: uses milter interface with sendmail
    1.76 +
    1.77  
    1.78  
    1.79  \subsection{Architecture}
    1.80  
    1.81 -<< architecture diagram >>
    1.82 +The programs architecture is maybe the most influencing design decision with the greatest impact on the programs further capabilities. %fixme: search quote ... check if good
    1.83 +
    1.84 +\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, with its \name{milter} interface, standardized connection channels to external modules. \exim\ has a highly structured code with many internal interfaces, like the one for supported authentication ``modules''. \masqmail\ has none of them.
    1.85 +
    1.86 +Figure \ref{fig:masqmail-arch} is an attempt to depict \masqmail's internal structure.
    1.87 +
    1.88 +\begin{figure}
    1.89 +	\begin{center}
    1.90 +		\input{input/masqmail-arch.tex}
    1.91 +	\end{center}
    1.92 +	\caption{Internal architecture of \masqmail}
    1.93 +	\label{fig:masqmail-arch}
    1.94 +\end{figure}
    1.95 +
    1.96 +
    1.97  
    1.98  (ssl)
    1.99  -> msg-in (local or remote protocol handlers)
   1.100 @@ -126,6 +160,15 @@
   1.101  
   1.102  
   1.103  
   1.104 +\subsection{spam and malicious content}
   1.105 +
   1.106 +The same for malicious content (\name{malware}) like viruses, worms, trojan horses. They are related to spam, but affect the \MTA less, as they are in the mail body.
   1.107 +
   1.108 +message body <-> envelope, header
   1.109 +
   1.110 +where to filter what
   1.111 +
   1.112 +
   1.113  
   1.114  
   1.115