[Mimedefang] exempt user problem

alan premselaar alien at 12inch.com
Tue May 2 21:49:23 EDT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Luke Worthy wrote:
> Sorry about my previous post, I now realize that we need to keep some
> other features of this filter (it keeps a copy of everyones email as
> well as the exemption thinggy).
> 
> So below is my original post, and the listing of the filter code.
> ============================
> To: mimedefang at lists.roaringpenguin.com
> 
> Recently I have started with a new company, and they have deployed
> MIMEDefang on a few different sites, with a custom filter, that has
> exemption lists.  Unfortunately the custom exemption list only works
> sometimes.  IANAPP (I Am Not A Perl Programmer), and would really like
> some help on either how to fix this current filter.
> 
> Here are the logs from me sending a "Movie.wmv" to an exempt user.
> 
> May  1 12:05:45 mail sendmail[20621]: k412XBf0020621:
> from=<l.worthy at netspan.com.au>, size=3898524, class=0, nrcpts=1,
> msgid=<44557366.4080300 at netspan.com.au>, proto=ESMTP, daemon=MTA,
> relay=cpe-61-9-140-241.vic.bigpond.net.au [61.9.140.241]
> May  1 12:05:45 mail mimedefang.pl[9050]: MDLOG,k412XBf0020621,exempt
> user,,0,<l.worthy at netspan.com.au>,<netspan at domainname.com.au>,testing
> May  1 12:05:45 mail mimedefang.pl[9050]: MDLOG,k412XBf0020621,exempt
> user,,0,<l.worthy at netspan.com.au>,<netspan at domainname.com.au>,testing
> May  1 12:05:45 mail mimedefang.pl[9050]:
> MDLOG,k412XBf0020621,bad_filename,Movie.wmv,video/x-ms-wmv,<l.worthy at netspan.com.au>,<netspan at domainname.com.au>,testing
> 
> May  1 12:05:45 mail mimedefang.pl[9050]:
> MDLOG,k412XBf0020621,mail_in,,,<l.worthy at netspan.com.au>,<netspan at domainname.com.au>,testing
> 
> May  1 12:05:45 mail mimedefang.pl[9050]: filter: k412XBf0020621:
> append_text_boilerplate=1 drop_with_warning=1
> May  1 12:05:45 mail sendmail[20642]: k412XBf0020621:
> to=<netspan at watterssa.com.au>, delay=00:02:33, xdelay=00:00:00,
> mailer=local, pri=61316, dsn=2.0.0, stat=Sent
> 
> 
> It kinda looks like it's going through twice.
> 
> Luke
> 
(filter snipped)

Luke,

 After looking at your filter I can tell you what's going on.

firstly, it looks like it's going through twice because you're using
stream_by_domain / stream_by_recipient functions which actually
re-insert the message on either a per-domain or per-recipient basis (as
appropriate)  so that is normal.

secondly, the reason that you're getting inconsistant results from this
is because you're trying to save exemption state information in a global
variable.  This won't work because the way MIMEDefang works, different
slaves may process different parts of the same message.  you should read
the man pages for MIMEDefang and pay particular attention to the section
that covers SAVING STATE INFORMATION.

hope this help.

Alan
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEWAwiE2gsBSKjZHQRApzqAJ43x1pIhb6K0KnJQNmnr6eZFlKMswCeNjGi
/eDqOL7dZGm04NIRlAnCHsM=
=Uz7/
-----END PGP SIGNATURE-----



More information about the MIMEDefang mailing list