Re: LDAP attribute format

Simon Horman <[email protected]>
Newsgroups gmane.mail.perdition.user
Message-ID <[email protected]>
On Sun, Dec 06, 2009 at 07:15:48PM +0000, Jim Tyrrell wrote:
> Hi,
> 
> I have just been looking at using perdition as part of a mail migration 
> between multiple POP3 servers and have it working well with LDAP.
> 
> At the moment I have it configured to lookup against the domain part of 
> the user login and have temporarily added the following attribute to the 
> domain object in LDAP:
> 
> mailhost=192.168.10.81
> 
> That works, but I would like to use an existing attribute that already 
> exists and wouldnt require manually editing the LDAP object everytime a 
> domain was updated.  The problem is this attribute is in the format of:
> 
> mailtransport=nexthop:[mda-clusterX.domain.com]
> 
> So my query is returning "nexthop:[mdaX.domain.com]".  Is there anyway 
> to get ldap/perdition to retrieve the part of the result thats in the [] 
> brackets?  If I could use that part of the LDAP attribute I would only 
> need to add an entry to the hosts file so that it would use the POP3 
> server that corresponds with the Mail Delivery server in that attribute?
> 
> If theres a trick to accimplish that it would save me alot of work. :)

Hi Jim,

I don't believe that is possible to using a configuration "trick".
Though I would be more than happy to hear details of how you would see
such a thing working - it sounds like a feature worth adding.

Alternatively it would be a fairly trivial modification ("hack" :-) to
the source code just to handle the case you have.
______________________________________________
Perdition-users mailing list
[email protected]
http://lists.vergenet.net/listinfo/perdition-users
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.