Cannot start SASL Authentication so Postfix does not work

norman@ubuntu:~$ sudo service saslauthd start * Starting SASL Authentication Daemon saslauthd
* No run directory defined for saslauthd, not starting

Where does the run directory go? The install script should have defined this.

May be related to my other posts about not being able to send email.

Closed (fixed)


Eric - I think you are already looking into this one..

What are the contents of your /etc/default/saslauthd file?

Got it fixed the PRAMS varible was defined wrong. It should have been OPTIONS="-c -r -m /var/run/saslauthd" NOT OPTIONS="-m /var/run/saslauthd -r"

Issue Fixed. Still can't sent email.

norman@ubuntu:~$ telnet 25 Trying Connected to Escape character is '^]'. Connection closed by foreign host. norman@ubuntu:~$

DNS report reports the same thing.

Yeah, no obvious problems are standing out -- the next step would be for us to log in over SSH and take a look.

If that's okay, you can either enable the remote support module, or email root login details to If the do the latter, include a link to this support request in the message body.


Noticed something odd:

i have four domains.,,,

From the browser url All point to the webpage. WTF?

How Do i fix this? Is this related to me not being able to send email?

Those are unrelated issues.

If you'd like us to help with the email problem, we'll need SSH access as mentioned above.

We can fix additional issues you're seeing on your server at that point, one step at a time ;-)

How would that be done?

Hrm, I explained that in comment #4 above :-)

Doing that now.

Scheduling removal of keys at 25/Sep/2009 23:59 .. .. done.

Creating master administrator Webmin login virtualmin-support .. .. done.

Sending notification of remote access to .. .. sent

What time zone are you in?

ok. Just wanted to know how long to leave th servers on. Will you be able to take a look at it tonight? I gotta have email working for the ISP launch.

Okay, the email seems to be working now.

There were two parameters configured in Postfix that were causing problems.

The first was "smtpd_sasl_security_options = noanonymous noplaintext". I commented that out, which causes Postfix to just use the default value of "noanonymous".

The other was the "relayhost = localhost" option, which was causing a mail loop. I commented that out as well.

I'm now able to connect to port 25, and was able to sent a test email.

Now, regarding the website issues you were talking about --

The alias "" isn't setup for any of your domains; so it'll display the default website for that IP address.

If you're looking to use webmail, the alias setup for that is actually "".


I was able to send email from the page to my gmail account. Strangely enough, I still can't send mail from roundcube install. Any ideas?

Once again, thanks a lot!!

Sure thing.

Whenever something doesn't work, the key is to look in the logs and figure out what the logs are saying, as well as to provide all relevant error messages you saw at the time.

So if you tried to to send an email and it didn't go through, look in /var/log/mail.log, find the address you tried to send a message to, and look to see if there is an error of some kind associated with it.

I will offer that your hostname, "", doesn't have any DNS associated with it, so some servers may reject emails from your server based on that. You might want to setup an "A" record for that name.


You've been a life saver!

No problem... if you're having trouble with RoundCube still, by all means let us know!

Just be sure to include any details from the logs and any error messages you might have seen.

Good luck with your ISP launch!

Thanks. I still can't send through roundcube. Logged in admin/sony777. Getting smtp error (535) authentication failed.

Checked logs:

Sep 23 12:05:01 ubuntu postfix/smtpd[22508]: warning: SASL authentication failure: cannot connect to saslauthd server: No such file or directory

Sep 23 12:05:01 ubuntu postfix/smtpd[22508]: warning: localhost[]: SASL LOGIN authentication failed: generic failure

norman@ubuntu:~$ sudo testsaslauthd -u -p sony777 0: OK "Success."

I've enabled remote access.

Thanks for the details.

What URL can I use to access your RoundCube install?

I'd like to be able to send some tests....

Though, give it another try, I did make a change that may help.


It looks like the value of the OPTIONS statement in /etc/default/saslauthd was incorrect.

I set the line to:

OPTIONS="-c -r -m /var/spool/postfix/var/run/saslauthd"

And then restarted saslauthd.

It looks like Postfix is being chrooted on your server, so the path of the saslauthd directory now reflects that.

I was then able to send a test message.


Email Works!