Hello, Thank you Todd, that information was quite helpful. I created /var/log/.mailrc. The from header is working. Nino
> On 7 May 2023, at 12:07 am, Todd C. Miller <todd.mil...@sudo.ws> wrote: > > On Sat, 06 May 2023 10:03:45 +1000, Nino Sidoti wrote: > >> I am trying to work out how to change the “From address” for when the daily o >> utput reports are run. I want to use a real email address rather than the def >> ault of Charlie Root “root@hostname”. >> >> I have tried to use a /root/.mailrc option and set the “from” address but thi >> s seems to be ignored when the daily output reports are generated. > > That is probably because the root crontab sets HOME to /var/log. > You might try creating a /var/log/.mailrc file (owned by root) and > see if that works for you. If not, you might just edit /etc/daily > and pass the -r option to mail to set the from address. > > - todd