Error in punycode (xn-- domains) handling by chkuser

"Tonix (Antonio Nati)" <[email protected]>
Newsgroups gmane.mail.qmail.chkuser.devel,gmane.mail.vpopmail
Message-ID <[email protected]>
  Actually chkuser handles xn-- domains, but in the wrong way (it does 
not consider more levels of xn-- names, like xn-subdomain.xn--domain.com).

To eliminate any problem, with current version, installations should be 
modified in this way:

Or disable/comment in chkuser_settings.h
     #define CHKUSER_RCPT_FORMAT
     #define CHKUSER_SENDER_FORMAT

or delete/comment within chkuser.c two separates occurrences of
         if (strncmp (domain->s, "xn--", 4) == 0) {
                 if (strstr (&domain->s[4], "--") != NULL)
                         return 0;
         } else {
                 if (strstr (domain->s, "--") != NULL)
                         return 0;
         }


Recompile after change.

Regards,

Tonino


-- 
------------------------------------------------------------
         Inter@zioni            Interazioni di Antonio Nati
    http://www.interazioni.it      [email protected]
------------------------------------------------------------
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.