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 <mko...@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-us...@lists.fedoraproject.org if nobody in 
> this list has a good answer.
> 

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail

-- 
Manage your subscription for the Freeipa-users mailing list:
https://www.redhat.com/mailman/listinfo/freeipa-users
Go to http://freeipa.org for more info on the project

Reply via email to