I can't get my smtp to authenticate help!

navolutions
navolutions used Ask the Experts™
on
I am pulling my hair out trying to figure out what happened to my mail server. I updated mysql from 5.0.88 to 5.5.6 and now I can't get my smtp to take my passwords. I can send mail if I login using webmail via squirrel mail. And I can get my email into my outlook but I can't send mail from outlook. I tried to use telnet to figure out what was happening. I set up my users password to test->encript in mysql tried the password every way possible under base64 test is dGVzdA== but it will not work.
334 UGFzc3dvcmQ6
dGVzdA==
535 5.7.0 Error: authentication failed: authentication failure

Open in new window

I used the following reference to setup the mail server http://www.howtoforge.com/virtual-users-domains-postfix-courier-mysql-squirrelmail-centos-4.8-i386
The only change was the version mySql. and everything works fine in webmail.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Sudeep SharmaTechnical Designer

Commented:
Check point 8 in below link and make sure that the option "My outgoing server (SMTP) requires authentication" is checked as shown

http://mail.google.com/support/bin/answer.py?answer=75291

Sudeep

Author

Commented:
My outlook settings never changed outside what I was using prior to the update. I think the reason outlook is not getting the data is because I can't even telnet from the server to itself and authenticate correctly.

Author

Commented:
I found out how to debug the authdaemond http://www.courier-mta.org/authlib/README.authdebug.html and found the problem was because the pam_mysql.so was missing. Now the question is where do I get that file from since it didn't automatically install with the rpms

Author

Commented:
I found how to install pam_mysql.so and the final issue is the relm is not being forwarded into the user search, i.e I can make a user 'admin' and login as admin, but i can't login as admin@navolutions.com because the relm is not forwarded in the username field.
Figured it out! So the mysql install removed my pam_mysql.so so I needed to build a new open. Then the options for that separated the realm with saslauthd so I needed to change the options FLAGS to include "-r" to stop that and now it is working fine!

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial