dradul
February 18th, 2006, 10:18 AM
HOW-TO: Install the right mail server or how NOT to install Postfix
Pedro A. López-Valencia
python -c 'print "cGFsb3BlenZAZ21haWwuY29t".decode("base64")'
Let's suppose you are a web developer and want to set up a LAMP box exclusively for development, and being security conscious, you don't want a Mail Transport Agent (MTA) running in your system. Not only you would need to take care of firewalling the thing but you would also have a drain of system resources, even if a small one.
Yet, when you install a server such as MySQL or Postgres, the dependency system will pull in Postfix. This kind of server needs some mechanism to report its status and errors to the administrator and the mail subsystem is the logical choice. It seems it is a catch-22, you want MySQL but you don't want a full blown mail server!!! You remove Postfix, and off goes your very needed database as well.
That is not the case, properly packaged Debian pakckages depend on mail-transport-agent and it so happens that postfix is the default in Ubuntu's system configuration files. You can install other mail server if you do it before you install the other applications that pull in a mail server.
You have plenty of choices after you enable the Universe repository, depending on your needs and previous knowledge of the application:
courier-mta
esmtp-run
exim (version 3)
exim4
hula-manager
masqmail
nullmailer
postfix
smail
ssmtp
xmail
zmailer
If you don't want a full blown MTA, there are several relay-only MTAs in the list above, namely:
esmtp-run
masqmail
nullmailer
ssmtp
I won't go into explaining how to use each of them here, but I will give you a recommendation: esmtp-run is a very powerful and flexible relay-only MTA that works uploading email to a real server you are authorized to use and has a very simple configuration file. It can handle SSL and PKI authorization if needed. It can use procmail for local delivery (installed by default in Ubuntu Breezy, part of the installation CD in Dapper; mak esure to make it suid root with dpkg-reconfigure) and after you install it you won't miss one single system report sent to root (or your account, if you alias root to send mail to your own usename).
Pedro A. López-Valencia
python -c 'print "cGFsb3BlenZAZ21haWwuY29t".decode("base64")'
Let's suppose you are a web developer and want to set up a LAMP box exclusively for development, and being security conscious, you don't want a Mail Transport Agent (MTA) running in your system. Not only you would need to take care of firewalling the thing but you would also have a drain of system resources, even if a small one.
Yet, when you install a server such as MySQL or Postgres, the dependency system will pull in Postfix. This kind of server needs some mechanism to report its status and errors to the administrator and the mail subsystem is the logical choice. It seems it is a catch-22, you want MySQL but you don't want a full blown mail server!!! You remove Postfix, and off goes your very needed database as well.
That is not the case, properly packaged Debian pakckages depend on mail-transport-agent and it so happens that postfix is the default in Ubuntu's system configuration files. You can install other mail server if you do it before you install the other applications that pull in a mail server.
You have plenty of choices after you enable the Universe repository, depending on your needs and previous knowledge of the application:
courier-mta
esmtp-run
exim (version 3)
exim4
hula-manager
masqmail
nullmailer
postfix
smail
ssmtp
xmail
zmailer
If you don't want a full blown MTA, there are several relay-only MTAs in the list above, namely:
esmtp-run
masqmail
nullmailer
ssmtp
I won't go into explaining how to use each of them here, but I will give you a recommendation: esmtp-run is a very powerful and flexible relay-only MTA that works uploading email to a real server you are authorized to use and has a very simple configuration file. It can handle SSL and PKI authorization if needed. It can use procmail for local delivery (installed by default in Ubuntu Breezy, part of the installation CD in Dapper; mak esure to make it suid root with dpkg-reconfigure) and after you install it you won't miss one single system report sent to root (or your account, if you alias root to send mail to your own usename).