Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Developers

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-10-2005, 09:36 AM
Junior Member
 
Posts: 8
Default SMTP SASL authentication failure

Hi,

Authentication to SMTP as some domain user <user>@<domain> keeps failing when the domain is other than the host name (or the domain that was created at installation time). The message on the server is:

Oct 10 17:20:45 host saslauthd[11583]: auth_zimbra: <user> auth failed: authentication failed for <user>
Oct 10 17:20:45 host saslauthd[11583]: do_auth : auth failure: [user=<user>] [service=smtp] [realm=<domain>] [mech=zimbra] [reason=Unknown]

This happens with TLS set on & off in SMTP authentication on the server. Restarting saslathd as suggested in another forum thread didn't help either

Authenticating as any user of the hostname domain works fine.
Sending & receiving from the web interface works fine for all domains.

Is this a DNS issue? Any hints so I can investigate it further?


Thanks
John
Reply With Quote
  #2 (permalink)  
Old 10-10-2005, 11:16 AM
Zimbra Employee
 
Posts: 4,792
Default

Are you using the full user@domain for the user name? Some mail clients don't add this and Postfix may only be defaulting to the first domain.
Reply With Quote
  #3 (permalink)  
Old 10-10-2005, 11:22 AM
Junior Member
 
Posts: 8
Default

Hi,

Let me know whether this should move to the dev forum.

Investigating this further revealed that saslauthd is making a SOAP auth call with the domain stripped off the user name and gets back an authentication failure msg:

POST /service/soap/ HTTP/1.1
Host: host
Pragma: no-cache
Accept: */*
Content-Type: text/xml
Content-Length: 299

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"><soap:Header><context xmlns="urn:zimbra"><nosession/></context></soap:Header ><soap:Body><AuthRequest xmlns="urn:zimbraAccount"><account by="name">testuser</account><password>testpasswd</password></AuthRequest></s oap:Body></soap:Envelope>


HTTP/1.1 500 Internal Server Error
Server: Apache-Coyote/1.1
Content-Type: text/html;charset=utf-8
Content-Length: 362
Date: Mon, 10 Oct 2005 17:42:40 GMT
Connection: close

<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"><soap:Body><soap:Fault><soap:Code><soap: Value>soap:Sender</soap:Value></soap :Code><soap:Reason><soap:Text>authentication failed for testuser</soap:Text></soap:Reason><soapetail><Error xmlns="urn:zimbra"><Code>account.AUTH_FA ILED</Code></Error></soapetail></soap:Fault></soap:Body></soap:Envelope>

So it seems the domain name gets through to saslauthd, but it is not passed in the SOAP call?

Thanks
John
Reply With Quote
  #4 (permalink)  
Old 10-10-2005, 12:05 PM
Zimbra Employee
 
Posts: 4,792
Default

I've moved it to the dev forum. We've recreated this here in house and are looking at it now.
Reply With Quote
  #5 (permalink)  
Old 10-10-2005, 01:13 PM
Zimbra Employee
 
Posts: 4,792
Default

There is an easy workaround/fix for this:

su - zimbra
cd /opt/zimbra/bin

EDIT zmsaslauthdctl

CHANGE:
${zimbra_home}/cyrus-sasl-2.1.21.ZIMBRA/sbin/saslauthd -a zimbra
TO:
${zimbra_home}/cyrus-sasl-2.1.21.ZIMBRA/sbin/saslauthd -r -a zimbra

(Basically add a -r to keep the domain)


Then run /opt/zimbra/bin/zmsaslauthdctl restart
Reply With Quote
  #6 (permalink)  
Old 10-10-2005, 01:23 PM
Junior Member
 
Posts: 8
Default

Works great!

Thanks for the excellent support
John
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.