Postfix, saslauthd, mysql, smtp authentication problems

Posted by italiansoda on Server Fault See other posts from Server Fault or by italiansoda
Published on 2012-03-25T20:43:33Z Indexed on 2012/03/25 23:33 UTC
Read the original article Hit count: 238

Filed under:
|
|
|

Trying to get authentication on my mail server (ubuntu 10.04) running but am having trouble. I have a server with postfix for smtp setup, imap server with courier setup. My postfix authentication is using cyrus (I haven't tried dovecot really) saslauth. The user name and password is stored in a MySql database. Logging in with imap-ssl works on a remote client (thunderbird), and I can read my mail. I can't get the SMTP side working, and have focused the issue down to saslauth.

Testing with

testsaslauthd -u 'username' -p 'passowrd' -s smtp 

returns

connect() : Permission denied

the password in the database is encrypted and I guess this testsaslauthd will take a plain text password and encrypt it.

Looking for someone to walk me through getting this working. Im new to the mail server, and have never got one fully working. Thanks. Ask me which log files I should look at/post, which tests to run, permissions to check.

© Server Fault or respective owner

Related posts about mysql

Related posts about postfix