After enabling per-user procmail support on my server, I adjusted system wide mail aliases to send root to my email account, then went to Usermin and created a mail filter with the following settings:
Condition for filter:
Based on Header:
To: must match root@server.infinite-monkeys.com
Action if condition is matched:
Save to Folder: Server Stuff
This morning, I went to my Server Stuff folder to discover that I had no logwatch email. I checked the maillog, and the email was correctly delivered to my personal email address:
Aug 30 04:02:25 server3 postfix/local[4989]: 0AD9B7F8B2: to=, orig_to=, relay=local, delay=5.3, delays=0.01/0/0/5.3, dsn=2.0.0, status=sent (delivered to command: /usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME)
I went hunting for the email to discover that procmail had dumped the message in the directory
/home/debusnet/homes/adam/Maildir/.Server Stuff
with a filename of
msg.RcI9
instead of in the .Server Stuff/new directory. If I manually moved the file into new or cur then it showed up in my email client, but procmail should be dumping it there by default when setup via Usermin, no?