HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=16)
-   -   SMTP Auth failure debian 3.1 sarge (http://www.howtoforge.com/forums/showthread.php?t=3470)

dschmid 2nd April 2006 19: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:

Code:

Apr  2 18:49:41 h778760 saslauthd[833]: do_auth        : auth failure: [user=web1_myaccount@mydomain.de] [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.

Code:

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

Code:

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

Code:

testsaslauthd -u web1_myaccount@mydomain.de -p mypassword -f /var/spool/postfix/var/run/saslauthd/mux
I get:

Code:

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 22:09

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

dschmid 2nd April 2006 22:48

I use only web1_myaccount in outlook for smtp.


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

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

Code:

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

The password is okay. Receiving emails work fine.

falko 2nd April 2006 23:16

What's in /etc/default/saslauthd?

dschmid 2nd April 2006 23:55

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

Code:

# This needs to be uncommented before saslauthd will be run automatically
#Nach der Installation aktiviert und Params hinzugefügt
START=yes
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
MECHANISMS="shadow"


dschmid 3rd April 2006 11:16

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

Code:

The file /etc/postfix/main.cf  should now look like this:

smtpd_sasl_local_domain = $myhostname

I changed it to:

Code:

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 20:19.

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