SMTP Auth failure debian 3.1 sarge

Discussion in 'Installation/Configuration' started by dschmid, Apr 2, 2006.

  1. dschmid

    dschmid New Member

    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: [[email protected]] [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 [email protected] -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.
  2. falko

    falko Super Moderator Howtoforge Staff

    You must use usernames for the login (e.g. web1_myaccount), not email addresses like [email protected]!
  3. dschmid

    dschmid New Member

    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: [[email protected]] [service=smtp] [] [mech=shadow] [reason=Unknown]
    How can the extension come to my username :confused:

    The password is okay. Receiving emails work fine.
  4. falko

    falko Super Moderator Howtoforge Staff

    What's in /etc/default/saslauthd?
  5. dschmid

    dschmid New Member

    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
  6. dschmid

    dschmid New Member

    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

Share This Page