[Mimedefang] Skip MD for some users

Stephen Smoogen smoogen at lanl.gov
Tue Apr 27 14:45:07 EDT 2004


On Tue, 2004-04-27 at 10:54, Kelson Vibber wrote:
> At 11:18 AM 4/26/2004, Nathan Martinez wrote:
> >Everything works fine for me, but now a few users want to be excluded
> >from the Spam scanning that I am doing.
> 
> Because of the way milter works, you cannot skip MD on a per-user 
> basis.  There are two approaches you can take, both inside mimedefang-filter:
> 
> 1. Use filter_recipient and the ACCEPT_AND_NO_MORE_FILTERING return code - 
> which has the disadvantage that you stop filtering for any other recipients 
> of the same message.
> 
> 2. Check the list of recipients before doing the actual spam scanning 
> (right before calling SpamAssassin, for instance).  This has the same 
> disadvantage, but you can work around it using stream_by_recipient in 
> filter_begin - which of course has its own disadvantage (resending the same 
> message once per recipient).
> 

blech. the vaguries of a hack. I think David posted the stream by
recipient example in late 2002.

-- 
Stephen John Smoogen		smoogen at lanl.gov
Los Alamos National Lab  CCN-5 Sched 5/40  PH: 4-0645
Ta-03 SM-1498 MailStop B255 DP 10S  Los Alamos, NM 87545
-- You should consider any operational computer to be a security problem --



More information about the MIMEDefang mailing list