We help IT Professionals succeed at work.

receive root email

XK8ER
XK8ER asked
on
hello there,
is it possible to receive the root email like this from the system..
I have a user admin and it works quite well..
[(06:47 PM)][(root@dedico)] [(/home/admin)] $ cat .procmailrc
:0
*^Subject: (Signup Report|Error Report)
! myEmail@gmail.com

:0
/dev/null

Open in new window

Comment
Watch Question

Yes, simply create a /root/.procmailrc and it will work exactly the same as it does for the admin account.

Author

Commented:
would it be possible to set this so instead of whitelist those email subjects to blacklist.. so I dont get any emails with those two subjects?
Yes, of course.  Just reverse the rules:


:0
*^Subject: (Signup Report|Error Report)
/dev/null

:0
! myEmail@gmail.com

Open in new window