Hi, The authentication used here (in the given config) is SASL: ================== smtpd_sasl_auth_enable = yes ==================
You can configure sasl to authenticate against a ldap server. This way cyrus can simultaneously authenticate against ldap for imap/pop3 logins because cyrus also uses sasl authentication by default. I'm using this method. Follow these steps to let saslauthd authenticate against ldap: *) edit /etc/sysconfig/saslauthd and set: ================== FLAGS="-O /etc/saslauthd.conf" ================== *) Create file /etc/saslauthd.conf with the following contents (update to match your ldap config): ================== ldap_servers: ldap://ldap.yourhostname.net/ ldap_search_base: ou=Accounts,dc=yourdomain,dc=net ldap_auth_method: custom ldap_bind_dn: cn=ldapbinduser,ou=Accounts,dc=yourdomain,dc=net ldap_password: your*ldap*bind*pass ldap_filter: (&(uid=%U) (accountStatus=active)) ================== *) Restart slapd: ================== service ldap restart ================== *) you could test the sasl authentication against ldap: ================== testsaslauthd -u username -p password ================== *) Check /var/log/messages for any errors This http://directory.fedoraproject.org/wiki/Howto:Postfix explains how to use LDAP to setup aliases etc for postfix instead of files (default). Regards, Sunjith PS: Resending because the other one is in queue awaiting approval since I 'replied to all'. On Friday 09 January 2009, Devadas VM wrote: > Where are the ldap query entries in this? > I wana postfix Auth against a ldap server (ie a RHDS/FDS) > > On Fri, Jan 9, 2009 at 1:14 AM, Syam Kumar R. <[email protected]> wrote: > > > This is what I put in my main.cf: > > > > myhostname = orlin.sy.am > > alias_maps = hash:/etc/aliases > > alias_database = hash:/etc/aliases > > myorigin = /etc/mailname > > mydestination = orlin.sy.am, localhost.localdomain, localhost, sy.am > > relayhost = > > mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 > > mailbox_size_limit = 0 > > recipient_delimiter = + > > inet_interfaces = all > > smtpd_sasl_local_domain = > > smtpd_sasl_auth_enable = yes > > smtpd_sasl_security_options = noanonymous > > broken_sasl_auth_clients = yes > > smtpd_recipient_restrictions = > > permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination > > smtpd_tls_auth_only = no > > > > I'm using Ubuntu, so I referred these links: > > https://help.ubuntu.com/community/Postfix > > http://www.howtoforge.com/perfect-server-ubuntu8.04-lts-p5 > > -- > > Syam Kumar R. > > http://www.webmasterview.com/ > > > > > > On Fri, Jan 9, 2009 at 11:14 AM, Devadas VM <[email protected]>wrote: > > > >> Do anyone have clear idea on this? > >> > >> What should the exact enteries with postfix config file main.cf > >> > >> I am using RHDS+Postfix+Cyrus Imap > >> > >> _______________________________________________ > >> Mailinglist mailing list > >> [email protected] > >> http://ilug-cochin.org/mailman/listinfo/mailinglist_ilug-cochin.org > >> > >> > > > > _______________________________________________ > > Mailinglist mailing list > > [email protected] > > http://ilug-cochin.org/mailman/listinfo/mailinglist_ilug-cochin.org > > > > > > _______________________________________________ Mailinglist mailing list [email protected] http://ilug-cochin.org/mailman/listinfo/mailinglist_ilug-cochin.org
