[Mimedefang] Workaround for broken postmaster messages?
David F. Skoll
dfs at roaringpenguin.com
Thu Nov 14 18:51:01 EST 2002
On Thu, 14 Nov 2002, Kris Deugau wrote:
> > One option is to configure your Sendmail to accept unqualified senders,
> > but have filter_sender check for the special cases "<>" and "-", and
> > reject anything else that is unqualified.
> How would that work in filter_sender? How would that affect use of the
> access db?
It shouldn't affect access_db. Something like this might work:
sub filter_sender {
my($sender, $ip, $hostname, $helo) = @_;
# Accept special cases
return (1, "OK") if ($sender eq "<>" or
$sender eq "<->" or
$sender eq "-");
# Accept addresses with something at something
return (1, "OK") if ($sender =~ /^.+\@.+$/);
# Unqualified names are bad
return (0, "$sender... unqualified sender addresses not accepted.");
}
You have to give mimedefang the "-s" flag on startup.
Regards,
David.
More information about the MIMEDefang
mailing list