Current time: 12-27-2024, 12:32 PM Hello There, Guest! (LoginRegister)


Post Reply 
[SOLVED] Postfix: 'fatal: no SASL authentication mechanisms'
Author Message
dim0xff Offline
Junior Member
*

Posts: 20
Joined: May 2008
Reputation: 0
Post: #1
[SOLVED] Postfix: 'fatal: no SASL authentication mechanisms'
Hello!

Can anybody give me an example of working config for /usr/local/lib/sasl/smtpd.conf ?
Because now I can't send mail via smtp...
When I connect to server it disconnects after about 2 seconds and write to log:

Code:
Jun 18 08:11:14 server postfix/smtpd[50329]: warning: SASL: Connect to smtpd failed: No such file or directory
Jun 18 08:11:14 server postfix/smtpd[50329]: fatal: no SASL authentication mechanisms
Jun 18 08:11:15 server postfix/master[50322]: warning: process /usr/local/libexec/postfix/smtpd pid 50329 exit status 1
Jun 18 08:11:15 server postfix/master[50322]: warning: /usr/local/libexec/postfix/smtpd: bad command startup -- throttling

Thanks[/code] for helping.
(This post was last modified: 06-20-2008 05:11 PM by dim0xff.)
06-18-2008 10:20 PM
Find all posts by this user Quote this message in a reply
minjaverde Offline
Junior Member
*

Posts: 10
Joined: Jun 2008
Reputation: 0
Post: #2
RE: Postfix: 'fatal: no SASL authentication mechanisms'
can you post your actual smtpd.conf ?
06-18-2008 11:43 PM
Find all posts by this user Quote this message in a reply
dim0xff Offline
Junior Member
*

Posts: 20
Joined: May 2008
Reputation: 0
Post: #3
RE: Postfix: 'fatal: no SASL authentication mechanisms'
Of course!
[/code]
Code:
pwcheck_method: auxprop
mech_list: PLAIN LOGIN CRAM-MD5
auxprop_plugin: sql
sql_verbose: yes
sql_usessl: yes
sql_engine: mysql
sql_hostnames: localhost
sql_user: postfix
sql_passwd: postfix
sql_database: postfix
sql_select: select password from mailbox where username = '%u@%r'
log_level: 7
06-18-2008 11:46 PM
Find all posts by this user Quote this message in a reply
minjaverde Offline
Junior Member
*

Posts: 10
Joined: Jun 2008
Reputation: 0
Post: #4
RE: Postfix: 'fatal: no SASL authentication mechanisms'
hi,

do you have the librarys for sql in your /usr/lib/sasl2 directory ?
may you post a ls -la /usr/lib/sasl2
06-19-2008 12:23 AM
Find all posts by this user Quote this message in a reply
dim0xff Offline
Junior Member
*

Posts: 20
Joined: May 2008
Reputation: 0
Post: #5
RE: Postfix: 'fatal: no SASL authentication mechanisms'
minjaverde Wrote:hi,

do you have the librarys for sql in your /usr/lib/sasl2 directory ?
may you post a ls -la /usr/lib/sasl2

Not in /usr/lib/sasl2 but in /usr/local/lib/sasl2
Code:
# ls -la /usr/local/lib/sasl2
total 418
drwxr-xr-x   2 root  wheel   1024 Jun 18 07:33 .
drwxr-xr-x  17 root  wheel  13824 Jun 18 03:06 ..
-rw-r--r--   1 root  wheel    274 Jun 18 07:25 Sendmail.conf
-rw-r--r--   1 root  wheel  11660 Jun  1 08:46 libanonymous.a
-rwxr-xr-x   1 root  wheel    829 Jun  1 08:46 libanonymous.la
lrwxr-xr-x   1 root  wheel     17 Jun  1 08:46 libanonymous.so -> libanonymous.so.2
-rwxr-xr-x   1 root  wheel  14883 Jun  1 08:46 libanonymous.so.2
-rw-r--r--   1 root  wheel  13786 Jun  1 08:46 libcrammd5.a
-rwxr-xr-x   1 root  wheel    815 Jun  1 08:46 libcrammd5.la
lrwxr-xr-x   1 root  wheel     15 Jun  1 08:46 libcrammd5.so -> libcrammd5.so.2
-rwxr-xr-x   1 root  wheel  17088 Jun  1 08:46 libcrammd5.so.2
-rw-r--r--   1 root  wheel  42096 Jun  1 08:46 libdigestmd5.a
-rwxr-xr-x   1 root  wheel    838 Jun  1 08:46 libdigestmd5.la
lrwxr-xr-x   1 root  wheel     17 Jun  1 08:46 libdigestmd5.so -> libdigestmd5.so.2
-rwxr-xr-x   1 root  wheel  44553 Jun  1 08:46 libdigestmd5.so.2
-rw-r--r--   1 root  wheel  20364 Jun  1 08:46 libgssapiv2.a
-rwxr-xr-x   1 root  wheel    891 Jun  1 08:46 libgssapiv2.la
lrwxr-xr-x   1 root  wheel     16 Jun  1 08:46 libgssapiv2.so -> libgssapiv2.so.2
-rwxr-xr-x   1 root  wheel  24478 Jun  1 08:46 libgssapiv2.so.2
-rw-r--r--   1 root  wheel  11926 Jun  1 08:46 liblogin.a
-rwxr-xr-x   1 root  wheel    809 Jun  1 08:46 liblogin.la
lrwxr-xr-x   1 root  wheel     13 Jun  1 08:46 liblogin.so -> liblogin.so.2
-rwxr-xr-x   1 root  wheel  15150 Jun  1 08:46 liblogin.so.2
-rw-r--r--   1 root  wheel  26612 Jun  1 08:46 libntlm.a
-rwxr-xr-x   1 root  wheel    803 Jun  1 08:46 libntlm.la
lrwxr-xr-x   1 root  wheel     12 Jun  1 08:46 libntlm.so -> libntlm.so.2
-rwxr-xr-x   1 root  wheel  30685 Jun  1 08:46 libntlm.so.2
-rw-r--r--   1 root  wheel  11990 Jun  1 08:46 libplain.a
-rwxr-xr-x   1 root  wheel    809 Jun  1 08:46 libplain.la
lrwxr-xr-x   1 root  wheel     13 Jun  1 08:46 libplain.so -> libplain.so.2
-rwxr-xr-x   1 root  wheel  15112 Jun  1 08:46 libplain.so.2
-rw-r--r--   1 root  wheel  17300 Jun  1 08:46 libsasldb.a
-rwxr-xr-x   1 root  wheel    808 Jun  1 08:46 libsasldb.la
lrwxr-xr-x   1 root  wheel     14 Jun  1 08:46 libsasldb.so -> libsasldb.so.2
-rwxr-xr-x   1 root  wheel  19385 Jun  1 08:46 libsasldb.so.2
-rw-r--r--   1 root  wheel  17024 Jun  1 08:46 libsql.a
-rwxr-xr-x   1 root  wheel    888 Jun  1 08:46 libsql.la
lrwxr-xr-x   1 root  wheel     11 Jun  1 08:46 libsql.so -> libsql.so.2
-rwxr-xr-x   1 root  wheel  21437 Jun  1 08:46 libsql.so.2
lrwxr-xr-x   1 root  wheel     10 Jun 18 07:14 smtp.conf -> smtpd.conf
-rw-r--r--   1 root  wheel    292 Jun 18 07:33 smtpd.conf
And
Code:
# saslauthd -v
saslauthd 2.1.22
authentication mechanisms: sasldb getpwent kerberos5 pam rimap
06-19-2008 12:27 AM
Find all posts by this user Quote this message in a reply
minjaverde Offline
Junior Member
*

Posts: 10
Joined: Jun 2008
Reputation: 0
Post: #6
RE: Postfix: 'fatal: no SASL authentication mechanisms'
sorry no idea :-)

i found a small how to for redhat/suse perhaps this helps you.
http://www.billpitz.com/howto/postfix-my...-auth.html
did you compile sasl or installed it by packet manager ? Im am wondering about the Connect to smtpd failed: No such file or directory error. This looks like a path is not set correct.

in guy from the tutorial arranged the options a little bit different to yours
Quote:sasl_pwcheck_method: auxprop
sasl_auxprop_plugin: mysql login plain crammd6 digestmd5
sasl_mech_list: PLAIN LOGIN
but just speculation
06-19-2008 07:24 PM
Find all posts by this user Quote this message in a reply
dim0xff Offline
Junior Member
*

Posts: 20
Joined: May 2008
Reputation: 0
Post: #7
RE: Postfix: 'fatal: no SASL authentication mechanisms'
minjaverde Wrote:did you compile sasl or installed it by packet manager ? Im am wondering about the Connect to smtpd failed: No such file or directory error. This looks like a path is not set correct.

I install sasl by packet manager...
I don't know what file it is looking for.
How can I know it?
06-19-2008 11:31 PM
Find all posts by this user Quote this message in a reply
dim0xff Offline
Junior Member
*

Posts: 20
Joined: May 2008
Reputation: 0
Post: #8
RE: Postfix: 'fatal: no SASL authentication mechanisms'
what does parameter 'smtpd_sasl_path' in main.cf mean?
06-19-2008 11:52 PM
Find all posts by this user Quote this message in a reply
dim0xff Offline
Junior Member
*

Posts: 20
Joined: May 2008
Reputation: 0
Post: #9
RE: Postfix: 'fatal: no SASL authentication mechanisms'
OK!
FIXED!
It's miracle! xD
I just added 'smtpd_sasl_type = cyrus' to config...
I have dovecot too..but in manual I found that by default postfix uses cyrus... probably not for me xD

Thanks to all!
06-20-2008 05:11 PM
Find all posts by this user Quote this message in a reply
minjaverde Offline
Junior Member
*

Posts: 10
Joined: Jun 2008
Reputation: 0
Post: #10
RE: [SOLVED] Postfix: 'fatal: no SASL authentication mechanisms'
:-) strange
06-20-2008 09:04 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 4 Guest(s)