[Mimedefang] Default SMTP code and dsn for filter_recipient() not standard compliant?

Franz Schwartau franz at electromail.org
Fri Jun 21 05:51:58 EDT 2013


Hi!

After doing some tests I was wondering, why mimedefang returns
554 5.7.1 after a RCPT TO.

These defaults are set in mimedefang.pl:send_filter_answer():

6950     } else {
6951         $code = 554 unless (defined($code) and $code =~ /^5\d\d$/);
6952         $dsn = "5.7.1" unless (defined($dsn) and $dsn =~ /^5\.\d{1,3}\.\d{1,3}$/);

send_filter_answer() handles filter_relay(), filter_sender() and
filter_recipient(), but according to RFC 5231, 4.3.2. Command-Reply
Sequences, 554 isn't listed as an reply for MAIL and RCPT (but for
CONNECTION ESTABLISHMENT):

http://tools.ietf.org/html/rfc5321#section-4.3.2

I'd return 554 5.7.1 for $who eq 'filter_relay' and 550 5.7.1
otherwise.

BTW. there are other places in mimedefang.pl, where 554 is used in
question. I haven't looked at them in detail, yet. Before doing so
I'd like to receive some comments what would be appropriate.

	Best regards
		Franz



More information about the MIMEDefang mailing list