View Single Post
  #2  
Old 18th August 2010, 13:57
Nicram Nicram is offline
Member
 
Join Date: Mar 2010
Location: PL
Posts: 59
Thanks: 21
Thanked 9 Times in 7 Posts
Send a message via ICQ to Nicram Send a message via AIM to Nicram Send a message via Yahoo to Nicram Send a message via Skype™ to Nicram
Default

2bad i have to reply to myself, well, it is still not working but i investigated things again and what i find was:

When there was error:
Code:
Aug 18 13:45:50 hosting postfix/smtpd[7222]: connect from dynamic-81-168-209-66.ssp.dialog.net.pl[81.168.209.66]
Aug 18 13:45:56 hosting postfix/smtpd[7222]: warning: SASL authentication failure: Password verification failed
Aug 18 13:45:56 hosting postfix/smtpd[7222]: warning: dynamic-81-168-209-66.ssp.dialog.net.pl[81.168.209.66]: SASL PLAIN authentication failed: authentication failure
Aug 18 13:45:56 hosting postfix/smtpd[7222]: warning: dynamic-81-168-209-66.ssp.dialog.net.pl[81.168.209.66]: SASL LOGIN authentication failed: authentication failure
I checked /var/log/secure and what was there:
Code:
Aug 18 13:37:40 hosting saslauthd[6770]: PAM unable to dlopen(/lib64/security/pam_mysql.so)
Aug 18 13:37:40 hosting saslauthd[6770]: PAM [error: /lib64/security/pam_mysql.so: cannot open shared object file: No such file or directory]
Aug 18 13:37:40 hosting saslauthd[6770]: PAM adding faulty module: /lib64/security/pam_mysql.so
Aug 18 13:37:40 hosting saslauthd[6770]: PAM unable to dlopen(/lib64/security/pam_mysql.so)
Aug 18 13:37:40 hosting saslauthd[6770]: PAM [error: /lib64/security/pam_mysql.so: cannot open shared object file: No such file or directory]
Aug 18 13:37:40 hosting saslauthd[6770]: PAM adding faulty module: /lib64/security/pam_mysql.so
So what i did was:
# yum install pam_mysql

After that:
Code:
Aug 18 13:45:56 hosting saslauthd[7130]: pam_mysql - SELECT returned no result.
Aug 18 13:45:56 hosting saslauthd[7130]: pam_mysql - SELECT returned no result.
Aug 18 13:45:56 hosting saslauthd[7131]: pam_mysql - SELECT returned no result.
Aug 18 13:45:56 hosting saslauthd[7131]: pam_mysql - SELECT returned no result.
Aug 18 13:46:01 hosting saslauthd[7132]: pam_mysql - SELECT returned no result.
Aug 18 13:46:01 hosting saslauthd[7132]: pam_mysql - SELECT returned no result.
Aug 18 13:46:01 hosting saslauthd[7133]: pam_mysql - SELECT returned no result.
And still same error when trying to receive msgs

To do more testing i try to send email with squirrel and... it worked without problems, maillog:
Code:
Aug 18 14:20:25 hosting postfix/smtpd[9122]: connect from unknown[127.0.0.1]
Aug 18 12:20:25 hosting postfix/smtpd[9122]: 1B9874718664: client=unknown[127.0.0.1]
Aug 18 14:20:25 hosting postfix/cleanup[9115]: 1B9874718664: message-id=<2893.81.168.209.66.1282134021.squirrel@myrealdomain.com>
Aug 18 14:20:25 hosting postfix/qmgr[1966]: 1B9874718664: from=<myemail@myrealdomain.com>, size=1452, nrcpt=1 (queue active)
Aug 18 12:20:25 hosting postfix/smtpd[9122]: disconnect from unknown[127.0.0.1]
Aug 18 14:20:25 hosting amavis[1982]: (01982-05) Passed CLEAN, MYNETS LOCAL [127.0.0.1] [81.168.209.66] <myemail@myrealdomain.com> -> <mymail@email.it>, Message-ID: <2893.81.168.209.66.1282134021.squirrel@myrealdomain.com>, mail_id: yAUJmkBVFWFo, Hits: -2.9, size: 1014, queued_as: 1B9874718664, 3371 ms
Aug 18 14:20:25 hosting postfix/smtp[9116]: AD4D3471865A: to=<mymail@email.it>, relay=127.0.0.1[127.0.0.1]:10024, delay=3.4, delays=0.06/0.01/0/3.4, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=01982-05, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 1B9874718664)
Aug 18 14:20:25 hosting postfix/qmgr[1966]: AD4D3471865A: removed
Aug 18 14:20:28 hosting postfix/smtp[9124]: 1B9874718664: to=<mymail@email.it>, relay=mx.email.it[212.97.34.36]:25, delay=2.9, delays=0.02/0.01/0.53/2.4, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as 3E17244006)
Aug 18 14:20:28 hosting postfix/qmgr[1966]: 1B9874718664: removed
But still some errors at messages:
Code:
Aug 18 14:20:01 hosting postfix/smtpd[9087]: sql_select option missing
Aug 18 14:20:01 hosting postfix/smtpd[9087]: auxpropfunc error no mechanism available 
Aug 18 14:20:25 hosting postfix/smtpd[9122]: sql_select option missing
Aug 18 14:20:25 hosting postfix/smtpd[9122]: auxpropfunc error no mechanism available
saslfinger -c:
Code:
saslfinger - postfix Cyrus sasl configuration Wed Aug 18 14:35:00 CEST 2010
version: 1.0.2
mode: client-side SMTP AUTH

-- basics --
Postfix: 2.3.3
System: CentOS release 5.5 (Final)

-- smtp is linked to --
	libsasl2.so.2 => /usr/lib64/libsasl2.so.2 (0x00002aebeff91000)

-- active SMTP AUTH and TLS parameters for smtp --
relayhost = 


-- listing of /usr/lib64/sasl2 --
total 2992
drwxr-xr-x  2 root root   4096 Aug 18 11:50 .
drwxr-xr-x 83 root root  53248 Aug 18 01:37 ..
-rwxr-xr-x  1 root root    890 Mar 17 14:11 libanonymous.la
-rwxr-xr-x  1 root root  15880 Mar 17 14:11 libanonymous.so
-rwxr-xr-x  1 root root  15880 Mar 17 14:11 libanonymous.so.2
-rwxr-xr-x  1 root root  15880 Mar 17 14:11 libanonymous.so.2.0.22
-rwxr-xr-x  1 root root    862 Mar 17 14:11 liblogin.la
-rwxr-xr-x  1 root root  16448 Mar 17 14:11 liblogin.so
-rwxr-xr-x  1 root root  16448 Mar 17 14:11 liblogin.so.2
-rwxr-xr-x  1 root root  16448 Mar 17 14:11 liblogin.so.2.0.22
-rwxr-xr-x  1 root root    862 Mar 17 14:11 libplain.la
-rwxr-xr-x  1 root root  16416 Mar 17 14:11 libplain.so
-rwxr-xr-x  1 root root  16416 Mar 17 14:11 libplain.so.2
-rwxr-xr-x  1 root root  16416 Mar 17 14:11 libplain.so.2.0.22
-rwxr-xr-x  1 root root    936 Mar 17 14:11 libsasldb.la
-rwxr-xr-x  1 root root 893304 Mar 17 14:11 libsasldb.so
-rwxr-xr-x  1 root root 893304 Mar 17 14:11 libsasldb.so.2
-rwxr-xr-x  1 root root 893304 Mar 17 14:11 libsasldb.so.2.0.22
-rwxr-xr-x  1 root root    878 Mar 17 14:11 libsql.la
-rwxr-xr-x  1 root root  24808 Mar 17 14:11 libsql.so
-rwxr-xr-x  1 root root  24808 Mar 17 14:11 libsql.so.2
-rwxr-xr-x  1 root root  24808 Mar 17 14:11 libsql.so.2.0.22
-rw-r--r--  1 root root     25 Mar 31 06:50 Sendmail.conf
-rw-r--r--  1 root root     26 Aug 18 01:47 smtpd.conf
-rw-r--r--  1 root root    109 Aug 18 00:52 smtpd.conf.rpmsave

-- listing of /usr/lib/sasl2 --
total 2952
drwxr-xr-x  2 root root   4096 Aug 18 11:51 .
drwxr-xr-x 57 root root  32768 Aug 18 01:49 ..
-rwxr-xr-x  1 root root    884 Mar 17 14:14 libanonymous.la
-rwxr-xr-x  1 root root  14372 Mar 17 14:14 libanonymous.so
-rwxr-xr-x  1 root root  14372 Mar 17 14:14 libanonymous.so.2
-rwxr-xr-x  1 root root  14372 Mar 17 14:14 libanonymous.so.2.0.22
-rwxr-xr-x  1 root root    856 Mar 17 14:14 liblogin.la
-rwxr-xr-x  1 root root  14752 Mar 17 14:14 liblogin.so
-rwxr-xr-x  1 root root  14752 Mar 17 14:14 liblogin.so.2
-rwxr-xr-x  1 root root  14752 Mar 17 14:14 liblogin.so.2.0.22
-rwxr-xr-x  1 root root    856 Mar 17 14:14 libplain.la
-rwxr-xr-x  1 root root  14848 Mar 17 14:14 libplain.so
-rwxr-xr-x  1 root root  14848 Mar 17 14:14 libplain.so.2
-rwxr-xr-x  1 root root  14848 Mar 17 14:14 libplain.so.2.0.22
-rwxr-xr-x  1 root root    930 Mar 17 14:14 libsasldb.la
-rwxr-xr-x  1 root root 905200 Mar 17 14:14 libsasldb.so
-rwxr-xr-x  1 root root 905200 Mar 17 14:14 libsasldb.so.2
-rwxr-xr-x  1 root root 905200 Mar 17 14:14 libsasldb.so.2.0.22
-rwxr-xr-x  1 root root    878 Mar 17 14:14 libsql.la
-rwxr-xr-x  1 root root  23080 Mar 17 14:14 libsql.so
-rwxr-xr-x  1 root root  23080 Mar 17 14:14 libsql.so.2
-rwxr-xr-x  1 root root  23080 Mar 17 14:14 libsql.so.2.0.22
-rw-r--r--  1 root root    109 Aug 18 00:52 old.conf
-rw-r--r--  1 root root    109 Aug 18 11:51 smtpd.conf

-- listing of /etc/sasl2 --
total 24
drwxr-xr-x   2 root root  4096 Mar 17 14:14 .
drwxr-xr-x 108 root root 12288 Aug 18 12:06 ..


Cannot find the smtp_sasl_password_maps parameter in main.cf.
Client-side SMTP AUTH cannot work without this parameter!
I never had this line in main.cf - smtp_sasl_password_maps, and it did work earlier...

Please help anyone, i'm little lost

Last edited by Nicram; 18th August 2010 at 14:42. Reason: More info...
Reply With Quote