OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
postfix, cyrus-imapd and ldap limitation

From: Craig White (craigwhiteazapple.com)
Date: Wed May 03 2006 - 08:34:30 CDT


I'm gonna remove the user name which is actually 1 character shorter
than 'username' ...

I have a client with a somewhat long domain name... myhomelenders.net

I am using LDAP and the primary mail address is in an ldap attribute
called 'mail' and that is working fine.

I also use an ldap attribute called 'mailLocalAddress' for storing
aliases and those have been working fine until now.

using raw ldapsearch, it works fine when I...

ldapsearch -x '(mailLocalAddress=usernamemyhomelenders.net)'

but apparently the chop comes after 23 characters because when I send
mail to the usernamemyhomelenders.net...

I get an email rejection for usernamemyhomelenders.n
eporting-MTA: dns; srv1.myhomelenders.net
X-Postfix-Queue-ID: 4C7F8F8CD0
X-Postfix-Sender: rfc822; rootmyhomelenders.net
Arrival-Date: Thu, 27 Apr 2006 18:25:02 -0700 (MST)

Final-Recipient: rfc822; usernamemyhomelenders.n
Original-Recipient: rfc822; usernamemyhomelenders.net
Action: failed
Status: 5.0.0
Diagnostic-Code: X-Postfix; [myhomelenders.n]: Name or service not known

and I get the email in 'user.et' (the balance of the name that remained
from above) which was delivered by cyrus.

So it seems as though the problem comes from postfix.

# grep filter /etc/postfix/main.cf
virtualAliases_query_filter = (|(mail=%s)(mailLocalAddress=%s))

Anybody with suggestions?

# rpm -q postfix
postfix-2.1.5-4.2.RHEL4

Craig