[Freeipa-users] sendmail.schema

Rudolf Gabler rug at usm.lmu.de
Wed Jul 15 08:22:47 UTC 2015


Hi Martin,

thank you for your advice. Now I solved this myself with the following procedure:

I followed the page https://www.madboa.com/geek/ldap-aliases/ <https://www.madboa.com/geek/ldap-aliases/>
in a minimal invasive schema update for the freeipa directory server:

ldapmodify -x -D "cn=Directory Manager" -W
Enter LDAP Password:
dn: cn=schema
changetype: modify
add: attributeTypes
attributeTypes: (1.3.6.1.4.1.6152.945.2.1 NAME 'mailingListName' SUP name )

and

ldapmodify -x -D "cn=Directory Manager" -W
Enter LDAP Password:
dn: cn=schema
changetype: modify
add: objectclasses
objectClasses: ( 1.3.6.1.4.1.6152.945.1.1 NAME 'mailingListPerson' SUP inetOrgPerson STRUCTURAL MAY mailingListName )

After that I created a tree for our mail-aliases:

ldapadd -x -D "cn=Directory Manager" -W
dn: cn=mail-aliases,cn=accounts,dc=example,dc=com
objectClass: top
objectClass: inetOrgPerson
objectClass: mailingListPerson
cn: mail-aliases
sn: mail-aliases


and now I’m able to feed this tree with entries like:

dn: cn=FaxMaster,cn=mail-aliases,cn=accounts,dc=example,dc=com
objectClass: top
objectClass: inetOrgPerson
objectClass: mailingListPerson
mail: FaxMaster
mailingListName: nirvana
cn: FaxMaster
sn: FaxMaster


which import into our sendmail.mc configuration like:
...
define(`ALIAS_FILE', `/etc/aliases,ldap: -h freeipa.example.com -b”cn=mail-aliases,cn=accounts,dc=example,dc=com" -v mailinglistname -k(&(objectClass=mailingListPerson)(mail=%0))')dnl
…

Regards,

Rudi Gabler



> On 10 Jul 2015, at 08:43, Martin Kosek <mkosek at redhat.com> wrote:
> 
> On 07/09/2015 11:09 AM, Rudolf Gabler wrote:
>> Hi,
>> 
>> we are dealing with a huge number of mail aliases which are not purely user aliases but distribution-lists, actions on distribution-list and so on (mailman).
>> There was a former sendmail.schema in fedora-ds (we are using fds 21 at the moment), which is gone (at least I didn’t find it). Is there now a different approach for freeipa to deal with this problem.
>> 
>> Regards,
>> 
>> Rudi Gabler
> 
> I would recommend asking on 389-users at lists.fedoraproject.org if nobody in this list has a good answer.
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/freeipa-users/attachments/20150715/00dc207e/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 495 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://listman.redhat.com/archives/freeipa-users/attachments/20150715/00dc207e/attachment.sig>


More information about the Freeipa-users mailing list