How do I fix this: lmtp appears to be case sensitive

Mike Brodbelt m.brodbelt at acu.ac.uk
Fri Oct 29 11:04:58 EDT 2004


Rob Tanner wrote:
> Yep.  It's in the manpage and i plain just missed it.  That works for 
> me because all out names are lower-case.  But I though that both the 
> recipient and hostname werte supposed to be case insensitive (i.e., 
> rtanner at linfield.edu and RTanner at linfield.edu are the same address). 
> Am I wrong about that?

Yes, I think you are. I believe the appropriate bit from RFC 2821 is this:-

======================================================================
   Verbs and argument values (e.g., "TO:" or "to:" in the RCPT command
   and extension name keywords) are not case sensitive, with the sole
   exception in this specification of a mailbox local-part (SMTP
   Extensions may explicitly specify case-sensitive elements).  That is,
   a command verb, an argument value other than a mailbox local-part,
   and free form text MAY be encoded in upper case, lower case, or any
   mixture of upper and lower case with no impact on its meaning.  This
   is NOT true of a mailbox local-part.  The local-part of a mailbox
   MUST BE treated as case sensitive.  Therefore, SMTP implementations
   MUST take care to preserve the case of mailbox local-parts.  Mailbox
   domains are not case sensitive.  In particular, for some hosts the
   user "smith" is different from the user "Smith".  However, exploiting
   the case sensitivity of mailbox local-parts impedes interoperability
   and is discouraged.
======================================================================

So systems are permitted to use case sensitive usernames, and as such,
case must be preserved in SMTP and LMTP transactions.

In practice of course this is rarely the case - usernames are almost
always case insensitive, so it rarely causes trouble.

HTH,

Mike.
---
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




More information about the Info-cyrus mailing list