I am attempting to figure out the best way to set up an auto-response 
(bounce, in a manner of speaking) triggered by sender domain, in order to 
facilitate not just rejecting specific domains, but auto-answering mail from 
them.

The situation is as follows:  My company receives mail from vary large number 
of different domains, most legitimate, but some notorious spammers, and some 
a combo of both.  The problem is that I am uncomfortable just adding a domain 
to "badmailfrom", as I have to be really careful blocking out entire domains 
lest I block out some legitimate users.  badmailfrom only provides an smtp 
rejection, and I cannot guarantee that an end-user could figure out what 
happened.  Therefore, I would like to maintain a list of domains a la 
badmailfrom, but rather than doing an smtp reject, an autoreponse would 
result (your mail has been reject because <blah>, please contact <blah> etc. 
etc. ).  This way, legitimate users on "banned" domains would have an 
opportunity to notify us and get unbanned.  It seems simple on the surface, 
but most every filter I have found so far relies on RBLs (love em, but far 
too arbitrary for this task), or receiver address/domain (it's all coming to 
the same domain, I need to filter by sender domain).  I am sure there must be 
a fairly simple way to complete this, but I'm not having a lot of luck so 
far.  Any help/thoughts would be greatly appreciated.  Thanks in advance.

Mike Culbertson
sysadmin

P.S.  The qmail boxes in question are acting as relays only, I am trying to 
avoid using procmail to filter all deliveries, as 99.9% is sent onwards to 
another host, not locally.  Don't want to double-process the mail if I don't 
have to, rather have qmail handle all the filtering alone if possible.

Reply via email to