Submitted by compserv on Mon, 09/07/2009 - 23:25
Login into roundcube as user on domain. I can recieve mail with no problem. But when attempting to send I get"
"SMTP error 535 authentication failed"
Status:
Closed (fixed)
Login into roundcube as user on domain. I can recieve mail with no problem. But when attempting to send I get"
"SMTP error 535 authentication failed"
Comments
Submitted by JamieCameron on Tue, 09/08/2009 - 14:50 Comment #1
What gets logged to /var/log/maillog or /var/log/mail.log on the server when you try to send email using Roundcube ?
Submitted by compserv on Tue, 09/08/2009 - 19:33 Comment #2
These are the last few lines:
Sep 8 20:31:43 ubuntu postfix/smtpd[12336]: connect from localhost[127.0.0.1] Sep 8 20:31:43 ubuntu postfix/smtpd[12336]: warning: SASL authentication failure: cannot connect to saslauthd server: No such file or directory Sep 8 20:31:43 ubuntu postfix/smtpd[12336]: warning: localhost[127.0.0.1]: SASL LOGIN authentication failed: generic failure Sep 8 20:31:43 ubuntu postfix/smtpd[12336]: disconnect from localhost[127.0.0.1] Sep 8 20:31:43 ubuntu dovecot: IMAP(admin.familymatters.me): Disconnected: Logged out bytes=8/43
Submitted by JamieCameron on Tue, 09/08/2009 - 19:45 Comment #3
Ok, this could be an SASL issue.
Which Linux distro are you running there?
Submitted by compserv on Tue, 09/08/2009 - 20:33 Comment #4
Ubuntu 9.04
Submitted by JamieCameron on Tue, 09/08/2009 - 23:35 Comment #5
Try running the following commands :
adduser postfix sasl
/etc/init.d/saslauthd restart
/etc/init.d/postfix restart
Let us know if that helps ..
Submitted by sgrayban on Wed, 09/09/2009 - 09:31 Comment #6
sasl socket/mux permissions have changed in the last update and does not play nice with previous installs and it breaks postfix auth. I have no idea why they make these changes and do not warn before upgrading is beyond me. New installs do not have this issue only upgrading does.
Submitted by compserv on Wed, 09/09/2009 - 12:53 Comment #7
norman@ubuntu:~$ sudo adduser postfix sasl [sudo] password for norman: The user
postfix' is already a member of
sasl'.norman@ubuntu:~$ /etc/init.d/saslauthd restart * No run directory defined for saslauthd, cannot stop * Starting SASL Authentication Daemon saslauthd * No run directory defined for saslauthd, not starting
norman@ubuntu:~$ /etc/init.d/postfix restart
sed: can't read /var/spool/postfix/pid/master.pid: Permission denied * Stopping Postfix Mail Transport Agent postfix [ OK ] * Starting Postfix Mail Transport Agent postfix sed: can't read /var/spool/postfix/pid/master.pid: Permission denied cp: cannot create regular file `etc/ssl/certs/ca-certificates.crt': Permission denied norman@ubuntu:~$
Submitted by JamieCameron on Wed, 09/09/2009 - 12:58 Comment #8
Ok, that "no run directory" message looks like the cause.
What does /etc/default/saslauthd contain on your system?
Submitted by sgrayban on Wed, 09/09/2009 - 15:10 Comment #9
Read http://www.jimmy.co.at/weblog/?p=52
These are the steps I do to get sasl to work.
Submitted by compserv on Wed, 09/09/2009 - 22:47 Comment #10
Most of it worked. Only a problem at the last step.
norman@ubuntu:~$ sudo /etc/init.d/saslauthd restart * No run directory defined for saslauthd, cannot stop * Starting SASL Authentication Daemon saslauthd * No run directory defined for saslauthd, not starting
Submitted by compserv on Wed, 09/09/2009 - 22:54 Comment #11
There is no /etc/default/saslauthd. In other words, the directory saslauthd does not exist but a file named "saslauthd" exists. Ubuntu will not allow me to create a directory named "saslauthd" because of the file named "saslauthd".
?????
Submitted by andreychek on Wed, 09/09/2009 - 22:59 Comment #12
Hrm, I'm hoping I'm not just overlooking it, but I don't think I see what the contents of your /etc/default/saslauthd are.
Could you attach that file to this Issue Report, or just paste in the contents? Thanks!
Submitted by compserv on Wed, 09/09/2009 - 23:08 Comment #13
Submitted by compserv on Wed, 09/09/2009 - 23:11 Comment #14
Submitted by compserv on Sun, 10/11/2009 - 17:07 Comment #15