[Mimedefang] Per Domain Configuration
Robert Covell
rcovell at rolet.com
Wed Aug 14 12:00:01 EDT 2002
$AdminAddress and $AdminName do not seem to be reassigned when I move them
to filter_begin().
Confused now. Is there a better way of routing Spam based on a domain?
When I use stream_by_domain it will resend the messages if they are not in
the same domain. To through a wrench in the equation, we have KAV on the
box which is not being called via MIMEDefang. So the recipients has
domain1.com and domain1.com.KAV, causing stream_by_domain to resend the
message twice.
I basically want to setup a Spam account for each domain so I don't have to
look over every message that comes in. I want the admin of the domain to
look over the messages marked as Spam, not myself.
-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 9:13 AM
To: mimedefang at lists.roaringpenguin.com
Subject: Re: [Mimedefang] Per Domain Configuration
On Tue, 13 Aug 2002, Robert Covell wrote:
> In filter_begin () I placed:
> if (stream_by_domain()) {
> return;
> }
> And then in filter I placed:
> if ($Domain eq "domain1.com") {
> $AdminAddress = 'spamcop at domain1.com';
> $AdminName = "Domain1 Administration";
...
Try putting it all in filter_begin, like this:
sub filter_begin {
if (stream_by_domain()) {
return;
}
if ($Domain eq "domain1.com") {
#...
} elsif ...
}
Then you wrote:
> action_change_header("To", "$AdminAddress");
Changing the "To" header does *NOT* change where the mail goes. That's
controlled by the envelope recipient(s) in the SMTP dialog. You have to use
delete_recipient/add_recipient to redirect mail, and you also need some
mechanism to remember the original recipients (because they may not appear
in the headers.)
Regards,
David.
_______________________________________________
MIMEDefang mailing list
MIMEDefang at lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang
More information about the MIMEDefang
mailing list