I created this patch so I could use RCPTCHECK with domains listed in
control/rcpthosts. The reason is:
My internal mail server is NOT a qmail server and I wanted to verify
user existence during the SMTP protocol via LDAP.
I would then forward all emails to the internal mail server.
-Eric
--
Eric Hoeve
--- qmail-1.03/qmail-smtpd.old 2005-06-21 14:26:59.000000000 -0500
+++ qmail-1.03/qmail-smtpd.c 2005-06-21 14:27:24.000000000 -0500
@@ -1114,9 +1114,9 @@
if (rcptcheck) {
if (!goodmailaddr()) {
logline(4,"recipient verify, recipient not in goodmailaddr");
- if (addrlocals()) {
+ if (addrallowed()) {
char *s;
- logline(4,"recipient verify, recipient is local");
+ logline(4,"recipient verify, recipient is allowed");
switch (ldaplookup(addr.s, &s)) {
case 1: /* valid */
logline(4,"recipient verify OK");