[Mimedefang] Merging MXs, but Excluding domains

Jan Pieter Cornet johnpc at xs4all.nl
Mon Nov 21 16:29:08 EST 2005


On Mon, Nov 21, 2005 at 01:52:20PM -0700, Ashley M. Kirchner wrote:
>    Our second MX decided to took a dive this morning and I'm having to 
> merge the domains from that one onto the first MX.  The problem is, what 
> those MXs did.  MX1 has a full implementation of MD+SA while MX2 was 
> used for those clients who didn't want their e-mails filtered through 
> MD.  How can I merge the two MXs into one, while still keeping the 
> ability to allow email for certain domains to pass right through (no 
> filtering) while leaving the rest alone?  I've been scouring the 
> archives, trying to find the easiest solution, but I thought I'd post 
> here as well.  Maybe someone will find the correct solution faster than 
> I can through the archives...

Scan the mimedefang-filter manpage for "stream_by_domain", which
contains roughly the code you're looking for.

There is no way to do this outside mimedefang, so you'll have to
short-circuit all mimedefang routines for the second set of domains.

You might want to rethink not having virus filters for the second
domain, though, especially with a new pretty big Sober outbreak
happening right now.

-- 
#!perl -wpl # mmfppfmpmmpp mmpffm <pmmppfmfpppppfmmmf at fpffmm4mmmpmfpmf.ppppmf>
$p=3-2*/[^\W\dmpf_]/i;s.[a-z]{$p}.vec($f=join('',$p-1?chr(sub{$_[0]*9+$_[1]*3+
$_[2]}->(map{/p|f/i+/f/i}split//,$&)+97):qw(m p f)[map{((ord$&)%32-1)/$_%3}(9,
3,1)]),5,1)='`'lt$&;$f.eig;                                # Jan-Pieter Cornet



More information about the MIMEDefang mailing list