Mike Culbertson <[EMAIL PROTECTED]> wrote:
> I have a question that has as of yet remained unanswered.
> Is it possible to filter or forward mail based on envelope sender and/or 
> sender IP.
> 
> things I know:
> 1. I know you can block sender IPs with tcpserver, but that rejects the 
> connection, I need to set up an auto-response.

Use the @fixme/fixup trick.  For the IP you want to filter, use tcpserver to
set RELAYCLIENT to "@spammer" or something (not an empty value).  Then make
"@spammer" a virtual domain:

  echo "spammer:alias-spammer" >> /var/qmail/control/virtualdomains

Then handle this domain with one or more .qmail files.  To handle all
addresses they try to send to:

  echo "| bouncesaying FOAD" >> ~alias/.qmail-spammer-default

Or have whatever delivery instructions you like in here.

Charles
-- 
-----------------------------------------------------------------------
Charles Cazabon                            <[EMAIL PROTECTED]>
GPL'ed software available at:  http://www.qcc.sk.ca/~charlesc/software/
-----------------------------------------------------------------------

Reply via email to