If a cron job produces output it is e-mailed to the user's account.
I would like to redirect this e-mail to another e-mail account. Preferably on a user-by-user basis.
I've looked into some options that are often mentioned in other postings:
Using the cron
MAILTOvariable. Won't work. That one is not supported on Solaris. It is a Linux thing, potentially also a BSD thing, but certainly doesn't exist on Solaris.Using the
~/.forwardfile. Can't make that work. I suspect it is because this file is really related tosendmailuniverse and I'm not sure Solaris cron actually usessendmailto send its e-mails.
To get to the bottom of this I guess I need to understand exactly by which mechanism Solaris cron sends e-mails.
Anyone ?
~/.forward. The global aliases file is/etc/mail/aliases.