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:

    Code:
    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.

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

    falko Super Moderator ISPConfig Developer

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

    falko Super Moderator ISPConfig Developer

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

    dschmid New Member

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

    dschmid New Member

    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
     

Share This Page