Postfix

Postfix is a free and open-source mail transfer agent (MTA) that routes and delivers electronic mail. It is intended as a fast, easier-to-administer, and secure alternative to the widely-used Sendmail MTA.

Configure For SMTP Auth In Ubuntu Linux
Change to the Postfix directory cd /etc/postfix/

Configure main configuration file nano main.cf     smtp_generic_maps = hash:/etc/postfix/generic smtp_sasl_auth_enable = yes relayhost = [my.smtp.host.co.uk] smtp_sasl_password_maps = hash:/etc/postfix/sasl_password smtp_sasl_security_options = noanonymous

Create the SASL password file nano sasl_password [my.smtp.host.co.uk]   me@myemailaccount.com:passW0rD

Lock down permissions chmod 0600 sasl_password

Hash the file postmap hash:sasl_password

Create the Postfix generic file nano generic root@myhostname.localdomain   me@myemailaccount.com user1@myhostname.localdomain   me@myemailaccount.com user2@myhostname.localdomain   me@myemailaccount.com

Hash the file postmap hash:generic

Copy the supporting files to the Postfix working directory cp -av /etc/services /var/spool/postfix/etc/ cp -av /etc/localtime /var/spool/postfix/etc/ cp -av /etc/resolv.conf /var/spool/postfix/etc/

Start Postfix postfix start

Install mailutils and mutt apt-get install mailutils mutt

Send test email message mail me@myemailaccount.com Cc: Subject: test message CTRL+D