From 1081461d36e567f48bdd6421b4c71f8d23ecfd61 Mon Sep 17 00:00:00 2001 From: Matt Simerson Date: Mon, 19 Nov 2012 00:29:33 -0500 Subject: [PATCH] qmail_deliverable: reject null sender to ezmlm lis --- plugins/qmail_deliverable | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plugins/qmail_deliverable b/plugins/qmail_deliverable index e4e0263..58e8288 100755 --- a/plugins/qmail_deliverable +++ b/plugins/qmail_deliverable @@ -180,6 +180,12 @@ sub rcpt_handler { $self->log(LOGINFO, "error, permission failure"), $k++ if $rv == 0x11; $self->log(LOGINFO, "pass, qmail-command in dot-qmail"),$k++ if $rv == 0x12; $self->log(LOGINFO, "pass, bouncesaying with program"), $k++ if $rv == 0x13; + if ( $rv == 0x14 ) { + my $s = $transaction->sender->address; + return (DENY, "fail, mailing lists do not accept null senders") + if ( ! $s || $s eq '<>'); + $self->log(LOGINFO, "pass, ezmlm list"); $k++; + }; $self->log(LOGINFO, "Temporarily undeliverable: group/world writable"), $k++ if $rv == 0x21; $self->log(LOGINFO, "Temporarily undeliverable: sticky home directory"),$k++