I'm running a server on AWS (ubuntu) and I need outgoing email to be able to email log files. To do this I'm using ssmtp and amazon's SES (Simple Email Service).
I have the email addresses verified and everything works fine when I run tests from the command line. The email is sent and received as expected.
The problem I'm having is with
logwatch. When it runs (both from cron and by me directly), I see the follow error:
sSMTP: 554 Transaction failed: User name is missing: 'root'.
logwatch set up with:
MailFrom = firstname.lastname@example.org MailTo = email@example.com
Both verified emails with SES.
ssmpt.conf is set up with:
firstname.lastname@example.org mailhub=email-smtp.us-east-1.amazonaws.com:465 #rewriteDomain=mydoman.com # Having these uncommented doesn't help #hostname=mydomain.com UseTLS=YES AuthUser=XXXXX AuthPass=XXXXX AuthMethod=LOGIN FromLineOverride=YES
ssmpt works find if I send email through it as a test.
Does anyone know what is happening and why it thinks the user name is missing? I can send email through ssmpt as 'root' without a issue. It's just
logwatch that is causing issues.