I'm using ssmtp for sending email (the setting is below)Now when i run a cron command or an at command, mail is sent tomichel@mypiwhich is username @ machinenameNow ofcourse this is not a valid email address, so i get errors in my gmail saying: can't send email to michel@mypiHow and where should i say that email to the user 'michel' should go to a particular email address?The setting for ssmtp:## Config file for sSMTP sendmail## The person who gets all mail for userids < 1000 # Make this empty to disable rewriting.root=MYNAME@gmail.com# The place where the mail goes. The actual machine name is required no # MX records are consulted. Commonly mailhosts are named mail.domain.commailhub=smtp.gmail.com:465# Where will the mail seem to come from?#rewriteDomain=gmail.com# The full hostnamehostname=MyPi# Are users allowed to set their own From: address?# YES - Allow the user to specify their own From: address # NO - Use the system generated From: address #FromLineOverride=YES AuthUser=MYNAMEAuthPass=MYPASSFromLineOverride=YESUseTLS=YES
Where is the setting for sending email to a system user with ssmtp?
email;ssmtp