Dennis Leeuw
Versie 0.1.0
The MUA is the program that a user uses to read his or her mail. Some examples: pine, mutt or Netscape (on Windows Outlook). The MUA can use several protocols to fetch the mail. The most used services are POP3, IMAP, but SMTP is also possible.
All incoming mail for a user is stored in one file in /var/spool/mail/<username>. You could read your mail with more or less, but that is not very comfortable. The most secure way of using pop3 is by using pop3 over SSL. This way you get a SSH like pop3 system.
The configuration can be found in /etc/courier/.
[META] needs more docu about interfaces to run on and protocols/ports to use.
The MTA is a program that sends mail from one server to another. This is done through the SMTP protocol. On Debian the default MTA is Exim, however there are several GNU/Linux servers that contain this functionality like: sendmail, postfix and qmail.
I like postfix so let's start with that one.
The postfix configuration files can be found in /etc/postfix/.
The most important file is main.cf. Elements in this file that need special attention:
mydestination = $myhostname, localhost.$mydomain, $mydomain
mynetworks = 192.168.1.0/24, 127.0.0.0/8
relay_domains = $mydomain
Test the configuration with telnet:
telnet smtp.domein.nl 25 # from a Internet machine
telnet 192.168.1.1 25 # from an internal machine
mail from: user@domein.org
rcpt to: user@domein.nl
data
.
quit
The MDA is a program that incoming mail from the MTA accepts and it stores in the users mailbox, Local Delivery. The program is on almost any GNU/Linux systeem procmail.
It might be that you have some pop3 mail accounts on other servers or providers. To get that mail on your local system you could use fetchmail.
A sample configuration file:
user "jsmith", with password secret1, is "johans" here;
Get the source from http://www.konarski.edu.pl/~zolw. Read the documentation, which is very good, or do:
useradd -g clamav -s /bin/false -c ``Clam Antivirus'' clamav
make
make install
useradd -g vscan -s /bin/false -c ``Amavis'' vscan
Before you can use AMAVIS you first need a couple of perl modules:
libemail-valid-perl libconvert-uulib-perl \
libconvert-tnef-perl libarchive-tar-perl \
libarchive-zip-perl libcompress-zlib-perl
Then there is arc, which is not GNU/Linux ready yet. So download the source and do the following:
cd temp
tar zxvf ../arc521.tar.Z
/* long tv_sec; /* really seems to be in <sys/time.h>, */
/* long tv_usec; /* but why bother... */
/*};*/
#include <sys/time.h>
#include <time.h>
int daylight;
#else
#include <time.h>
#endif
cp arc /usr/local/bin
Compile AMAVIS:
find . -exec touch 01010000 {} \;
./configure
make
make install
Add to /etc/postfix/main.cf:
Send an e-mail with the Eicar string to test the anti-virus functionality.
This document was generated using the LaTeX2HTML translator Version 2K.1beta (1.48)
Copyright © 1993, 1994, 1995, 1996,
Nikos Drakos,
Computer Based Learning Unit, University of Leeds.
Copyright © 1997, 1998, 1999,
Ross Moore,
Mathematics Department, Macquarie University, Sydney.
The command line arguments were:
latex2html -no_subdir -split 0 -show_section_numbers /tmp/lyx_tmpdir30758nJeXv/lyx_tmpbuf3075QAkyC5/Debian_Mail_server.tex
The translation was initiated by Dennis Leeuw on 2002-05-28