[Mimedefang] Per Domain Configuration
Robert Covell
rcovell at rolet.com
Thu Aug 15 11:10:01 EDT 2002
Ok, it seems that a lot of my problems were related to NOT checking for
viruses via MIMEDefang. I have moved this into the pl file and everything
seems to be working as expected.
I also eliminated the need to replace the settings for $AdminName and
$AdminAddress. When a message is found that contains Spam that does not
have a corresponding $Domain wishing to receive it the message is just
discarded.
One final question about stream_by_domain. When it evaluates the domains
that are with the Spam will it actually resend the email to ALL the
addresses? I mean a lot of Spam has BCC lists that do not actually contain
our domains. If stream_by_domain will resend the Spam out to address that
are not routed via our system that would be bad. Am I understanding how
stream_by_domain works?
Thanks for your help...
-Bob
-----Original Message-----
From: mimedefang-admin at lists.roaringpenguin.com
[mailto:mimedefang-admin at lists.roaringpenguin.com]On Behalf Of David F.
Skoll
Sent: Wednesday, August 14, 2002 3:22 PM
To: mimedefang at lists.roaringpenguin.com
Subject: RE: [Mimedefang] Per Domain Configuration
On Wed, 14 Aug 2002, Robert Covell wrote:
> $AdminAddress and $AdminName do not seem to be reassigned when I move them
> to filter_begin().
Really?? Weird....
MIMEDefang wasn't really designed for this. I'll have to think about it.
> Confused now. Is there a better way of routing Spam based on a domain?
You still have to do stream_by_domain. But then in filter_end, delete
all the original recipients, and then add a new recipient based on the
domain. Something like:
# Record original recipients -- Bcc: recipients MAY BE REVEALED
action_add_header("X-MD-Original-Recipients", join(", ", @Recipients));
# Nuke original recipients
foreach $orig (@Recipients) {
delete_recipient($orig);
}
# Add new recipient
if ($Domain eq "dom1.com") {
add_recipient("spambucket at dom1.com");
} elsif ($Domain eq "dom2.net") {
add_recipient("sloptray at dom2.net");
} # ... etc.
> So the recipients has
> domain1.com and domain1.com.KAV, causing stream_by_domain to resend the
> message twice.
?? Then KAV is seriously broken. Don't use it except via MIMEDefang.
Regards,
David.
_______________________________________________
MIMEDefang mailing list
MIMEDefang at lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang
More information about the MIMEDefang
mailing list