Hoping I someone in the Linux world can put me out of my misery.
I want to send emails of logs from my new remote site.
Thought it would be simple from all the reading I did before deciding which direction to take, but I'm beating my head against the wall.
My hosting provider even blacklisted me after a few failed attempts.
This has been my main point of reference, https://www.raspberrypi.org/forums/view ... p?t=189008
To date, have installed ssmtp, mailutils & mpack.
My test account has been setup on my host as test@inverellit.com
This is their guide:- What I've put in /etc/ssmtp/ssmtp.conf is this:-
(Noting that I've read that I should not use special characters in the password. Ei "#" obviously).
Code: Select all
# Config file for sSMTP sendmail
# The person who gets all mail for userids < 1000
# Make this empty to disable rewriting.
root=test@inverellit.com
# 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.inverellit.com:587
AuthUser=test@inverellit.com
AuthPass=password here
UseTLS=Yes
UseSTARTTLS=Yes
# Where will the mail seem to come from?
rewriteDomain=inverellit.com
# The full hostname
hostname=rPi-4-2
# 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
pi@rPi-4-2:~ $ echo "Hello world email body" | mail -s "Test Subject" myname@mydomain.com.au
It just times out & returns,
mail: cannot send message: Process exited with a non-zero status
/var/log/mail.log has this
Code: Select all
Aug 18 16:15:13 rPi-4-2 sSMTP[16590]: Creating SSL connection to host
Aug 18 16:15:13 rPi-4-2 sSMTP[16590]: SSL connection using ECDHE_RSA_AES_256_GCM_SHA384
Aug 18 16:15:15 rPi-4-2 sSMTP[16590]: Authorization failed (535 Incorrect authentication data)
Aug 18 16:20:44 rPi-4-2 sSMTP[17272]: Authorization failed (535 Incorrect authentication data)
Aug 18 16:27:54 rPi-4-2 sSMTP[18153]: Creating SSL connection to host
Aug 18 16:27:54 rPi-4-2 sSMTP[18153]: SSL connection using ECDHE_RSA_AES_256_GCM_SHA384
Aug 18 16:27:56 rPi-4-2 sSMTP[18153]: Authorization failed (535 Incorrect authentication data)
Aug 18 16:34:50 rPi-4-2 sSMTP[19021]: Authorization failed (535 Incorrect authentication data)
Aug 18 19:28:37 rPi-4-2 sSMTP[7903]: Authorization failed (535 Incorrect authentication data)
Code: Select all
Aug 19 11:44:42 rPi-4-2 sSMTP[30004]: Creating SSL connection to host
Aug 19 11:47:27 rPi-4-2 sSMTP[30004]: Invalid response SMTP Server (STARTTLS)
Aug 19 11:47:27 rPi-4-2 sSMTP[30004]: Cannot open mail.inverellit.com:465
& then it was an hour on support to get access to my services again, so am now a bit gun shy on testing too hard.
Tested it in Outlook like this & it works just fine.
Any solution would be greatly appreciated,
Thanks
Phil.