- I'm running Debian
- I've set up
ssmtpas my MTA and this works perfectly - I can send mail using both
mailandmailxwith a standard user account
BUT... When I run sudo apticron I get:
send-mail: RCPT TO:<[user]@[mydomain].com> (550 Sender verify failed)
Any ideas? (I've blanked the email details myself - that's not part of the error)
UPDATE:
When running mail or mailx as root, these break too! They only work when I run them under my standard user account.
Error message I receive as root when running:
echo "test" | mail -s "test" [user]@[mydomain].com
is same as with apticron:
RCPT TO:[user]@[mydomain]> (550 Sender verify failed)
UPDATE 2:
sudo mail -v etc... shows that the root user actually replaces the first part of the email address with 'root' despite /etc/ssmtp/ssmtp.conf specifying FromLineOverride=NO:
[<-] 220 and/or bulk e-mail.
[->] EHLO [user]@[mydomain].com
[<-] 250 HELP
[->] AUTH LOGIN
[<-] 334 VXNlcm5hbWU6
[->] [redacted Base64 username]
[<-] 334 UGFzc3dvcmQ6
[<-] 235 Authentication succeeded
[->] MAIL FROM:<root@[mydomain.com]>
[<-] 250 OK
[->] RCPT TO:<[user]@[mydomain].com>
[<-] 550 Sender verify failed
send-mail: RCPT TO:<[user]@[mydomain].com> (550 Sender verify failed)
EDIT:
I've removed previously pasted code from apticron as clearly the problem lies with root not being able to send emails (this is no longer limited to an individual program)
mailandmailx. Incidentally I think having a dash/hyphen in the from address breaksssmtp, that's why I changed it originally.mail -s "something" [email protected]but apticron fails every time if they're both using the same MTA?