Round Cube Send Mail Error

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)

Comments

What gets logged to /var/log/maillog or /var/log/mail.log on the server when you try to send email using Roundcube ?

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

Ok, this could be an SASL issue.

Which Linux distro are you running there?

Try running the following commands :

adduser postfix sasl
/etc/init.d/saslauthd restart
/etc/init.d/postfix restart

Let us know if that helps ..

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.

norman@ubuntu:~$ sudo adduser postfix sasl [sudo] password for norman: The user postfix' is already a member ofsasl'.

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:~$

Ok, that "no run directory" message looks like the cause.

What does /etc/default/saslauthd contain on your system?

Read http://www.jimmy.co.at/weblog/?p=52

rm -r /var/run/saslauthd/
mkdir -p /var/spool/postfix/var/run/saslauthd
ln -s /var/spool/postfix/var/run/saslauthd /var/run
chgrp sasl /var/spool/postfix/var/run/saslauthd
adduser postfix sasl
/etc/init.d/postfix restart
/etc/init.d/saslauthd restart

These are the steps I do to get sasl to work.

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

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".

?????

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!