Re: Anyone with working postfix smtp-auth?
On Mon, 2002-12-09 at 21:07, Alexey Chetroi wrote:
> On Sun, Dec 08, 2002 at 09:47:46PM +1000, Mark Devin wrote:
> > Subject: Re: Anyone with working postfix smtp-auth?
> > From: Mark Devin <mdevin@ozemail.com.au>
> > To: Alexey Chetroi <debian@twilight.telco.md>
> >
> > On Sun, 2002-12-08 at 20:21, Alexey Chetroi wrote:
> > > I actually had this error with postfix-ldap from woody. smtpd crashed
> > > every time I was using ldap maps. I had to use "result_filter = (mail=%s)"
> > > in postfix configuration (could anybody explain me more detaily what is this
> > > option for?) to fix smtpd's sigsegv. If it is happening to you also,
> > > please let me know, mayby we should report this bug to package maintainer.
> > > No software should crash on invalid parameters IMHO.
> >
> > Can I impose on you to guide me a little more. I still need to learn a
> > lot. What I have at present is:
> > /etc/postfix/main.cf:
> > mynetworks = 127.0.0.0/8, 192.168.0.0/24
> > smtpd_sasl_auth_enable = yes
> > smtpd_sasl_local_domain =
> > smtpd_sasl_security_options = noanonymous
> > smtpd_sasl_local_domain = $myhostname
> > relay_domains =
> > smtpd_recipient_restrictions = permit_sasl_authenticated,
> > permit_mynetworks, check_relay_domains
> > alias_maps = hash:/etc/aliases, ldap:ldapaliases
> > local_recipient_maps = hash:/etc/aliases, ldap:ldapaliases
> > ldapaliases_server_host = localhost
> > ldapaliases_server_port = 389
> > ldapaliases_timeout = 5
> > ldapaliases_bind = yes
> > ldapaliases_bind_dn = cn=nss,dc=mitdevin,dc=com
> > ldapaliases_bind_pw = pword
> > ldapaliases_search_base = ou=People,dc=mitdevin,dc=com
> > ldapaliases_query_filter = (mail=%s\@*)
> > ldapaliases_result_attribute = mailRoutingAddress
> > ldapaliases_lookup_wildcards = no
>
> Seems, you have been guided by Nate's ldap howto :) me too. but in my
> test setup, smtpd just get a SIGSEGV, unless I add:
> ldapaliases_result_filter = (mail=%s\@*)
> I don't understand exactly what does result_filter, but this worked for me.
> Please let me know if this help you :)
>
Still can't get smtp-auth to work. I tried adding that line you
suggested and still I get the following in syslog:
Dec 14 16:23:24 shark postfix/smtpd[11548]: dict_ldap_connect: Binding
to server localhost as dn cn=nss,dc=mitdevin,dc=com
Dec 14 16:23:24 shark slapd[8863]: daemon: conn=9668 fd=23 connection
from IP=127.0.0.1:4689 (IP=0.0.0.0:34049) accepted.
Dec 14 16:23:24 shark slapd[8863]: conn=-1 fd=23 closed
Dec 14 16:23:24 shark postfix/master[11541]: warning: process
/usr/lib/postfix/smtpd pid 11548 killed by signal 11
Dec 14 16:23:24 shark postfix/master[11541]: warning:
/usr/lib/postfix/smtpd: bad command startup -- throttling
So it seems that something causes the smtpd process to die. Note that I
leave the /etc/postfix/main.cf file the same and it works OK if I remove
the postfix-tls package (but no authentication). Then if I do "apt-get
-t testing install postfix-tls" I can no longer send any mail at all
through postifx. I have to remove postfix-tls before mailing again.
So postfix-tls still doesn't work.
Any ideas, config files etc. are very welcome from anyone who have
postfix-tls working.
Regards.
Mark.
Reply to: