Code: Select all
sudo apt-get install ssmtp
sudo apt-get install mailutils
sudo apt-get install mpack
Code: Select all
#
# Config file for sSMTP sendmail
#
root=me@mydomain.com
# The full hostname
hostname=MyRasPi
AuthUser=me@gmail.com
AuthPass=myGmailpw
FromLineOverride=YES
mailhub=smtp.gmail.com:587
UseSTARTTLS=YES
#AuthUser=me@mydomain.com
#AuthPass=mypw
#mailhub=mail.mydomain.com:465
Code: Select all
echo "sample text" | mail -s "Subject" myid@hotmail.com
But, in fact, I do not want to use Google's Gmail system. I have my own domain and mail server.
I modified the above ssmtp.conf to use the hash-ed out lines to replace the Gmail lines. When I use Outlook I have to configure my outgoing (SMTP) server "requires authentication" and needs to use SSL and port 465. When I now try the above mail command it just hangs and I have to control-C to get back to the command line prompt.
What am I doing wrong? Thanks...RDK