LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-17-2005, 07:50 AM   #1
osga
LQ Newbie
 
Registered: Mar 2005
Posts: 6

Rep: Reputation: 0
PostFix SMTP_AUTH


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!!!
 
Old 12-18-2005, 04:30 PM   #2
osga
LQ Newbie
 
Registered: Mar 2005
Posts: 6

Original Poster
Rep: Reputation: 0
After two days on this i found the answer:

master.conf unpriv and chroot options to "no":

smtp inet n n n - - smtpd

Thatīs all friends!

Last edited by osga; 12-19-2005 at 05:36 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix send mail problem(In RH9, kernal 2.4.20, postfix 2.1.5) minor Linux - General 6 09-23-2019 10:09 PM
POstfix smtp_auth with sasld assasin Debian 9 04-26-2005 07:52 AM
New to POSTFIX sekondborn Linux - Software 1 01-13-2005 02:14 AM
can't start postfix ./postfix status error jules_fraser Linux - Software 3 12-06-2003 06:33 PM
move postfix mails from server to another postfix server onetwo Linux - Software 2 03-18-2003 02:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration