Magicloud Magiclouds grabbed a keyboard and wrote: > Hi, > By default, many tools like cron will send mails to local, like > magicloud@localhost. > Now I want these mails to be relayed to my company mail address. So I do > not have to configure all tools to send mail directly to my company > address. I used to have it on another host, but I forgot how to do it. > I am using exim4. > Thanks.
For cron, one common way is to add a line to the top of the crontab entry for the user that cron is running the jobs for, like this: MAILTO="u...@othermachine.com" If you want all mail that's being sent to a local address to be forwarded, you can put a .forward file in the home directory of the user that's receiving the mail, with the address to be forwarded to in it. No other text is needed, just the address. --Dave
signature.asc
Description: OpenPGP digital signature