Page 1 of 1

Ldapmapper listening on another ip

Posted: Wed Jan 16, 2008 12:57 pm
by Busterb
I have set ldapmapper to listen on a 192.168 ip address instead of localhost using the /etc/sysconfig/ldapmapper file.

This works great, but now when sending mail from the scalix box through web mail the messages get stuck in the queue with:

Code: Select all

(ldap_init/ldap_bind failed to localhost in map ldapsx: Unkno)


I poked around and found where sendmail is told to find the ldapsx map in /opt/scalix/newconfig/om_sendmail.cf.

Not being the master of sendmail.cf's and also new to Scalix: Where *should* I make the change to point sendmail to the ip instead of localhost?

Or, is there a way to make ldapmapper listen on both localhost and another ip address?

Hopefully this makes sense.

Posted: Wed Jan 16, 2008 2:10 pm
by ls-al
The definition is done in the /usr/share/sendmail-cf/mailer/scalix.m4 file.
But I can not see the use-case of exposing the ldapmapper to the world (or at least the local net).
Can you tell us more about it? Maybe we can find a way without the need to modify a file that can be overwritte without notice during the next upgrade.

cheers,
Dirk

Posted: Wed Jan 16, 2008 3:05 pm
by Busterb
It might not be the best use case but it's mine :)

I have a postfix server that handles all of our domains. All of the aliases are handled there as well as anti-spam. I needed a way to route email that should go to the scalix box to the scalix box. So I am using ldapmapper in a transport map to do that. It works out very well except for sendmail's lookup breaking.

Posted: Thu Jan 17, 2008 3:36 am
by Valerion
Instead of ldapmapper, would it be possible to use the Scalix LDAP daemon instead? That listens on the wildcard interface already.

Posted: Thu Jan 17, 2008 10:06 am
by Busterb
I'm sure that would be possible. But I've actually never had to play with ldap before.

And it looks like ldapmapper does exactly what I need. It looks through all the fields that have email addresses and can return the fqdn of the server that it's on.

It's actually working quite nicely, but as ls-al said, the change I had to make it work will probably revert on the next upgrade.

Is there a way to add that to the /etc/mail/sendmail.mc file? What order do the various .mc files get pulled in on omsendin?