Sendmail
De WikiMar
For sending only mail you can install instead of postfix:
sudo apt-get exim4
sudo dpkg-reconfigure exim4-config
For sending only mail using external SMTP you can use:
sudo apt-get install ssmtp
sudo vi /etc/ssmtp/ssmtp.conf
# Config file for sSMTP sendmail # # The person who gets all mail for userids < 1000 # Make this empty to disable rewriting. #root=postmaster #[email protected] [email protected] # The place where the mail goes. The actual machine name is required no # MX records are consulted. Commonly mailhosts are named mail.domain.com #mailhub=mail #mailhub=smtp.gmail.com:587 mailhub=smtps.aruba.it:465 [email protected] AuthPass=passowrdveaa UseTLS=yes UseSTARTTLS=NO # Where will the mail seem to come from? rewriteDomain=XXaldeaglobal.net # The full hostname #hostname=MyMediaServer.home hostname=XXaldeaglobal.net # Are users allowed to set their own From: address? # YES - Allow the user to specify their own From: address # NO - Use the system generated From: address FromLineOverride=YES
Testing sending mails
echo "This is a test.3" | mail -s Testing1 [email protected]