• We value your experience with Plesk during 2025
    Plesk strives to perform even better in 2026. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2025.
    Please take this short survey:

    https://survey.webpros.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