|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Re: cyrus-sasl + mysql auth isn't working
From: Aaron Gallagher (habnabit
gmail.com)
Date: Tue Nov 29 2005 - 00:59:18 CST
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> Can Postfix access the saslauthd socket directory?
> What command line options do you give to run saslauthd?
I'm not sure where the saslauthd socket is. Everyone has read access
to /etc/sasl2/saslauthd and /etc/sasl2/sasldb2, which might be what
you're referring to.
sasl is run as "-a rimap -r -O localhost"
Here's output from a newly-patched version of saslfinger:
saslfinger - postfix Cyrus sasl configuration Mon Nov 28 22:58:23 PST
2005
version: 0.9.9.1
mode: server-side SMTP AUTH
-- basics --
Postfix: 2.1.5
System: Gentoo Base System version 1.6.13
-- smtpd is linked to --
libsasl2.so.2 => /usr/local/lib/libsasl2.so.2 (0x0fada000)
-- active SMTP AUTH and TLS parameters for smtpd --
broken_sasl_auth_clients = yes
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
smtpd_sasl_security_options = noanonymous
smtpd_tls_CAfile = /etc/postfix/cacert.pem
smtpd_tls_auth_only = yes
smtpd_tls_cert_file = /etc/postfix/newcert.pem
smtpd_tls_key_file = /etc/postfix/newreq.pem
smtpd_tls_loglevel = 3
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
smtpd_use_tls = yes
-- listing of /usr/lib/sasl2 --
total 908
drwxr-xr-x 2 root root 4096 Nov 28 22:42 .
drwxr-xr-x 46 root root 28672 Nov 23 14:41 ..
-rwxr-xr-x 1 root root 695 Oct 23 21:26 libanonymous.la
-rwxr-xr-x 1 root root 20028 Oct 23 21:26 libanonymous.so
-rwxr-xr-x 1 root root 20028 Oct 23 21:26 libanonymous.so.2
-rwxr-xr-x 1 root root 20028 Oct 23 21:26 libanonymous.so.2.0.20
-rwxr-xr-x 1 root root 683 Oct 23 21:26 libcrammd5.la
-rwxr-xr-x 1 root root 22696 Oct 23 21:26 libcrammd5.so
-rwxr-xr-x 1 root root 22696 Oct 23 21:26 libcrammd5.so.2
-rwxr-xr-x 1 root root 22696 Oct 23 21:26 libcrammd5.so.2.0.20
-rwxr-xr-x 1 root root 713 Oct 23 21:26 libdigestmd5.la
-rwxr-xr-x 1 root root 56080 Oct 23 21:26 libdigestmd5.so
-rwxr-xr-x 1 root root 56080 Oct 23 21:26 libdigestmd5.so.2
-rwxr-xr-x 1 root root 56080 Oct 23 21:26 libdigestmd5.so.2.0.20
-rwxr-xr-x 1 root root 749 Oct 23 21:26 libgssapiv2.la
-rwxr-xr-x 1 root root 32240 Oct 23 21:26 libgssapiv2.so
-rwxr-xr-x 1 root root 32240 Oct 23 21:26 libgssapiv2.so.2
-rwxr-xr-x 1 root root 32240 Oct 23 21:26 libgssapiv2.so.2.0.20
-rwxr-xr-x 1 root root 679 Oct 23 21:26 liblogin.la
-rwxr-xr-x 1 root root 20776 Oct 23 21:26 liblogin.so
-rwxr-xr-x 1 root root 20776 Oct 23 21:26 liblogin.so.2
-rwxr-xr-x 1 root root 20776 Oct 23 21:26 liblogin.so.2.0.20
-rwxr-xr-x 1 root root 674 Oct 23 21:26 libntlm.la
-rwxr-xr-x 1 root root 39312 Oct 23 21:26 libntlm.so
-rwxr-xr-x 1 root root 39312 Oct 23 21:26 libntlm.so.2
-rwxr-xr-x 1 root root 39312 Oct 23 21:26 libntlm.so.2.0.20
-rwxr-xr-x 1 root root 679 Oct 23 21:26 libplain.la
-rwxr-xr-x 1 root root 20904 Oct 23 21:26 libplain.so
-rwxr-xr-x 1 root root 20904 Oct 23 21:26 libplain.so.2
-rwxr-xr-x 1 root root 20904 Oct 23 21:26 libplain.so.2.0.20
-rwxr-xr-x 1 root root 702 Oct 23 21:26 libsasldb.la
-rwxr-xr-x 1 root root 26848 Oct 23 21:26 libsasldb.so
-rwxr-xr-x 1 root root 26848 Oct 23 21:26 libsasldb.so.2
-rwxr-xr-x 1 root root 26848 Oct 23 21:26 libsasldb.so.2.0.20
-rwxr-xr-x 1 root root 690 Oct 23 21:26 libsql.la
-rwxr-xr-x 1 root root 26916 Oct 23 21:26 libsql.so
-rwxr-xr-x 1 root root 26916 Oct 23 21:26 libsql.so.2
-rwxr-xr-x 1 root root 26916 Oct 23 21:26 libsql.so.2.0.20
-- listing of /var/lib/sasl2 --
total 12
drwxr-xr-x 2 root root 4096 Nov 28 22:47 .
drwxr-xr-x 19 root root 4096 Nov 18 10:31 ..
-rw-r--r-- 1 root root 0 Oct 23 21:26 .keep
srwxrwxrwx 1 root root 0 Nov 28 22:47 mux
-rw------- 1 root root 0 Nov 28 22:47 mux.accept
-rw------- 1 root root 5 Nov 28 22:47 saslauthd.pid
-- listing of /etc/sasl2 --
total 36
drwxr-xr-x 2 root root 4096 Nov 4 12:31 .
drwxr-xr-x 58 root root 4096 Nov 28 22:50 ..
-rw-r--r-- 1 root root 0 Oct 23 21:26 .keep
-rw-r--r-- 1 root root 93 Sep 5 21:10 saslauthd
-rw-r--r-- 1 root postdrop 12332 Oct 23 21:26 sasldb2
-rw-r--r-- 1 root root 48 Nov 4 12:31 smtpd.conf
-rw-r--r-- 1 root root 48 Sep 5 21:10 smtpd.conf~
-- content of /etc/sasl2/smtpd.conf --
mech_list: PLAIN LOGIN
pwcheck_method: saslauthd
-- active services in /etc/postfix/master.cf --
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
smtp inet n - n - - smtpd
smtps inet n - n - - smtpd
-o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes
pickup fifo n - n 60 1 pickup
cleanup unix n - n - 0 cleanup
qmgr fifo n - n 300 1 qmgr
rewrite unix - - n - - trivial-rewrite
bounce unix - - n - 0 bounce
defer unix - - n - 0 bounce
trace unix - - n - 0 bounce
verify unix - - n - 1 verify
flush unix n - n 1000? 0 flush
proxymap unix - - n - - proxymap
smtp unix - - n - - smtp
relay unix - - n - - smtp
showq unix n - n - - showq
error unix - - n - - error
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - n - - lmtp
anvil unix - - n - 1 anvil
maildrop unix - n n - - pipe
flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
old-cyrus unix - n n - - pipe
flags=R user=cyrus argv=/cyrus/bin/deliver -e -m ${extension} ${user}
cyrus unix - n n - - pipe
user=cyrus argv=/cyrus/bin/deliver -e -r ${sender} -m ${extension}
${user}
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=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop
$recipient
-- mechanisms on localhost --
I think there's no mechanisms listed because I have postfix set to
only use TLS.
Aaron Gallagher
<habnabit
gmail.com>
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]