Google
  Web www.spinics.net

Re: [389-users] LDAP aliases with Postfix mail server

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


Le 16/03/2011 17:10, laxman singh Mandloi a ÃcritÂ:

Hello,

I have Postfix mail server with out aliases, now need to setup aliases for mail account reside both mail server and fedora-ds on same server. can anybody tell me how to perform this task.

I need to perform this on my server.
To start you need to configure some file or/and the 389DS depending on how you store your aliases.
The easiest way is the flat file /etc/postfix/aliases
and you can configure le directive alias_maps = hash:$config_directory/aliases

A more sophisticated solution is to store aliases in 389DS, in this case you need to extend the scheme 389DS. You can find on the internet for postfix and ldap schemas like below works perfectly :
http://hannibal.solstice.nl/hannibalwiki/doku.php?id=hannibal:62postfix.ldif

Once 389DS configured with this scheme, you can set up aliases for postfix to use 389DS:
alias_maps = hash:$config_directory/aliases, ldap:$config_directory/ldap-aliases.cf
Where ldap-aliases.cf is a configuration file to find the alias in the LDAP server wich may contain the directive below :

server_host =ÂÂ ldap://localhost/Â ## ldap server on the same host
bind =ÂÂÂÂÂÂÂÂÂ no
version =ÂÂÂÂÂÂ 3
timeout =ÂÂÂÂÂÂ 20
scope =ÂÂÂÂÂÂÂÂ sub
search_base =ÂÂ ou=Aliases,dc=example,dc=com
query_filter =Â (mailacceptinggeneralid=%u)
result_attribute = maildrop
result_format = %u

entry "ou = Aliases, dc = example, dc = com" needs to be created on the server and the ldap entries with aliases.

Hope this helps

-- 
Jean-Noel Chardron




--
389 users mailing list
389-users@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/389-users

[Fedora Directory Devel]     [Fedora Announce]     [Fedora Legacy Announce]     [Home]     [Fedora Tools]     [Kernel]     [Fedora Legacy]     [Share Photos]     [Fedora Desktop]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat 9 Bible]     [Red Hat 9]     [Big List of Linux Books]     [Gimp]     [Yosemite News]

Add to Google