OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Subject: case sensitivity/insensitivity with postfix, cyrus, and ldap
From: Andrew Diederich (andrewNETdelivery.com)
Date: Thu Apr 27 2000 - 15:29:43 CDT


Things were going along swimmingly until I tried using an uppercase mailbox
name. At some point in the mail delivery the mailbox get changed from the
correct uppercase name to an incorrect lowercase name.

An odd thing is if I telnet right to port 143 and login to the imap server,
I can login with both uppercase and lowercase mailbox names. Below are some
maillog pieces, an ldap entry, the cyrus bit from master.cf, and heck, why
not a postconf -n. What flags can I add where for more helpful debugging
info?

So, from all this can someone point me to where the case is being chagned,
and (hopefully) how to stop it?

ldap:
uid=AUID123lowercase, dc=NETdelivery
uid=AUID123lowercase
userpassword=password
maildrop=AUID123lowercase
mailacceptinggeneralid=mixed
objectclass=account

maillog:
Apr 27 12:49:07 whitedwarf postfix/smtpd[1238]: connect from
tango.netdelivery[10.2.1.25]
Apr 27 12:49:07 whitedwarf postfix/smtpd[1238]: D7D1D2D7B7:
client=tango.netdelivery[10.2.1.25]
Apr 27 12:49:07 whitedwarf postfix/cleanup[1239]: D7D1D2D7B7:
message-id=<20000427135241.B27290netdelivery.com>
Apr 27 12:49:07 whitedwarf postfix/smtpd[1238]: disconnect from
tango.netdelivery[10.2.1.25]
Apr 27 12:49:07 whitedwarf postfix/qmgr[686]: D7D1D2D7B7:
from=<andrewnetdelivery.com>, size=794 (queue active)
Apr 27 12:49:08 whitedwarf postfix/pipe[1245]: D7D1D2D7B7:
to=<AUID123lowercasewhitedwarf.netdelivery>, relay=cyrus, delay=1,
status=bounced (user unknown. Command output: auid123lowercase: Mailbox does
not exist _ )
Apr 27 12:49:08 whitedwarf postfix/cleanup[1239]: 0B9C22D7C7:
message-id=<20000427184908.0B9C22D7C7whitedwarf.netdelivery>
Apr 27 12:49:08 whitedwarf postfix/qmgr[686]: 0B9C22D7C7: from=<>, size=2118
(queue active)
Apr 27 12:49:08 whitedwarf postfix/smtp[1248]: 0B9C22D7C7:
to=<andrewnetdelivery.com>, relay=berlin.netdelivery.com[216.87.91.70],
delay=0, status=sent (250 OK)

Bits from the returned mail:
[snip]
                        The Postfix program

<AUID123lowercasewhitedwarf.netdelivery>: user unknown. Command output:
    auid123lowercase: Mailbox does not exist _

Checking imap with both upper and lower case user:
[andrewwhitedwarf log]$ telnet localhost imap
Trying 127.0.0.1...
Connected to localhost.netdelivery.
Escape character is '^]'.
* OK whitedwarf.netdelivery Cyrus IMAP4 v1.5.19 server ready
. login AUID123lowercase password
. OK User logged in
. logout
* BYE LOGOUT received
. OK Completed
Connection closed by foreign host.
[andrewwhitedwarf log]$ telnet localhost imap
Trying 127.0.0.1...
Connected to localhost.netdelivery.
Escape character is '^]'.
* OK whitedwarf.netdelivery Cyrus IMAP4 v1.5.19 server ready
. login auid123lowercase password
. OK User logged in
. logout
* BYE LOGOUT received
. OK Completed
Connection closed by foreign host.

[andrewwhitedwarf andrew]$ postconf -n
alias_maps = hash:/etc/aliases, ldap:ldapsource
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
default_destination_concurrency_limit = 10
local_destination_concurrency_limit = 2
mail_owner = postfix
mailbox_transport = cyrus
mydomain = netdelivery
queue_directory = /var/spool/postfix

master.cf:
cyrus unix - n n - - pipe
    flags=R user=cyrus argv=/usr/cyrus/bin/deliver -m ${extension} ${user}

--
    Andrew Diederich     |
 andrewnetdelivery.com  | This email was made
                         | with 100% recycled
 Senior Support Engineer | electrons.
 NETdelivery Corporation |