sendmail - ssmtp works in cron, but not elsewhere - Ask Ubuntu
ubuntu 16.04.... if enter sudo ssmtp recipient@somewhere.com , type text, hit ctrl-d in syslog:
nov 4 15:18:58 garage-security ssmtp[27717]: 550 5.6.0 invalid header found (see rfc2822 section 3.6)
but if @ message cron in syslog, see
nov 4 15:01:03 garage-security ssmtp[20685]: sent mail root@mydomain.com (221 2.3.0 smtp01.wow.cmh.synacor.com closing connection) uid=0 username=root outbytes=761
both ssmtp , sendmail fail in same way. dont understand why cron can send email cant command line - don't both use same config file? can clue me in?
Comments
Post a Comment