Exim is the Mail Transfer Agent ("MTA"). It is a drop-in replacement for Sendmail.
We are using Exim primarily because it is bundled with Debian, but also because it is very robust, easy to configure, and well documented.
# mcedit /etc/inetd.conf
[screenshot]
Remark the line that begins with smtp. (High-volume servers should not run Exim from inetd.)
# /etc/init.d/inetd restart
[screenshot]
# eximconfig
[screenshot]
Answer the questions as follows:
[screenshot] Select a number from 1 to 5, from the list above. 1
[screenshot] What is the 'visible' mail name of your system? bfree.on.ca
[screenshot] Does this system have any other names which may appear on incoming mail messages? none
[screenshot] Are there any domains you want to relay? none
[screenshot] Are there any networks of local machines you want to relay mail for? none
[screenshot] Which user accounts(s) should system adminstrator mail go to? none
[screenshot] Is this OK? y
# mcedit /etc/exim/exim.conf
[screenshot]
Change the local_delivery transport to this:
local_delivery:
driver = appendfile
group = mail
mode = 0660
mode_fail_narrower = false
envelope_to_add = true
return_path_add = true
directory = /home/${uc:$domain}/${local_part}/Maildir
maildir_format
Exim will now deliver to maildir instead of mbox.
# /etc/init.d/exim restart
[screenshot]
Warning: The mail service is now online. Port 25 will be open.