hi,
I had configured postfix for my mail server which is working fine. I had configured openldap on the same server and added many entries in that. It is also working fine.when i use ldapsearch i can able to view the entries etc. The users which i had created in ldap is already there in OS for postfix. I had integrated openldap with postfix, to fetch the mail infromation from openldap. like mailid,mailQuota,mailbox location etc. But when i send mail to user it is fetching from openldap at all. It is strainght away delivering to mailbox.plz help me with this issue
This is my main.cf file parameters.
[root@master ~]# postconf -n alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases, *ldap:aliases *command_directory = /usr/sbin config_directory = /etc/postfix daemon_directory = /usr/libexec/postfix debug_peer_level = 2 html_directory = no inet_interfaces = all mail_owner = postfix mailq_path = /usr/bin/mailq.postfix manpage_directory = /usr/share/man mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain mydomain = panafnet.com myhostname = master.panafnet.com mynetworks = 192.168.117.0/24, 127.0.0.0/8 myorigin = $mydomain newaliases_path = /usr/bin/newaliases.postfix queue_directory = /var/spool/postfix readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES relay_domains = $mydestination relayhost = $mydomain sample_directory = /usr/share/doc/postfix-2.3.3/samples sendmail_path = /usr/sbin/sendmail.postfix setgid_group = postdrop unknown_local_recipient_reject_code = 550 *aliases_server_host = localhost aliases_server_port = 389 aliases_search_base = dc=panafnet,dc=com aliases_scope = sub aliases_bind = no aliases_query_filter = (&(objectClass=qmailUser)(mail=%s)) aliases_result_attribute = mailMessageStore aliases_timeout = 10 aliases_version = 3*
Aravind Arjunan wrote:
hi,
I had configured postfix for my mail server which is working fine. I had configured openldap on the same server and added many entries in that. It is also working fine.when i use ldapsearch i can able to view the entries etc. The users which i had created in ldap is already there in OS for postfix. I had integrated openldap with postfix, to fetch the mail infromation from openldap. like mailid,mailQuota,mailbox location etc. But when i send mail to user it is fetching from openldap at all. It is strainght away delivering to mailbox.plz help me with this issue
This is my main.cf http://main.cf file parameters.
[root@master ~]# postconf -n alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases, *ldap:aliases *command_directory = /usr/sbin config_directory = /etc/postfix daemon_directory = /usr/libexec/postfix debug_peer_level = 2 html_directory = no inet_interfaces = all mail_owner = postfix mailq_path = /usr/bin/mailq.postfix manpage_directory = /usr/share/man mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain mydomain = panafnet.com http://panafnet.com myhostname = master.panafnet.com http://master.panafnet.com mynetworks = 192.168.117.0/24 http://192.168.117.0/24, 127.0.0.0/8 http://127.0.0.0/8 myorigin = $mydomain newaliases_path = /usr/bin/newaliases.postfix queue_directory = /var/spool/postfix readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES relay_domains = $mydestination relayhost = $mydomain sample_directory = /usr/share/doc/postfix-2.3.3/samples sendmail_path = /usr/sbin/sendmail.postfix setgid_group = postdrop unknown_local_recipient_reject_code = 550 *aliases_server_host = localhost aliases_server_port = 389 aliases_search_base = dc=panafnet,dc=com aliases_scope = sub aliases_bind = no aliases_query_filter = (&(objectClass=qmailUser)(mail=%s)) aliases_result_attribute = mailMessageStore aliases_timeout = 10 aliases_version = 3*
IIRC, this way of doing LDAP lookups is obsolete. You need to move your LDAP configuration to a separate file. Refer to http://www.postfix.org/LDAP_README.html for how it should be done.
When you have set everything up correctly, test your LDAP lookup with "postmap -q". How to do this is also explained in LDAP_README.
hi ,
I have followed the document which you had send. I had created a separated file called aliases in /etc/postfix/ I mentioned my ldap details in that file. I need to know whether i need to create file called aliases or aliases.cf? Then i executed the command postmap /etc/postfix/aliases
In the document which you given, they have mentioned to complie the postfix. I have not installed postfix or ldap with source code.I have installed rpm alone.
I need to know, i have all my users information in ldap database. Wheather i need to create users in OS level also .Since am having nearly 20000 users. But if we create users in OS then there is no need for ldap. Since this is the critical issue, and we are in the implementation of a project. plz some how help us with this issue
On 03/07/2008, Bjørn Ruberg bjorn@ruberg.no wrote:
Aravind Arjunan wrote:
hi, I had configured postfix for my mail server which is working fine. I had configured openldap on the same server and added many entries in that. It is also working fine.when i use ldapsearch i can able to view the entries etc. The users which i had created in ldap is already there in OS for postfix. I had integrated openldap with postfix, to fetch the mail infromation from openldap. like mailid,mailQuota,mailbox location etc. But when i send mail to user it is fetching from openldap at all. It is strainght away delivering to mailbox.plz help me with this issue This is my main.cf http://main.cf file parameters. [root@master ~]# postconf -n alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases, *ldap:aliases *command_directory = /usr/sbin config_directory = /etc/postfix daemon_directory = /usr/libexec/postfix debug_peer_level = 2 html_directory = no inet_interfaces = all mail_owner = postfix mailq_path = /usr/bin/mailq.postfix manpage_directory = /usr/share/man mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain mydomain = panafnet.com http://panafnet.com myhostname = master.panafnet.com http://master.panafnet.com mynetworks = 192.168.117.0/24 http://192.168.117.0/24, 127.0.0.0/8 < http://127.0.0.0/8%3E myorigin = $mydomain newaliases_path = /usr/bin/newaliases.postfix queue_directory = /var/spool/postfix readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES relay_domains = $mydestination relayhost = $mydomain sample_directory = /usr/share/doc/postfix-2.3.3/samples sendmail_path = /usr/sbin/sendmail.postfix setgid_group = postdrop unknown_local_recipient_reject_code = 550 *aliases_server_host = localhost aliases_server_port = 389 aliases_search_base = dc=panafnet,dc=com aliases_scope = sub aliases_bind = no aliases_query_filter = (&(objectClass=qmailUser)(mail=%s)) aliases_result_attribute = mailMessageStore aliases_timeout = 10 aliases_version = 3*
IIRC, this way of doing LDAP lookups is obsolete. You need to move your LDAP configuration to a separate file. Refer to http://www.postfix.org/LDAP_README.html for how it should be done.
When you have set everything up correctly, test your LDAP lookup with "postmap -q". How to do this is also explained in LDAP_README.
-- Bjørn
---------- Forwarded message ---------- From: Aravind Arjunan aravind.arjunan@gmail.com Date: 4 Jul 2008 09:15 Subject: Re: Integrate openldap with postfix To: Bjørn Ruberg bjorn@ruberg.no, openldap-technical@openldap.org Cc: s.harinayanan@hcl.in, haari_seshu@yahoo.com
hi ,
I have followed the document which you had send. I had created a separated file called aliases in /etc/postfix/ I mentioned my ldap details in that file. I need to know whether i need to create file called aliases or aliases.cf? Then i executed the command postmap /etc/postfix/aliases
In the document which you given, they have mentioned to complie the postfix. I have not installed postfix or ldap with source code.I have installed rpm alone.
I need to know, i have all my users information in ldap database. Wheather i need to create users in OS level also .Since am having nearly 20000 users. But if we create users in OS then there is no need for ldap. Since this is the critical issue, and we are in the implementation of a project. plz some how help us with this issue
On 03/07/2008, Bjørn Ruberg bjorn@ruberg.no wrote:
Aravind Arjunan wrote:
hi, I had configured postfix for my mail server which is working fine. I had configured openldap on the same server and added many entries in that. It is also working fine.when i use ldapsearch i can able to view the entries etc. The users which i had created in ldap is already there in OS for postfix. I had integrated openldap with postfix, to fetch the mail infromation from openldap. like mailid,mailQuota,mailbox location etc. But when i send mail to user it is fetching from openldap at all. It is strainght away delivering to mailbox.plz help me with this issue This is my main.cf http://main.cf file parameters. [root@master ~]# postconf -n alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases, *ldap:aliases *command_directory = /usr/sbin config_directory = /etc/postfix daemon_directory = /usr/libexec/postfix debug_peer_level = 2 html_directory = no inet_interfaces = all mail_owner = postfix mailq_path = /usr/bin/mailq.postfix manpage_directory = /usr/share/man mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain mydomain = panafnet.com http://panafnet.com myhostname = master.panafnet.com http://master.panafnet.com mynetworks = 192.168.117.0/24 http://192.168.117.0/24, 127.0.0.0/8 < http://127.0.0.0/8%3E myorigin = $mydomain newaliases_path = /usr/bin/newaliases.postfix queue_directory = /var/spool/postfix readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES relay_domains = $mydestination relayhost = $mydomain sample_directory = /usr/share/doc/postfix-2.3.3/samples sendmail_path = /usr/sbin/sendmail.postfix setgid_group = postdrop unknown_local_recipient_reject_code = 550 *aliases_server_host = localhost aliases_server_port = 389 aliases_search_base = dc=panafnet,dc=com aliases_scope = sub aliases_bind = no aliases_query_filter = (&(objectClass=qmailUser)(mail=%s)) aliases_result_attribute = mailMessageStore aliases_timeout = 10 aliases_version = 3*
IIRC, this way of doing LDAP lookups is obsolete. You need to move your LDAP configuration to a separate file. Refer to http://www.postfix.org/LDAP_README.html for how it should be done.
When you have set everything up correctly, test your LDAP lookup with "postmap -q". How to do this is also explained in LDAP_README.
-- Bjørn
Do not top post. See http://www.greenend.org.uk/rjk/2000/06/14/quoting.html for further information on the issue.
Aravind Arjunan wrote:
hi ,
I have followed the document which you had send. I had created a separated file called aliases in /etc/postfix/ I mentioned my ldap details in that file. I need to know whether i need to create file called aliases or aliases.cf?
You can call it almost whatever you want. as long as you refer to the correct name in main.cf.
Then i executed the command postmap /etc/postfix/aliases
In the document which you given, they have mentioned to complie the postfix. I have not installed postfix or ldap with source code.I have installed rpm alone.
You do not need to do *everything* mentioned in the README. It is for your reference. However, you need to know whether your Postfix supports LDAP lookups. The command "postconf -m" will list the supported lookup types in your installation. If "ldap" is not in that list, you need to compile it yourself or get yourself another RPM.
I need to know, i have all my users information in ldap database. Wheather i need to create users in OS level also .Since am having nearly 20000 users. But if we create users in OS then there is no need for ldap.
It should work just fine using LDAP.
Since this is the critical issue, and we are in the implementation of a project. plz some how help us with this issue
If this is indeed critical for you or your organization, then it's probably time for some Postfix training. How to solve Postfix issues is not for this list to discuss. I suggest you read the Postfix documentation, including Postfix' mailing list archives.
openldap-technical@openldap.org