• Inviting everyone who uses WordPress management tools in Plesk
    The Plesk team is conducting a 60-minute research session that includes an interview and a moderated usability test.
    To participate, please use this link .
    Your experience will help shape product decisions and ensure the tools better support real-world use cases.

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