Joe Laffey writes:

On Mon, 29 Sep 2003, Sam Varshavchik wrote:

Joe Laffey writes:

> I noticed that mail with a bad From: addresses (NXDOMAIN - yes I have
> djbdns patched to avoid the Verislime garbage) gets rejected with a 4xx
> code before RBL checks that would give it a 5xx code. Any way to configure
> this?

NXDOMAIN results in a 5xx. TEMPFAIL results in a 4xx.

OK. Then let me rephrase the question:

 I noticed that mail with a bad From: addresses (TEMPFAIL) gets rejected
with a 4xx code before RBL checks that would give it a 5xx code. Any way
to configure this in order to assure the RBL check happens first?

Try the following small patch.



Attachment: pgp00000.pgp
Description: PGP signature

diff -U3 -r1.34 submit.C
--- courier/submit.C    29 Sep 2003 03:52:05 -0000      1.34
+++ courier/submit.C    30 Sep 2003 04:43:13 -0000
@@ -673,6 +673,13 @@
        if (!q || !*q || *q == '0')
                docheckdomain=0;
 
+       {
+       const char *p=getenv("BLOCK");
+
+               if (p && *p)
+                       docheckdomain=0; /* Will be rejected later. */
+       }
+
        if (!docheckdomain)     return (0);
 
        if ((sender=strrchr(sender, '@')) == 0) return (0);

Attachment: pgp00001.pgp
Description: PGP signature

Reply via email to