Change email address for "daily run output"

The periodic(8) scripts run from cron(8), so they use email address configured for cron(8). It's easiest to set a proper mail alias in /etc/mail/aliases and redirect root's mail to the email address you want. Don't forget to run newaliases(1) after changing that file.

Just add, somewhere at the bottom:
Code:
root: me@example.com

Note however that this is for sendmail(1). Depending on how you configured Postfix you may need to edit a different file for the mail aliases.
 
Strange, I have this in /etc/mail/aliases:

Code:
...
# Pretty much everything else in this file points to "root", so
# you would do well in either reading root's mailbox or forwarding
# root's email from here.
root: pelle.andersson@domain.se
...

But the output is still sent to "info@domain.se"
Maybe I'm editing the wrong aliases file as you wrote above :confused:
 
Back
Top