Ldapmapper listening on another ip

Discuss the Scalix Server software

Moderators: ScalixSupport, admin

Busterb

Ldapmapper listening on another ip

Postby Busterb » Wed Jan 16, 2008 12:57 pm

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.

ls-al
Scalix Star
Scalix Star
Posts: 510
Joined: Tue Jun 29, 2004 8:28 am
Location: Leipzig, Germany
Contact:

Postby ls-al » Wed Jan 16, 2008 2:10 pm

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

Busterb

Postby Busterb » Wed Jan 16, 2008 3:05 pm

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.

Valerion
Scalix Star
Scalix Star
Posts: 2730
Joined: Thu Feb 26, 2004 7:40 am
Location: Johannesburg, South Africa
Contact:

Postby Valerion » Thu Jan 17, 2008 3:36 am

Instead of ldapmapper, would it be possible to use the Scalix LDAP daemon instead? That listens on the wildcard interface already.

Busterb

Postby Busterb » Thu Jan 17, 2008 10:06 am

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?


Return to “Scalix Server”



Who is online

Users browsing this forum: No registered users and 3 guests

cron