Re: ISPman + CourierIMAP + maildrop + Postfix (Jim)
"Marco Carcano" <mcarcano-IvpIpsuCVxdWk0Htik3J/[email protected]>
| Newsgroups | gmane.comp.isp.ispman.user |
|---|---|
| Message-ID | <000a01c4edfc$8b456960$0400000a@pc01> |
> Date: Tue, 28 Dec 2004 22:29:41 -0500 > From: Jim <[email protected]> > Subject: Re: [Ispman-users] ISPman + CourierIMAP + maildrop + Postfix > Reply-To: [email protected] I did some other changes: now can telnet to port 25 and give these commands: 220 virgilio.draksoft.com ESMTP Postfix (2.1.5) HELO draksoft.com 250 virgilio.draksoft.com MAIL FROM: <myaddress-2FquxfUU9rBemZaLWFSFaFaTQe2KTcn/@public.gmane.org> after hit return the client does not receive a response from the server. after giving a look to /var/log/maillog I found these entries: Dec 29 23:50:46 virgilio postfix/trivial-rewrite[16162]: warning: dict_ldap_connect: Unable to bind to server ldap://localhost:389 as cn=Directory Administrator,o=ispman: 2 (Protocol error) Dec 29 23:50:46 virgilio postfix/trivial-rewrite[16162]: fatal: ldap:ldapvirtual(0,100): table lookup problem Dec 29 23:50:47 virgilio postfix/smtpd[16148]: warning: premature end-of-input on private/rewrite socket while reading input attribute name Dec 29 23:50:47 virgilio postfix/smtpd[16148]: warning: problem talking to service rewrite: Success Dec 29 23:50:47 virgilio postfix/master[16120]: warning: process /usr/libexec/postfix/trivial-rewrite pid 16162 exit status 1 Dec 29 23:50:47 virgilio postfix/master[16120]: warning: /usr/libexec/postfix/trivial-rewrite: bad command startup -- throttling I noticed an error on trivial-rewrite to connect to ldap server: this (I think) is the cause of the bad rewriting shown in my previous post but now my question is why postfix can't talk with ldap server? I have been able to setup ispman with apache2,pureFTPd,courier-imap and booth these services can talk with ldap. There are no firewall enabled and SELinux is disabled. My distibution is Fedora Core 3 Notice that the contents of /var/log/maillog previously posted were caused by setting "ldapvirtual_bind = no" in main.cf This is the content of my main.cf file - i downloaded it from sample at http://www.atix.com.br/~alexb/ispserver/main.cf and modified only a few values to suit my needs (LDAP entries are at the bottom of it) queue_directory = /var/spool/postfix command_directory = /usr/sbin daemon_directory = /usr/libexec/postfix mail_owner = postfix default_privs = nobody myhostname = virgilio.draksoft.com mydomain = draksoft.com myorigin = $mydomain inet_interfaces = all mydestination = $mydomain, $myhostname, localhost.$mydomain, /etc/postfix/destination, hash:/etc/postfix/destination_domains unknown_local_recipient_reject_code = 450 mynetworks = /etc/postfix/mynetworks relay_domains = $mydomain, $myhostname, localhost.$mydomain, /etc/postfix/destination, hash:/etc/postfix/relay_domains canonical_maps = hash:/etc/postfix/canonical virtual_maps = ldap:ldapvirtual mailbox_transport = maildrop smtpd_banner = $myhostname ESMTP $mail_name ($mail_version) debug_peer_level = 2 debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin xxgdb $daemon_directory/$process_name $process_id & sleep 5 sendmail_path = /usr/sbin/sendmail.postfix newaliases_path = /usr/bin/newaliases.postfix mailq_path = /usr/bin/mailq.postfix setgid_group = postdrop manpage_directory = /usr/share/man sample_directory = /etc/postfix/samples readme_directory = /etc/postfix/README_FILES alias_database = hash:/etc/postfix/aliases alias_maps = hash:/etc/postfix/aliases smtpd_recipient_restrictions = permit_mynetworks,reject_non_fqdn_recipient, check_client_access hash:/etc/postfix/pop-before-smtp, check_relay_domains # Other configuration (ISPman-sample) default_transport = smtp relocated_maps = hash:/etc/postfix/relocated smtpd_sender_restrictions = hash:/etc/postfix/access transport_maps = hash:/etc/postfix/transport # LDAP entrys ldapvirtual_server_host = localhost ldapvirtual_server_port = 389 ldapvirtual_bind_dn = cn=Directory Administrator,o=ispman ldapvirtual_bind_pw = mysecret ldapvirtual_bind = yes ldapvirtual_timeout = 5 ldapvirtual_search_base = o=ispman ldapvirtual_query_filter = (|(mailLocalAddress=%s)(mailAlias=%s)) ldapvirtual_result_attribute = mailRoutingAddress,mailForwardingAddress ldapvirtual_lookup_wildcards = no Thanks Marco Carcano --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.824 / Virus Database: 562 - Release Date: 29/12/2004 ------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt