29 messages in net.sourceforge.lists.courier-users[courier-users] Proposed extension: S...
FromSent OnAttachments
Matthias WimmerSep 25, 2007 5:17 pm 
Tim LythSep 25, 2007 6:04 pm 
Alessandro VeselySep 26, 2007 12:18 am 
Matthias WimmerSep 26, 2007 3:07 am 
Gordon MessmerSep 26, 2007 1:12 pm 
Matthias WimmerSep 26, 2007 3:54 pm 
Bernd WurstSep 26, 2007 11:06 pm 
Bernd WurstSep 27, 2007 4:37 am 
Matthias WimmerSep 27, 2007 6:12 am 
Bernd WurstSep 27, 2007 8:04 am 
Gordon MessmerSep 27, 2007 2:59 pm 
Sam VarshavchikSep 27, 2007 3:19 pm 
Matthias WimmerSep 27, 2007 3:25 pm 
Matthias WimmerSep 27, 2007 3:34 pm 
Sam VarshavchikSep 27, 2007 4:10 pm 
Gordon MessmerSep 27, 2007 4:32 pm 
Sam VarshavchikSep 27, 2007 4:56 pm 
Gordon MessmerSep 27, 2007 4:58 pm 
Bernd WurstSep 27, 2007 10:05 pm 
Bernd WurstSep 27, 2007 10:07 pm 
Alessandro VeselySep 28, 2007 1:25 am 
Julian MehnleNov 12, 2007 2:52 am 
Sam VarshavchikNov 12, 2007 3:59 am 
Julian MehnleMar 5, 2008 7:03 am 
Gordon MessmerMar 5, 2008 7:59 am 
Bernd WurstMar 5, 2008 8:54 am 
Gordon MessmerMar 5, 2008 9:32 am 
Julian MehnleMar 5, 2008 9:54 am 
Sam VarshavchikMar 5, 2008 4:24 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[courier-users] Proposed extension: SKIPMAILFILTER [patch]Actions...
From:Matthias Wimmer (m@tthias.eu)
Date:Sep 25, 2007 5:17:02 pm
List:net.sourceforge.lists.courier-users

Hi!

I am running a courier setup, where I have installed some mail filters, that are responsible to do spam and virus checking as well as greylisting. With vanilla courier I have to problem, that also all mail that is sent by my clients get checked by these filters. While this does not hurt much for the spam/virus checking (only a small delay in accepting the mails), this is a big problem when doing greylisting.

Because courier does not pass information to the filter, if the mail has been received authenticated, I had to check the first received header instead and search for "(AUTH:" in there. I consider this to be a hack, and it is not a very beautiful solution.

The better solution would be to configure courier to not pass mails to the filters, that are received from clients. This is why I would like to propose the following extension to courier: Introduce a new configuration keyword "SKIPMAILFILTER", which configures courier to not filter received messages by this process. This configuration keyword can then be added to the esmtpd-msa configuration file to disable filtering of mails received by customers.

The attached small patch implements this keyword.

Matthias

Patch against courier-latest in CVS:

--- submit2.C.orig 2007-09-26 02:06:35.635912696 +0200 +++ submit2.C 2007-09-26 02:07:07.053558697 +0200 @@ -965,6 +965,7 @@ SubmitFile *voidp=this;

if (filter_enabled && + !getenv("SKIPMAILFILTER") && run_filter(dfile.c_str(), num_control_files_created, iswhitelisted, &SubmitFile::get_msgid_for_filtering, &voidp))