BadServo wrote:
I'm at my wits end. I need to have all email from a series of addresses automatically redirected from their intended recipients to an alternate address. After searching the mailing list, I was able to locate this thread: http://www.mail-archive.com/[email protected]/msg04708.html

But I'm simply unable to make it work. The mail is still delivered to the original adressee. I need to get this working ASAP, so any help is greatly appreciated.

Here's the un-altered version from the archives:

In the user's directory (/home/vpopmail/domains/whatever.com/user1/) edit the .qmail file to something like this to run your mailfilter script: |/var/qmail/bin/preline /usr/bin/maildrop -A 'Content-Filter: maildrop-toaster' /etc/mail/mailfilter


That was already there. Looks like it was created when I created the user. I looked in the /etc/mail/mailfilter file itself and I saw that it includes a .mailfilter file in the user's home directory, so I put my rules into there:

if ( /^From:[EMAIL PROTECTED]/ )
{
      log "$TIMESTAMP - [EMAIL PROTECTED]  fax redirected to rightuser"
      to "|/var/qmail/bin/qmail-inject -a [EMAIL PROTECTED]"
}


------------------------------------------------
Basically you need to make sure that you're running maildrop for each user that needs this feature, and then add a .maildrop file in their homedir. Write the .maildrop file to do like the example above. On the other hand, wouldn't it just be easier to spin these emails into aliases/forwards for the other address?


---------------------------------------------------------------------
    QmailToaster hosted by: VR Hosted <http://www.vr.org>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to