It's not so trivial but possible to make sendmail working with LDAP
(concerning aliases only).
First, you will have to recompile sendmail in order to include LDAP
fonctionnalities. Second, if you use m4 for Sendmail configuration
(is it possible to use something else without going mad ? ;o) you can
use something like this into your "sendmail.mc" :
Kldapaliases ldapx -b"o=3DMy Org,c=3DFR" -k"mailAlias=3D%s" -h"127.0.0=
.1" -v mailDrop =20
Good luck !
Le Wed, Feb 07, 2001 at 03:07:56PM -0200, Fernando Lozano a =E9crit :
> Hi there!
> Anyone there knows how to configure Sendmail to expand mail aliases usi=
ng LDAP, using Webmib of course?
> I built a module to administer Unix users from LDAP (since you have nss=
_ldap and/or pam_ldap installed). My module checks all things such as get=
ting an unused UID, creating the home dir, etc. The intent was to create =
mail accounts on LDAP so Outlook clients could perform "Find People" quer=
ies, and not having to manager accounts at both /etc files and LDAP.
> My module is working fine (soon to be on SourceForge) but I discovered =
sendmail reads the /etc/aliases file directly, without going throug NSS. =
I am a competent programmer but a newbie on sendmail, and only could get =
it working thanks to webmin.
> Now I need the aliases on LDAP, including mailing lists, in such a way =
my users can find the aliases on "Find People" and I do not have to keep =
/etc and LDAP in sync by hand.
> Any help will be greatly apreciated.
> s, Fernando Lozano
> Forwarded by the Webmin mailing list at webmin-l@...
> To remove yourself from this list, go to
S. Nam=E8che (snameche@...)
Soci=E9t=E9 Virtual Net
Immeuble Gallium T=E9l. +33 2 2321 0630
80, avenue des Buttes de Co=EBsmes Fax. +33 2 9938 1685
35700 Rennes Mob. +33 6 1670 2998
"Artificial intelligence stands no chance against natural stupidity."