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

Popular posts from this blog

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User