> From: owner-postfix-us...@postfix.org [mailto:owner-postfix-
> us...@postfix.org] On Behalf Of Patrick Ben Koetter
> * Simon Brereton <simon.brere...@dada.net>:
> > Probably not the best place for this, but hopefully someone will
> tell
> > me what I'm doing wrong anyway..
> >
> > I've gotten the TLS up and working.  And SASL auth seemed to be
> > working.  I installed saslfinger and everything was fine there.
> But
> > when trying to locally inject mail on the submission port, I get:
> >
> > Apr 11 20:31:10 jonty postfix/smtpd[28787]: setting up TLS
> connection
> > from localhost[127.0.0.1] Apr 11 20:31:10 jonty
> postfix/smtpd[28787]:
> > Anonymous TLS connection established from localhost[127.0.0.1]:
> TLSv1
> > with cipher DHE-RSA-AES256-SHA (256/256 bits) Apr 11 20:31:10 jonty
> > postfix/smtpd[28787]: warning: localhost[127.0.0.1]: SASL LOGIN
> > authentication failed: authentication failure Apr 11 20:31:10 jonty
> > postfix/smtpd[28787]: disconnect from localhost[127.0.0.1]
> >
> > I turned the verbosity up in smtpd.conf to try and diagnose this,
> and
> > it does nothing (which I guess is my biggest issue).
> >
> >   1 # Global Parameters
> >   2 log_level: 7
> >   3 pwcheck_method: auxprop
> >   4 #pwcheck_method: saslauthd
<SNIP>
> >
> > Saslfinger -s says:
> 
> saslfinger also reports much other, useful information which we need
> to debug your problem. Please post complete output.

Gladly.    I was hoping you'd step in.  Just to let you know, I've tried both 
auxprop and saslauthd as the pwcheck method.

I even tried rimap - and with courier authdaemon logging turned up to 2, I can 
see the MYSQL is call is successful (i.e. IMAP validates) and still SASL says 
authentication failed.



root@jonty:~# saslfinger -s
saslfinger - postfix Cyrus sasl configuration Wed Apr 13 05:52:12 BST 2011
version: 1.0.4
mode: server-side SMTP AUTH

-- basics --
Postfix: 2.7.1
System: Debian GNU/Linux 6.0 \n \l

-- smtpd is linked to --
        libsasl2.so.2 => /usr/lib/libsasl2.so.2 (0xb7672000)

-- active SMTP AUTH and TLS parameters for smtpd --
broken_sasl_auth_clients = yes
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = spamfreeisp.net
smtpd_sasl_security_options = noanonymous
smtpd_tls_CAfile = /root/certauth/cacert.pem
smtpd_tls_auth_only = no
smtpd_tls_cert_file = /etc/postfix/ssl/mail.spamfreeisp.net.cert
smtpd_tls_key_file = /etc/postfix/ssl/mail.spamfreeisp.net.key
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache
smtpd_tls_session_cache_timeout = 3600s
smtpd_use_tls = yes


-- listing of /usr/lib/sasl2 --
total 704
drwxr-xr-x  2 root root  4096 Mar  8 14:21 .
drwxr-xr-x 79 root root 32768 Apr  4 19:18 ..
-rw-r--r--  1 root root 13436 Dec 19 12:29 libanonymous.a
-rw-r--r--  1 root root  1003 Dec 19 12:29 libanonymous.la
-rw-r--r--  1 root root 13076 Dec 19 12:29 libanonymous.so
-rw-r--r--  1 root root 13076 Dec 19 12:29 libanonymous.so.2
-rw-r--r--  1 root root 13076 Dec 19 12:29 libanonymous.so.2.0.23
-rw-r--r--  1 root root 15882 Dec 19 12:29 libcrammd5.a
-rw-r--r--  1 root root   989 Dec 19 12:29 libcrammd5.la
-rw-r--r--  1 root root 15444 Dec 19 12:29 libcrammd5.so
-rw-r--r--  1 root root 15444 Dec 19 12:29 libcrammd5.so.2
-rw-r--r--  1 root root 15444 Dec 19 12:29 libcrammd5.so.2.0.23
-rw-r--r--  1 root root 45328 Dec 19 12:29 libdigestmd5.a
-rw-r--r--  1 root root  1012 Dec 19 12:29 libdigestmd5.la
-rw-r--r--  1 root root 43144 Dec 19 12:29 libdigestmd5.so
-rw-r--r--  1 root root 43144 Dec 19 12:29 libdigestmd5.so.2
-rw-r--r--  1 root root 43144 Dec 19 12:29 libdigestmd5.so.2.0.23
-rw-r--r--  1 root root 13586 Dec 19 12:29 liblogin.a
-rw-r--r--  1 root root   983 Dec 19 12:29 liblogin.la
-rw-r--r--  1 root root 13552 Dec 19 12:29 liblogin.so
-rw-r--r--  1 root root 13552 Dec 19 12:29 liblogin.so.2
-rw-r--r--  1 root root 13552 Dec 19 12:29 liblogin.so.2.0.23
-rw-r--r--  1 root root 29140 Dec 19 12:29 libntlm.a
-rw-r--r--  1 root root   977 Dec 19 12:29 libntlm.la
-rw-r--r--  1 root root 28528 Dec 19 12:29 libntlm.so
-rw-r--r--  1 root root 28528 Dec 19 12:29 libntlm.so.2
-rw-r--r--  1 root root 28528 Dec 19 12:29 libntlm.so.2.0.23
-rw-r--r--  1 root root 13786 Dec 19 12:29 libplain.a
-rw-r--r--  1 root root   983 Dec 19 12:29 libplain.la
-rw-r--r--  1 root root 14096 Dec 19 12:29 libplain.so
-rw-r--r--  1 root root 14096 Dec 19 12:29 libplain.so.2
-rw-r--r--  1 root root 14096 Dec 19 12:29 libplain.so.2.0.23
-rw-r--r--  1 root root 21498 Dec 19 12:29 libsasldb.a
-rw-r--r--  1 root root  1014 Dec 19 12:29 libsasldb.la
-rw-r--r--  1 root root 18084 Dec 19 12:29 libsasldb.so
-rw-r--r--  1 root root 18084 Dec 19 12:29 libsasldb.so.2
-rw-r--r--  1 root root 18084 Dec 19 12:29 libsasldb.so.2.0.23

-- listing of /etc/postfix/sasl --
total 12
drwxr-xr-x 2 root root 4096 Apr 12 23:41 .
drwxr-xr-x 4 root root 4096 Apr 12 00:18 ..
-rw-r--r-- 1 root root  644 Apr 12 23:41 smtpd.conf




-- content of /etc/postfix/sasl/smtpd.conf --
# Global Parameters
log_level: 7
pwcheck_method: auxprop
#pwcheck_method: saslauthd
#mech_list: PLAIN LOGIN CRAM-MD5 DIGEST-MD5
mech_list: PLAIN LOGIN
allow_plaintext: true
# saslauthd Parameters
#saslauthd_path: /var/state/saslauthd/mux
saslauthd_path: /var/spool/postfix/var/run/saslauthd/mux
# Auxiliary Plugin Paramters
auxprop_plugin: sql
sql_engine: mysql
#sql_hostnames: 127.0.0.1
sql_hostnames: localhost
sql_user: --- replaced ---
sql_passwd: --- replaced ---
sql_database: Mail
sql_select: select Password from MailAccounts where Username = '%u@%r';
# or Username = '%u@%r' or (Username = '%u' and ForwardAdd = '') or Username = 
'%u.%r';
sql_usessl: no

-- content of /etc/postfix/sasl/smtpd.conf --
# Global Parameters
log_level: 7
pwcheck_method: auxprop
#pwcheck_method: saslauthd
#mech_list: PLAIN LOGIN CRAM-MD5 DIGEST-MD5
mech_list: PLAIN LOGIN
allow_plaintext: true
# saslauthd Parameters
#saslauthd_path: /var/state/saslauthd/mux
saslauthd_path: /var/spool/postfix/var/run/saslauthd/mux
# Auxiliary Plugin Paramters
auxprop_plugin: sql
sql_engine: mysql
#sql_hostnames: 127.0.0.1
sql_hostnames: localhost
sql_user: --- replaced ---
sql_passwd: --- replaced ---
sql_database: Mail
sql_select: select Password from MailAccounts where Username = '%u@%r';
# or Username = '%u@%r' or (Username = '%u' and ForwardAdd = '') or Username = 
'%u.%r';
sql_usessl: no


-- active services in /etc/postfix/master.cf --
# service type  private unpriv  chroot  wakeup  maxproc command + args
#               (yes)   (yes)   (yes)   (never) (100)
smtp      inet  n       -       -       -       -       smtpd -v
submission inet n       -       n       -       -       smtpd
  -o receive_override_options=no_address_mappings
  -o content_filter=dksign:[127.0.0.1]:10028
  -o smtpd_enforce_tls=yes
  -o smtpd_sasl_auth_enable=yes
  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
pickup    fifo  n       -       -       60      1       pickup
cleanup   unix  n       -       -       -       0       cleanup
qmgr      fifo  n       -       n       300     1       qmgr
tlsmgr    unix  -       -       -       1000?   1       tlsmgr
rewrite   unix  -       -       -       -       -       trivial-rewrite
bounce    unix  -       -       -       -       0       bounce
defer     unix  -       -       -       -       0       bounce
trace     unix  -       -       -       -       0       bounce
verify    unix  -       -       -       -       1       verify
flush     unix  n       -       -       1000?   0       flush
proxymap  unix  -       -       n       -       -       proxymap
smtp      unix  -       -       -       -       -       smtp
relay     unix  -       -       -       -       -       smtp
        -o fallback_relay=
showq     unix  n       -       -       -       -       showq
error     unix  -       -       -       -       -       error
discard   unix  -       -       -       -       -       discard
local     unix  -       n       n       -       -       local
virtual   unix  -       n       n       -       -       virtual
lmtp      unix  -       -       -       -       -       lmtp
anvil     unix  -       -       -       -       1       anvil
scache    unix  -       -       -       -       1       scache
deliverquota  unix  -       -       n       -       -       pipe
        flags=DRhu user=vmail argv=/usr/bin/deliverquota $domain/$recipient

maildrop  unix  -       n       n       -       -       pipe
  flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient}
uucp      unix  -       n       n       -       -       pipe
  flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
ifmail    unix  -       n       n       -       -       pipe
  flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp     unix  -       n       n       -       -       pipe
  flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient
scalemail-backend unix  -       n       n       -       2       pipe
  flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} 
${user} ${extension}
mailman   unix  -       n       n       -       -       pipe
  flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
  ${nexthop} ${user}

127.0.0.1:10029 inet n - n - 10 smtpd
 -o content_filter=
 -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks
 -o 
smtpd_recipient_restrictions=permit_mynetworks,permit_sasl_authenticated,reject
 -o smtpd_authorized_xforward_hosts=127.0.0.0/8

dksign unix - - n - 4 smtp
 -o smtp_send_xforward_command=yes
 -o smtp_discard_ehlo_keywords=8bitmime,starttls

127.0.0.1:10025 inet n - - - - smtpd
        -o content_filter=
        -o local_recipient_maps=
        -o relay_recipient_maps=
        -o smtpd_restriction_classes=
        -o smtpd_client_restrictions=
        -o smtpd_helo_restrictions=
        -o smtpd_sender_restrictions=
        -o smtpd_recipient_restrictions=permit_mynetworks,reject
        -o mynetworks=127.0.0.0/8
        -o strict_rfc821_envelopes=yes
        -o 
receive_override_options=no_unknown_recipient_checks,no_header_body_checks
        -o smtpd_bind_address=127.0.0.1


smtp-amavis unix - - - - 2 smtp
        -o smtp_data_done_timeout=1200
        -o disable_dns_lookups=yes


pre-cleanup unix n - n - 0 cleanup
        -o virtual_alias_maps=
        -o canonical_maps=
        -o sender_canonical_maps=
        -o recipient_canonical_maps=
        -o masquerade_domains=

cleanup unix n - n - 0 cleanup
        -o mime_header_checks=
        -o nested_header_checks=
        -o body_checks=
        -o header_checks=

smtp inet n - n - - smtpd
        -o cleanup_service_name=pre-cleanup

pickup fifo n - n 60 1 pickup
     -o cleanup_service_name=pre-cleanup

retry     unix  -       -       -       -       -       error

-- mechanisms on localhost --
250-AUTH LOGIN PLAIN
250-AUTH=LOGIN PLAIN


-- end of saslfinger output --

Reply via email to