Re: Underscore in Hostname

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2006-07-26 at 21:15 +0000, jimbrett099@xxxxxxxxxxx wrote:
> I know that it's technically not allowed by various RFCs but can
> cyrus handle underscores in a host name and, if so, how?

source, imap/lmtpengine.c, parseaddr()
There are two instances there of checking the syntax of a domain, once
under "/* at-domain-list */" and once under "/* @domain */".

Both look like:
 while (isalnum((int) *p) || *p == '.' || *p == '-') p++;
and for you need to look like:
 while (isalnum((int) *p) || *p == '.' || *p == '-' || *p == '_') p++;

That will get it accepted, but there may be other checks elsewhere in
the code.  I haven't looked, but the above should get you started.

I'm assuming that for such a large and important customer, you are able
and willing to document and maintain local patches.
-- 
"Everything has three factors: politics, money, and the right way to do it.
 In that order."  -- Gary Donahue
----
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html

[Index of Archives]     [Cyrus SASL]     [Squirrel Mail]     [Asterisk PBX]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [KDE]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux