[Mimedefang] how does one do *this* w/ MD?
David F. Skoll
dfs at roaringpenguin.com
Wed Mar 5 21:10:01 EST 2003
On Wed, 5 Mar 2003, Douglas J Hunley wrote:
> A client of mine wants to 'test' MD by adding a new sendmail box as
> their 3rd mx record (with this mx having a higher preference than
> the other 2). they want all inbound mail to hit the MD box, and have
> *each mail* copied. one copy of the mail will be forwarded to one of
> the other mx boxes *unchanged*. the second copy goes through the
> whole MD/SA process and gets delivered to a *local spool* for
> review.
That's pretty easy. First, add mailertable and access entries to
relay mail for the domain to the next MX record. Then:
sub filter {
if ($Recipients[0] ne 'secret_local_spool at testbox.mydomain') {
return action_accept();
}
# Normal MIMEDefang filtering here
}
sub filter_multipart {
if ($Recipients[0] ne 'secret_local_spool at testbox.mydomain') {
return action_accept();
}
# Normal MIMEDefang filtering here
}
sub filter_end {
if ($Recipients[0] ne 'secret_local_spool at testbox.mydomain') {
resend_message('secret_local_spool at testbox.mydomain');
return action_accept();
}
# Normal MIMEDefang filtering here
}
--
David.
More information about the MIMEDefang
mailing list