[CentOS] sendmail and sudo

Stephen Harris

lists at spuddy.org
Tue Dec 20 21:42:30 UTC 2011


On Tue, Dec 20, 2011 at 03:10:31PM -0500, m.roth at 5-cent.us wrote:
> echo "To: user
> 
> 
> help
> " | sendmail -t

If you're gonna send automated email, you should specify the from
address as well
  echo "To: user
  From: my_service_alias at example.com
  Subject: testy mctesty
  
  bleh" | /usr/sbin/sendmail -t

Never leave to chance what should be specified.

-- 

rgds
Stephen



More information about the CentOS mailing list