Re: [Mimedefang] Skip MD for some users

2004-04-27 Thread Kelson Vibber
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).

Kelson Vibber
SpeedGate Communications www.speed.net 

___
Visit http://www.mimedefang.org and http://www.canit.ca
MIMEDefang mailing list
[EMAIL PROTECTED]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


Re: [Mimedefang] Skip MD for some users

2004-04-27 Thread Stephen Smoogen
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[EMAIL PROTECTED]
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 --

___
Visit http://www.mimedefang.org and http://www.canit.ca
MIMEDefang mailing list
[EMAIL PROTECTED]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


[Mimedefang] Skip MD for some users

2004-04-26 Thread Nathan Martinez
Hello everyone,

I have MD 2.39 setup with Sendmail 8.12.8 on a RedHat 9 machine.
Everything works fine for me, but now a few users want to be excluded
from the Spam scanning that I am doing.  I have tried the solution
described at:
http://lists.roaringpenguin.com/pipermail/mimedefang/2002-August/010883.
html, but the mail for the user that I listed is still being scanned by
MD.  I don't know if this matters or not, but my MD machine is not the
actual delivery machine.  It is forwarding mail onto our internal
Exchange server.

Has anyone had a similar problem?  Is there something that I can do to
offer more info to the list?

TIA,

Nathan Martinez

___
Visit http://www.mimedefang.org and http://www.canit.ca
MIMEDefang mailing list
[EMAIL PROTECTED]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


Re: [Mimedefang] Skip MD for some users

2004-04-26 Thread Stephen Smoogen
On Mon, 2004-04-26 at 12:18, Nathan Martinez wrote:
 Hello everyone,
 
 I have MD 2.39 setup with Sendmail 8.12.8 on a RedHat 9 machine.
 Everything works fine for me, but now a few users want to be excluded
 from the Spam scanning that I am doing.  I have tried the solution
 described at:
 http://lists.roaringpenguin.com/pipermail/mimedefang/2002-August/010883.
 html, but the mail for the user that I listed is still being scanned by
 MD.  I don't know if this matters or not, but my MD machine is not the
 actual delivery machine.  It is forwarding mail onto our internal
 Exchange server.
 

I think the items shown in the archives are for 'whitelisting'
spamassassin accounts.. not whitelisting mimedefang itself.

I think I have seen several mentions on doing this in the archives..
however I cant find them (and I also need them). Basically the items
look to be something like filter or filter_begin that says

$From ~/blech/ return

 Has anyone had a similar problem?  Is there something that I can do to
 offer more info to the list?
 
 TIA,
 
 Nathan Martinez
 
 ___
 Visit http://www.mimedefang.org and http://www.canit.ca
 MIMEDefang mailing list
 [EMAIL PROTECTED]
 http://lists.roaringpenguin.com/mailman/listinfo/mimedefang
-- 
Stephen John Smoogen[EMAIL PROTECTED]
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 --

___
Visit http://www.mimedefang.org and http://www.canit.ca
MIMEDefang mailing list
[EMAIL PROTECTED]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang