[Mimedefang] Sendmail logging bug ?

Martin Blapp mbr at freebsd.org
Sat Jul 25 17:59:11 EDT 2009


Hi all, hi David,

Is it only me or has Sendmail 8.14.3 a bug in store-and-forward logging ?
If a recipient is graylisted, I get this error with vanilla sendmail:

Jul 18 19:32:06 vm1 sendmail[23161]: n6IHW3ae023145: to=<test at xxx.ch>,
delay=00:00:02, xdelay=00:00:02, mailer=esmtp, pri=30020, relay=mx.xxx.ch.
[1.1.1.1], dsn=4.3.0, stat=Deferred: Name server: mx.xxx.ch.: host name
lookup failure

But infact, this connection has been graylisted. After removing the part
below,
I get the real masked error.

Jul 18 20:38:21 vm1 sendmail[86970]: n6IIcIFe086960: to=<test at xxx.ch>,
delay=00:00:02, xdelay=00:00:02, mailer=esmtp, pri=30020, relay=mx.xxx.ch.
[1.1.1.1], dsn=4.3.0, stat=Deferred: 451 4.3.0 Graylisted for 400 - 600
seconds, please try again later.


--- sendmail/deliver.c  2009-07-18 20:17:19.000000000 +0200
+++ sendmail/deliver.c  2009-07-18 20:16:14.000000000 +0200
@@ -4017,6 +4017,11 @@

                (void) sm_strlcpy(bp, exmsg + 1, SPACELEFT(buf, bp));
                bp += strlen(bp);
+#if NAMED_BIND
+               if (h_errno == TRY_AGAIN)
+                       statmsg = sm_errstring(h_errno + E_DNSBASE);
+               else
+#endif /* NAMED_BIND */
                {
                        if (errnum != 0)
                                statmsg = sm_errstring(errnum);





More information about the MIMEDefang mailing list