For all the gurus, help me with this one (the same old song, postfix and sasl).
Distro: Debian
MTA: Postfix
Question: When i try to do AUTH PLAIN via telnet itīs shows me a error message:
-> AUTH PLAIN <encoded user/pass> 535 Error: authentication failed
What could this be to give me this error?
using mbox format
sasl is runnig: /usr/sbin/saslauthd -a shadow
saslauthd -v :
saslauthd 2.1.19
authentication mechanisms: sasldb getpwent kerberos4 kerberos5 pam rimap shadow ldap
/etc/default/saslauthd:
START=yes
MECHANISMS="shadow"
/etc/postfix/sasl/smtpd.conf:
log_level: 2
pwcheck_method: saslauthd
mech_list: PLAIN LOGIN
saslauth_path: /var/run/saslauthd/mux
saslauthd -a shadow -d:
saslauthd[1174] :main : num_procs : 5
saslauthd[1174] :main : mech_option: NULL
saslauthd[1174] :main : run_path : /var/run/saslauthd
saslauthd[1174] :main : auth_mech : shadow
saslauthd[1174] :ipc_init : using accept lock file: /var/run/saslauthd/mux.accept
saslauthd[1174] :detach_tty : master pid is: 0
saslauthd[1174] :ipc_init : listening on socket: /var/run/saslauthd/mux
saslauthd[1174] :main : using process model
saslauthd[1174] :have_baby : forked child: 1175
saslauthd[1174] :have_baby : forked child: 1176
saslauthd[1174] :have_baby : forked child: 1177
saslauthd[1174] :have_baby : forked child: 1178
main.cf is:
smtpd_banner = $myhostname ESMTP
biff = no
append_dot_mydomain = no
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mydestination = $myhostname, localhost.$mydomain, $mydomain
mynetworks = 127.0.0.0/8 192.168.1.60/24
mailbox_size_limit = 0
recipient_delimiter = +
smtpd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_sasl_authenticated, reject_unauth_destination
telnet 127.0.0.1 25:
250-AUTH PLAIN LOGIN
250-AUTH=PLAIN LOGIN
encoded the user/password with Base64:
Someone help me?!
perl -MMIME::Base64 -e 'print encode_base64("user\0user\0userpass");'
testsaslauthd -u user - p password
0: OK "Success."
/var/log/mail.log:
postfix/smtpd[1139]: warning: SASL authentication failure: cannot connect to saslauthd server: No such file or directory
htf postfix/smtpd[1139]: warning: SASL authentication failure: Password verification failed
theres something in here i donīt understand!!!