Send-only Mail Server on Ubuntu Server
NOTICE: Make sure you have set hostname correctly before doing this.
apt-get install exim4-daemon-light mailutils dpkg-reconfigure exim4-config
Choose the option for "internet site"
Enter your system's FQDN (fully qualified domain name)
Make sure you list your FQDN, hostname, and localhost entries
Leave the relay domains and relay machines fields blank
Select "No" when asked whether to keep DNS queries to a minimum
You may select either "mbox" or "Maildir" when asked about the delivery method used for incoming mail. While many utilities use mbox format, Maildir format can make handling individual locally delivered mail messages easier, and is widely supporting by a range of applications.
Accept the default "non-split" option for your mail configuration file.
Enter at least one external email address (choose one that you check frequently) in addition to "root" when asked to specify postmaster mail recipients.
Test Mail Configuration
echo "This is a test." | mail -s Testing email@example.com
comments powered by Disqus