• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

How do I redirect mail for a local user to root?

S

Steve Allison

Guest
Debian 4.x [etch], Plesk 8.6

Basically I have an extra linux user called "sysmaint" that is used to run backup scripts nightly amongst other regular jobs. I have created a Maildir using /var/qmail/bin/maildirmake ~sysmaint/Maildir.

This delivers mail fine to the local directory, but what I really want is for mail to sysmaint to just be redirected to root.

So far I have tried:

* Creating a file called ".qmail" in ~sysmaint/Maildir with "&root" as its contents. And: chmod 600 .qmail; chown sysmaint:sysmaint .qmail

* cp ~alias/.qmail-root ~alias/.qmail-sysmaint, in an attempt to use the same settings for root as for sysmaint which is to forward the mail to my own mailbox

I have restarted qmail /etc/init.d/qmail restart after each change but I'm not getting the desired results.

Any ideas?
 
Back
Top