Page 1 of 1

redirect mail from ommaint script

Posted: Fri Apr 20, 2007 4:20 pm
by mrirh
Hello,

I want to redirect mail from ommaint to a user other than root, however I cannot find where to update the MAIL_REPORTS variable. I see it in the script although I don't where to add an e-mail address.

Thank you,

James

Posted: Fri Apr 20, 2007 4:51 pm
by swordfish
There is a string like this:

MAIL_REPORTS="root"

close to the top. Just replace root with your email address. Or a a second like:

MAIL_REPORTS="youremail@yourdomain.com"

Posted: Sat Apr 21, 2007 4:32 am
by btisdall
However, if you're the admin of the box in question then what you probably want to do is alias root to yourself in /etc/aliases rather than tweak it in ommaint. That way you'll get other system generated messages too.