Please help us improve HowtoForge and take our survey:
Exim Authenticated Smarthost
Exim Authenticated Smarthost
Today's ISP environment requires authenticated SMTP to be able to send emails. As a policy, authenticated SMTP helps cut down on folks sending SPAM and allows the ISP to track which account is sending what type of email content for further demographic study. While authenticated SMTP is good for the ISP, it is not a configuration supported out of the box by most Linux distributions. This means that all those system emails and log reports emailed by root never make it anywhere anymore. The solution is to configure your Linux distribution to send authenticated SMTP. My local ISP requires authenticated SMTP and here is how I got Exim4 to work for me on Ubuntu LTS 8.04. These instructions are written assuming you are using a Debian based Linux distribution but should also work well on other Linux distributions granted you use the applicable package manager commands for that specific distribution.
Install the required packagesIf not already installed, use your package manager of choice to sudo apt-get install exim4-daemon-light
Configure Exim4Then sudo dpkg-reconfigure exim4-configp ...be sure to select mail sent by smarthost unless you are configuring local mail, which most folks at home do not need. Now, edit the file sudo nano /etc/exim4/passwd.client ...and add the line *:login:password to the file, substituting the correct email account login name for login and corresponding password. Most ISPs offer multiple email accounts so it may make sense security wise to create an account just for utility use such as this. If your Linux host is ever compromised you will be glad you had a seperate utility email account. Create the file sudo touch /etc/exim4/exim4.conf.localmacros Then edit that file sudo nano /etc/exim4/exim4.conf.localmacros ...add the line AUTH_CLIENT_ALLOW_NOTLS_PASSWORDS = 1 to the file.
Test the Configuration
Finally sudo /etc/init.d/exim4 restart to test for effect with the application of your choice. From the command line you can "exim -v -M messageid" to try resending a test email again if your first email attempt does not go so well.
Also...The configuration above uses clear text authentication, which may not be what you want. Exim4 supports TLS security. Enabling TLS support involves sudo apt-get install openssl then sudo /usr/share/doc/exim4-base/examples/exim-gencert then sudo nano /etc/exim4/exim4.conf.localmacros to add the line MAIN_TLS_ENABLE = 1 Of course, some ISPs do not support TLS for SMTP so be sure to check your ISP's configuration information prior to regarding your Linux host's SMTP configuration suspect.
|









Recent comments
1 day 4 hours ago
2 days 37 min ago
2 days 3 hours ago
2 days 7 hours ago
4 days 16 min ago
4 days 30 min ago
4 days 1 hour ago
6 days 2 hours ago
1 week 10 hours ago
1 week 1 day ago