• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

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