[Mimedefang] Letting emails to postmaster through unaltered
Mark Suter
mark.suter at miju.com.au
Tue Mar 11 08:50:01 EST 2003
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Mimedefang Users,
I've added this to the top of filter_begin():
## RFC 2821 (section 4.5.1) postmaster should be more liberal and rarely blocked.
## For fault diagnosis, I prefer these emails be unfiltered by MIMEDefang
if (my @postmasters = grep { /postmaster@?/i } @Recipients) {
if (@postmasters != @Recipients) {
## Other recipients, resend email to postmasters only
foreach (@postmasters) {
delete_recipient($_);
}
resend_message(@postmasters);
}
}
And this to the top of filter($$$$):
## Accept email only going to postmasters (see filter_begin() comments)
return action_accept() if 0 == scalar grep { not /postmaster@?/i } @Recipients;
Comments?
Yours sincerely,
- -- Mark John Suter <mjs at miju.com.au> | I have often regretted my
Miju Systems http://www.miju.com.au/ | speech, never my silence.
mobile 0411 262 316 gpg key 2C71D63D | Xenocrates (396-314 B.C.)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
Comment: Check Keyservers or http://zwitterion.org/keys/
iD8DBQE+bW1bRYso2ixx1j0RAphSAJ0c+Fm0n2yuJ35rGm63kz9u/cwmPQCfdhiQ
nQqODh+KvPEk+Cs+eiyiusk=
=8A6c
-----END PGP SIGNATURE-----
More information about the MIMEDefang
mailing list