I haven't paid much attention lately on the list so I don't know if this has been submitted already or not. lmtp_downcase_rcpt doesn't downcase the domain when it downcases the mail user name. If you are using the virtual domain stuff this means that if your domain is lowercase and the user gets sent a mail message with the domain mixed or all upper it'll bounce with user unknown.

Attached is a patch to lmtpengine.c that addresses this issue.

Eric
--- lmtpengine.c.orig   2003-06-25 13:57:45.000000000 -0500
+++ lmtpengine.c        2003-10-28 07:30:55.000000000 -0600
@@ -784,13 +784,23 @@
                if(*addr == '\\') addr++;
                *dest++ = TOLOWER(*addr++);
            }
-       }
-
-       /* Now finish the remainder of the localpart */
-       while ((config_virtdomains || *addr != '@') && *addr != '>') {
-           if (*addr == '\\') addr++;
-           *dest++ = *addr++;
-       }
+           if (*addr == '+') {
+             while(*addr != '@' && *addr != '>') {
+               if(*addr == '\\') addr++;
+               *dest++ = *addr++;
+             }
+           }
+           while ((config_virtdomains || *addr != '@') && *addr != '>') {
+               if(*addr == '\\') addr++;
+               *dest++ = TOLOWER(*addr++);
+           }
+       } else {
+         /* Now finish the remainder of the localpart */
+         while ((config_virtdomains || *addr != '@') && *addr != '>') {
+             if (*addr == '\\') addr++;
+             *dest++ = *addr++;
+         }
+       }
     }
     *dest = '\0';
        

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature



Reply via email to