HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (
-   Installation/Configuration (
-   -   SMTP Auth failure debian 3.1 sarge (

dschmid 2nd April 2006 20:10

SMTP Auth failure debian 3.1 sarge
Hello, I installed a new server this week. I followed perfect and everything works fine. I created a webaccount and an emailaccount.

Sending emails with outlook is okay. But receiving not. /var/log/auth.log gives me this error:


Apr  2 18:49:41 h778760 saslauthd[833]: do_auth        : auth failure: [] [service=imap] [realm=] [mech=shadow] [reason=Unknown]
I thinked it was the pam authentification so I reconfigured /etc/default/saslauthd to use the shadow method. But still auth problem.


myhostname:~# testsaslauthd -u web1_myaccount -p mypassword -f /var/spool/postfix/var/run/saslauthd/mux
gives me that:


0: OK "Success."
But when I try:


testsaslauthd -u -p mypassword -f /var/spool/postfix/var/run/saslauthd/mux
I get:


0: NO "authentication failed"
So is the domain extension is the problem?
I hope it isn't a big problem. Thx for help.

falko 2nd April 2006 23:09

You must use usernames for the login (e.g. web1_myaccount), not email addresses like!

dschmid 2nd April 2006 23:48

I use only web1_myaccount in outlook for smtp.

That is the output of /var/log/mail.log:

Apr  2 22:43:08 h778760 postfix/smtpd[4532]: warning:[xx.xx.xx.xx]: SASL LOGIN authentication failed
And that is the output of my /var/log/auth.log


myserver:~# Apr  2 22:43:00 myserver saslauthd[835]: do_auth        : auth failure: [] [service=smtp] [] [mech=shadow] [reason=Unknown]
How can the extension come to my username :confused:

The password is okay. Receiving emails work fine.

falko 3rd April 2006 00:16

What's in /etc/default/saslauthd?

dschmid 3rd April 2006 00:55

Here is the content of /etc/default/saslauthd:


# This needs to be uncommented before saslauthd will be run automatically
#Nach der Installation aktiviert und Params hinzugefügt
PARAMS="-m /var/spool/postfix/var/run/saslauthd -r"
# You must specify the authentication mechanisms you wish to use.
# This defaults to "pam" for PAM support, but may also include
# "shadow" or "sasldb", like this:
# MECHANISMS="pam shadow"

#MECHANISMS="pam" geändert für Outlook Test

dschmid 3rd April 2006 12:16

I solved the problem this morning.
In perfect setup for debian 3.1 you write:


The file /etc/postfix/  should now look like this:

smtpd_sasl_local_domain = $myhostname

I changed it to:


smtpd_sasl_local_domain =
And now all works fine. Greetings and thanks for help

Dirk Schmid

All times are GMT +2. The time now is 19:13.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.