I have set up a user with a .forward. But when a cron job failed it did not forward the mail to my email, instead it went to the user mailbox. Does anyone have any ideas? Thanks.
I have tested it with several different jobs. One was a check of some logs, and the other was a vmstat job for testing to see if it would fail. I ran the same jobs with a different user and the .forward worked. What situation would cause this particular user's .forward to be ignored? Thanks for your help!
Yep, the permissions on the users home directory were set to 775. I changed the permissions to 755 and it worked! Setting the mail command to -v "verbose" helps determine problems also. Thanks for you help!
Reason it doesn't work with group or other write permission, is that the mail facility can't be sure the file still contains the forwarding address that the owner has put in it, as someone else may have overwritten that address in the file.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.