You are not logged in.

#1 2010-04-15 09:52:37

miguimon
Member
From: Sydney
Registered: 2008-02-28
Posts: 37
Website

[SOLVED] SASL authentication failure.. HELP!!

Hey,

Few days ago I noticed some weird errors and e-mails being rejected. Apparently, it has something to do with SASL and the pam module but I am stuck.

mail.log

Apr 15 19:20:26 cadaques postfix/smtpd[23900]: connect from mail-pv0-f181.google.com[74.125.83.181]
Apr 15 19:20:26 cadaques postfix/smtpd[23900]: setting up TLS connection from mail-pv0-f181.google.com[74.125.83.181]
Apr 15 19:20:26 cadaques postfix/smtpd[23900]: Anonymous TLS connection established from mail-pv0-f181.google.com[74.125.83.181]: TLSv1 with cipher RC4-MD5 (128/128 bits)
Apr 15 19:20:26 cadaques postfix/smtpd[23900]: warning: SASL authentication failure: Password verification failed
Apr 15 19:20:26 cadaques postfix/smtpd[23900]: warning: mail-pv0-f181.google.com[74.125.83.181]: SASL PLAIN authentication failed: authentication failure
Apr 15 19:20:26 cadaques postfix/smtpd[23900]: disconnect from mail-pv0-f181.google.com[74.125.83.181]

errors.log

Apr 15 19:11:48 cadaques postfix/smtpd[21768]: auxpropfunc error invalid parameter supplied
Apr 15 19:11:49 cadaques postfix/smtpd[21768]: sql plugin could not connect to host 
Apr 15 19:11:49 cadaques postfix/smtpd[21768]: sql plugin couldn't connect to any host
Apr 15 19:11:49 cadaques saslauthd[21461]: PAM unable to dlopen(/lib/security/pam_mysql.so): libcrypto.so.0.9.8: cannot open shared object file: No such file or directory
Apr 15 19:11:49 cadaques saslauthd[21461]: PAM adding faulty module: /lib/security/pam_mysql.so

auth.log

Apr 15 19:45:36 cadaques saslauthd[25159]: PAM unable to dlopen(/lib/security/pam_mysql.so): libcrypto.so.0.9.8: cannot open shared object file: No such file or directory
Apr 15 19:45:36 cadaques saslauthd[25159]: PAM adding faulty module: /lib/security/pam_mysql.so
Apr 15 19:45:36 cadaques saslauthd[25159]: DEBUG: auth_pam: pam_authenticate failed: Module is unknown

If anyone had similar issues please let me know how you fixed.

Thanks!

Last edited by miguimon (2010-05-15 06:38:47)

Offline

#2 2010-04-27 03:35:52

miguimon
Member
From: Sydney
Registered: 2008-02-28
Posts: 37
Website

Re: [SOLVED] SASL authentication failure.. HELP!!

anyone out there??? please help..

Offline

#3 2010-04-27 06:21:41

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,224
Website

Re: [SOLVED] SASL authentication failure.. HELP!!

miguimon wrote:
Apr 15 19:11:48 cadaques postfix/smtpd[21768]: auxpropfunc error invalid parameter supplied
Apr 15 19:11:49 cadaques postfix/smtpd[21768]: sql plugin could not connect to host 
Apr 15 19:11:49 cadaques postfix/smtpd[21768]: sql plugin couldn't connect to any host
Apr 15 19:11:49 cadaques saslauthd[21461]: PAM unable to dlopen(/lib/security/pam_mysql.so): libcrypto.so.0.9.8: cannot open shared object file: No such file or directory
Apr 15 19:11:49 cadaques saslauthd[21461]: PAM adding faulty module: /lib/security/pam_mysql.so

That seems to be the problem there....

libcrypto.so.0.9.8 would have been upgraded in the recent openssl update, so you'll need to recompile mysql against the new openssl version I'm guessing. If you haven't compiled mysql yourself, then you need to upgrade to the most recent mysql in the repos (I'm assuming that *has* been updated against the newest openssl)

Offline

#4 2010-04-27 06:49:38

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: [SOLVED] SASL authentication failure.. HELP!!

restart the services


Give what you have. To someone, it may be better than you dare to think.

Offline

#5 2010-05-11 02:57:21

miguimon
Member
From: Sydney
Registered: 2008-02-28
Posts: 37
Website

Re: [SOLVED] SASL authentication failure.. HELP!!

fukawi2,

yeah I reckon the problem comes from the openssl update but I've updated all the packages and still giving me the same errors. I also tried to restart services. I found a temporally fix just to send everything trough gmail. thanks guys smile

Offline

#6 2010-05-11 05:24:16

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,224
Website

Re: [SOLVED] SASL authentication failure.. HELP!!

What package owns that file?

pacman -Qo /lib/security/pam_mysql.so

If it hasn't been updated properly against the new OpenSSL, then it should have a bug filed against it.

Last edited by fukawi2 (2010-05-11 05:24:45)

Offline

#7 2010-05-15 02:36:20

miguimon
Member
From: Sydney
Registered: 2008-02-28
Posts: 37
Website

Re: [SOLVED] SASL authentication failure.. HELP!!

root@cadaques ~/ # pacman -Qo /lib/security/pam_mysql.so
/lib/security/pam_mysql.so is owned by libpam_mysql 0.7RC1-4

Apparently I've installed the latest from AUR:

aur/libpam_mysql 0.7RC1-4 [installed] (7)
  A PAM module to authenticate users against mysql.

Should I try to reinstall the package from AUR?

Offline

#8 2010-05-15 05:07:07

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,224
Website

Re: [SOLVED] SASL authentication failure.. HELP!!

miguimon wrote:

Should I try to reinstall the package from AUR?

You will need to recompile it against the new OpenSSL, so just rerunning makepkg and installing the new package will do it

Offline

#9 2010-05-15 06:37:59

miguimon
Member
From: Sydney
Registered: 2008-02-28
Posts: 37
Website

Re: [SOLVED] SASL authentication failure.. HELP!!

Thanks!!

Its finally working fine the authentication:

May 15 16:35:25 cadaques postfix/smtpd[22865]: connect from mail-pz0-f171.google.com[209.85.222.171]
May 15 16:35:25 cadaques postfix/smtpd[22865]: setting up TLS connection from mail-pz0-f171.google.com[209.85.222.171]
May 15 16:35:25 cadaques postfix/smtpd[22865]: Anonymous TLS connection established from mail-pz0-f171.google.com[209.85.222.171]: TLSv1 with cipher RC4-MD5 (128/128 bits)
May 15 16:35:25 cadaques postfix/smtpd[22865]: 74DF453782: client=mail-pz0-f171.google.com[209.85.222.171], sasl_method=PLAIN, sasl_username=info@domain.com
May 15 16:35:25 cadaques postfix/cleanup[22881]: 74DF453782: message-id=<AANLkTim86BkbKzVVzUQmFe8AGzwYdwDpxqKvOt4EwiJy@mail.gmail.com>
May 15 16:35:25 cadaques postfix/qmgr[22554]: 74DF453782: from=<info@domain.com>, size=1204, nrcpt=1 (queue active)
May 15 16:35:25 cadaques postfix/smtpd[22865]: disconnect from mail-pz0-f171.google.com[209.85.222.171]

Cheers

Offline

Board footer

Powered by FluxBB