Odd. After sending another email, it suddenly began working. I've no
idea why it failed to work in the past. Could ClamAV have been
hindering Maildrop? Becuase the only changes I've made since today's
testing and yesterdays attempts was to disable ClamAV.
Three other questions...
Firstly, there's a ton of material in /etc/mail/mailfilter is it safe to
leave it and let it call the user-specific .mailfilter? Or should I
strip it down?
Secondly, how can I enable this globally for all users? Instead of
creating a .qmail and .mailfilter file for each individual is there a
global setting that will make all incoming mail from the address get
redirected?
Lastly, can I specify multiple copies of the redirection scripts in
.qmail in order to redirect mail from multiple addresses?
That's so much for the help. You've no idea how much I appreciate it.
Jake Vickers wrote:
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/qmailtoaster-list@qmailtoaster.com/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]
---------------------------------------------------------------------
QmailToaster hosted by: VR Hosted <http://www.vr.org>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]