[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Postfix avec SASL : Connection Refused



> aptitude install postfix-tls libsasl2-modules sasl2-bin ?

Je les ai tous.

> Ne pas oublier de redémarrer saslauthd ! Si effectivement le groupe sasl n'était pas fait, > ni la modif chroot tu devrais lire le dernier paragraphe de mon site (lien fournit sur ce fil) > "Je ne sais plus pourquoi" : le 1er et 3ième point ! et relance de postfix et saslauthd

En relisant les points abordé sur ton site, je me suis dit que j'allais remettre en place le chroot de postfix. J'ai suivi la procédure décrite sur ce site :

http://wiki.auf.org/wikiteki/Postfix/Authentification

J'ai également adapté avec ce que tu as écrit sur ton site.

Voici ce que je trouve dans le mail.log maintenant :

warning: SASL authentication failure: cannot connect to saslauthd server: No such file or directory

J'en conclu que postfix n'arrive pas à trouver le démon SASL mais celui-ci est disponible dans le répertoire /var/spool/postfix/var/run/saslauthd....

Je précise que je n'ai pas oublié de redémarrer les démons Postfix et SASL.

Pour info voici le résultat de la commande "saslfinger -s" :
saslfinger - postfix Cyrus sasl configuration mardi 13 septembre 2011, 09:18:44 (UTC+0200)
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 (0xb749c000)

-- active SMTP AUTH and TLS parameters for smtpd --
broken_sasl_auth_clients = yes
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
smtpd_sasl_path = smtpd
smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtpd_use_tls = yes


-- listing of /usr/lib/sasl2 --
total 684
drwxr-xr-x 2 root root 4096 13 sep 09:10 .
drwxr-xr-x 53 root root 12288 16 aoû 13:56 ..
-rw-r--r-- 1 root root 13436 19 déc 2010 libanonymous.a
-rw-r--r-- 1 root root 1003 19 déc 2010 libanonymous.la
-rw-r--r-- 1 root root 13076 19 déc 2010 libanonymous.so
-rw-r--r-- 1 root root 13076 19 déc 2010 libanonymous.so.2
-rw-r--r-- 1 root root 13076 19 déc 2010 libanonymous.so.2.0.23
-rw-r--r-- 1 root root 15882 19 déc 2010 libcrammd5.a
-rw-r--r-- 1 root root 989 19 déc 2010 libcrammd5.la
-rw-r--r-- 1 root root 15444 19 déc 2010 libcrammd5.so
-rw-r--r-- 1 root root 15444 19 déc 2010 libcrammd5.so.2
-rw-r--r-- 1 root root 15444 19 déc 2010 libcrammd5.so.2.0.23
-rw-r--r-- 1 root root 45328 19 déc 2010 libdigestmd5.a
-rw-r--r-- 1 root root 1012 19 déc 2010 libdigestmd5.la
-rw-r--r-- 1 root root 43144 19 déc 2010 libdigestmd5.so
-rw-r--r-- 1 root root 43144 19 déc 2010 libdigestmd5.so.2
-rw-r--r-- 1 root root 43144 19 déc 2010 libdigestmd5.so.2.0.23
-rw-r--r-- 1 root root 13586 19 déc 2010 liblogin.a
-rw-r--r-- 1 root root 983 19 déc 2010 liblogin.la
-rw-r--r-- 1 root root 13552 19 déc 2010 liblogin.so
-rw-r--r-- 1 root root 13552 19 déc 2010 liblogin.so.2
-rw-r--r-- 1 root root 13552 19 déc 2010 liblogin.so.2.0.23
-rw-r--r-- 1 root root 29140 19 déc 2010 libntlm.a
-rw-r--r-- 1 root root 977 19 déc 2010 libntlm.la
-rw-r--r-- 1 root root 28528 19 déc 2010 libntlm.so
-rw-r--r-- 1 root root 28528 19 déc 2010 libntlm.so.2
-rw-r--r-- 1 root root 28528 19 déc 2010 libntlm.so.2.0.23
-rw-r--r-- 1 root root 13786 19 déc 2010 libplain.a
-rw-r--r-- 1 root root 983 19 déc 2010 libplain.la
-rw-r--r-- 1 root root 14096 19 déc 2010 libplain.so
-rw-r--r-- 1 root root 14096 19 déc 2010 libplain.so.2
-rw-r--r-- 1 root root 14096 19 déc 2010 libplain.so.2.0.23
-rw-r--r-- 1 root root 21498 19 déc 2010 libsasldb.a
-rw-r--r-- 1 root root 1014 19 déc 2010 libsasldb.la
-rw-r--r-- 1 root root 18084 19 déc 2010 libsasldb.so
-rw-r--r-- 1 root root 18084 19 déc 2010 libsasldb.so.2
-rw-r--r-- 1 root root 18084 19 déc 2010 libsasldb.so.2.0.23
-rw-r--r-- 1 root root 116 13 sep 09:10 smtpd.conf

-- listing of /etc/postfix/sasl --
total 12
drwxr-xr-x 2 root root 4096 13 sep 09:09 .
drwxr-xr-x 3 root root 4096 13 sep 09:02 ..
-rw-r--r-- 1 root root 115 13 sep 09:09 smtpd.conf




-- content of /usr/lib/sasl2/smtpd.conf --
pwcheck_method: saslauthd
saslauthd_path: /var/spool/postfix/var/run/saslauthd
mech_list: PLAIN LOGIN
log_level: 7


-- content of /etc/postfix/sasl/smtpd.conf --
pwcheck_method: saslauthd
saslauthd_path: /var/spool/postfix/var/run/saslauthd
mech_list: PLAIN LOGIN
log_level: 7

-- content of /etc/postfix/sasl/smtpd.conf --
pwcheck_method: saslauthd
saslauthd_path: /var/spool/postfix/var/run/saslauthd
mech_list: PLAIN LOGIN
log_level: 7


-- active services in /etc/postfix/master.cf --
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
smtp inet n - y - - smtpd -v
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
proxywrite unix - - n - 1 proxymap
smtp unix - - - - - smtp
relay unix - - - - - smtp
-o smtp_fallback_relay=
showq unix n - - - - showq
error unix - - - - - error
retry 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
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}

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


-- end of saslfinger output --

Je pense qu'il doit y avoir une erreur quelque part mais je n'ai vraiment pas la moindre idée d’où cela peut provenir. Une idée ? (le smtps est volontairement pas utilisé pour le moment, j'y vais pas à pas.)




Reply to: