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

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 12-28-2005, 12:58 PM
Junior Member
 
Posts: 8
Default Cannot SASL authenticate to server

I am having trouble sending email to my ISP's smtp server from the web client. My ISP is expecting a plain username and password.

My postfix main.cf tail

smtpd_sasl_auth_enable = yes
smtpd_tls_auth_only = yes
disable_dns_lookups = yes
message_size_limit = 10240000
relayhost = smtp.mydomain.com
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/opt/zimbra/conf/relay_password
smtp_sasl_mechanism_filter = plain
smtp_tls_enforce_peername = no
smtp_use_tls = no

Username and password in 'relay_password' is correct

Error in var/log/zimbra.log

Dec 28 19:53:04 zimbra postfix/smtp[29914]: warning: SASL authentication failure: No worthy mechs found
Dec 28 19:53:04 zimbra postfix/smtp[29914]: DBE0A1040741: to=, relay=smtp.mydomain.com[XXX.XXX.XX.XXX], delay=6, status=deferred (Authentication failed: cannot SASL authenticate to server smtp.mydomain.com[XXX.XXX.XX.XXX]: no mechanism available)

Thanks in advance for your help
btw - Zimbra is impressive thus far
__________________
Carl Richell | System76 | http://system76.com
Reply With Quote
  #2 (permalink)  
Old 12-28-2005, 01:04 PM
Zimbra Employee
 
Posts: 2,103
Default smtp auth

Try adding your ISPs mailhost to debug_peer_list and increasing the debug_peer_level to 3, then restart postfix.
Reply With Quote
  #3 (permalink)  
Old 12-28-2005, 01:24 PM
Junior Member
 
Posts: 8
Default

Quote:
Originally Posted by marcmac
Try adding your ISPs mailhost to debug_peer_list and increasing the debug_peer_level to 3, then restart postfix.
Where is debug_peer_list? How do increase debug level to 3? -Thanks

#find / debug_peer_list

returns find: debug_peer_list: No such file or directory
__________________
Carl Richell | System76 | http://system76.com

Last edited by crichell; 12-28-2005 at 01:40 PM..
Reply With Quote
  #4 (permalink)  
Old 12-28-2005, 01:41 PM
Zimbra Employee
 
Posts: 2,103
Default postconf

postconf -e debug_peer_list=mail.host.com
postconf -e debug_peer_level=3
postfix reload

This should increase what's logged for the smtp auth transaction

(man 5 postconf will tell you everything you ever wanted to know).
Reply With Quote
  #5 (permalink)  
Old 12-28-2005, 02:16 PM
Junior Member
 
Posts: 8
Default

Quote:
Originally Posted by marcmac
Try adding your ISPs mailhost to debug_peer_list and increasing the debug_peer_level to 3, then restart postfix.
OK now here's zimbra.log output - at least what looks relevant

Dec 28 20:48:13 zimbra postfix/qmgr[7186]: 71751104073F: from=, size=1573, nrcpt=1 (queue active)
Dec 28 20:48:18 zimbra postfix/smtp[7189]: < smtp.myrelay.com[XXX.202.23.141]: 220 jose031.ISPMAILSERVER.com ESMTP Sendmail 8.13.1/8.13.1; Wed, 28 D$Dec 28 20:48:18 zimbra postfix/smtp[7189]: > smtp.myrelay.com[XXX.202.23.141]: EHLO zimbra.MYLOCALDOMAIN.local
Dec 28 20:48:18 zimbra postfix/smtp[7189]: vstream_fflush_some: fd 13 flush 25
Dec 28 20:48:18 zimbra postfix/smtp[7188]: < smtp.myrelay.com[XXX.202.23.141]: 220 jose031.ISPMAILSERVER.com ESMTP Sendmail 8.13.1/8.13.1; Wed, 28 D$Dec 28 20:48:18 zimbra postfix/smtp[7188]: > smtp.myrelay.com[XXX.202.23.141]: EHLO zimbra.MYLOCALDOMAIN.local
Dec 28 20:48:18 zimbra postfix/smtp[7188]: vstream_fflush_some: fd 13 flush 25
Dec 28 20:48:18 zimbra postfix/smtp[7188]: vstream_buf_get_ready: fd 13 got 212
Dec 28 20:48:18 zimbra postfix/smtp[7188]: < smtp.myrelay.com[XXX.202.23.141]: 250-jose031.ISPMAILSERVER.com Hello [XX.42.246.XXX], pleased to meet $Dec 28 20:48:18 zimbra postfix/smtp[7188]: < smtp.myrelay.com[XXX.202.23.141]: 250-ENHANCEDSTATUSCODES
Dec 28 20:48:18 zimbra postfix/smtp[7188]: < smtp.myrelay.com[XXX.202.23.141]: 250-PIPELINING
Dec 28 20:48:18 zimbra postfix/smtp[7188]: < smtp.myrelay.com[XXX.202.23.141]: 250-8BITMIME
Dec 28 20:48:18 zimbra postfix/smtp[7188]: < smtp.myrelay.com[XXX.202.23.141]: 250-SIZE
Dec 28 20:48:18 zimbra postfix/smtp[7188]: < smtp.myrelay.com[XXX.202.23.141]: 250-DSN
Dec 28 20:48:18 zimbra postfix/smtp[7188]: < smtp.myrelay.com[XXX.202.23.141]: 250-ETRN
Dec 28 20:48:18 zimbra postfix/smtp[7188]: < smtp.myrelay.com[XXX.202.23.141]: 250-AUTH PLAIN LOGIN
Dec 28 20:48:18 zimbra postfix/smtp[7188]: < smtp.myrelay.com[XXX.202.23.141]: 250-DELIVERBY
Dec 28 20:48:18 zimbra postfix/smtp[7188]: < smtp.myrelay.com[XXX.202.23.141]: 250 HELP
Dec 28 20:48:18 zimbra postfix/smtp[7188]: match_string: PLAIN ~? plain
Dec 28 20:48:18 zimbra postfix/smtp[7188]: match_string: LOGIN ~? plain
Dec 28 20:48:18 zimbra postfix/smtp[7188]: match_list_match: LOGIN: no match
Dec 28 20:48:18 zimbra postfix/smtp[7188]: server features: 0x102f size 0
Dec 28 20:48:18 zimbra postfix/smtp[7188]: Using ESMTP PIPELINING, TCP send buffer size is 4096
Dec 28 20:48:18 zimbra postfix/smtp[7188]: maps_find: smtp_sasl_passwd: hash:/opt/zimbra/conf/relay_password(0,100): smtp.myrelay.com = username:password
Dec 28 20:48:18 zimbra postfix/smtp[7188]: smtp_sasl_passwd_lookup: host `smtp.myrelay.com' user `username' pass 'password'
Dec 28 20:48:18 zimbra postfix/smtp[7188]: starting new SASL client
Dec 28 20:48:18 zimbra postfix/smtp[7188]: name_mask: noplaintext
Dec 28 20:48:18 zimbra postfix/smtp[7188]: name_mask: noanonymous
Dec 28 20:48:18 zimbra postfix/smtp[7188]: smtp_sasl_authenticate: smtp.myrelay.com[XXX.202.23.141]: SASL mechanisms PLAIN
Dec 28 20:48:18 zimbra postfix/smtp[7188]: warning: SASL authentication failure: No worthy mechs found

a little further down

Dec 28 20:48:18 zimbra postfix/smtp[7189]: send attr reason = Authentication failed: cannot SASL authenticate to server smtp.myrelay.com[XXX.202.23.141]: n$
Dec 28 20:48:18 zimbra postfix/smtp[7189]: private/defer socket: wanted attribute: status
Dec 28 20:48:18 zimbra postfix/smtp[7189]: vstream_fflush_some: fd 14 flush 277
Dec 28 20:48:18 zimbra postfix/smtp[7188]: vstream_buf_get_ready: fd 14 got 10
Dec 28 20:48:18 zimbra postfix/smtp[7188]: input attribute name: status
Dec 28 20:48:18 zimbra postfix/smtp[7188]: input attribute value: 0

Looks like the correct user name and password is being passed - it's a bit Greek to me
__________________
Carl Richell | System76 | http://system76.com

Last edited by crichell; 12-28-2005 at 02:19 PM..
Reply With Quote
  #6 (permalink)  
Old 12-28-2005, 02:33 PM
Zimbra Employee
 
Posts: 2,103
Default smtp_sasl_mechanism_filter

The logs you sent were very helpful - I think that smtp_sasl_authentication_filter is the problem. Your ISPs mailserver is advertising plain and login, but you're only permitting plain - try resetting that:
postconf -e smtp_sasl_authentication_filter=
postfix reload
Reply With Quote
  #7 (permalink)  
Old 12-28-2005, 02:46 PM
Junior Member
 
Posts: 8
Default

Quote:
Originally Posted by marcmac
The logs you sent were very helpful - I think that smtp_sasl_authentication_filter is the problem. Your ISPs mailserver is advertising plain and login, but you're only permitting plain - try resetting that:
postconf -e smtp_sasl_authentication_filter=
postfix reload
I noticed this as well and changed it (postconf -e smtp_sasl_authentication_filter=) - i'm getting the same error after reload

main.cf
smtpd_tls_auth_only = yes
disable_dns_lookups = yes
message_size_limit = 10240000
relayhost = smtp.myrelay.com
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/opt/zimbra/conf/relay_password
smtp_sasl_mechanism_filter =
smtp_tls_enforce_peername = no
smtp_use_tls = no
debug_peer_list = smtp.myrelay.com

the error after reload and sending another email

Dec 28 21:37:21 zimbra postfix/smtp[16054]: smtp_sasl_authenticate: smtp.myrelay.com[XXX.202.23.141]: SASL mechanisms PLAIN LOGIN
Dec 28 21:37:21 zimbra postfix/smtp[16054]: warning: SASL authentication failure: No worthy mechs found
__________________
Carl Richell | System76 | http://system76.com

Last edited by crichell; 12-28-2005 at 02:50 PM..
Reply With Quote
  #8 (permalink)  
Old 12-28-2005, 03:03 PM
Zimbra Employee
 
Posts: 2,103
Default smtp_sasl_security_options

apparently, smtp_sasl_security_options defaults to noplaintext, noanonymous - can you set that, too?

postconf -e smtp_sasl_security_options=
postfix reload
Reply With Quote
  #9 (permalink)  
Old 12-28-2005, 03:11 PM
Junior Member
 
Posts: 8
Default

Quote:
Originally Posted by marcmac
apparently, smtp_sasl_security_options defaults to noplaintext, noanonymous - can you set that, too?

postconf -e smtp_sasl_security_options=
postfix reload
That's it marcmac - Thanks for your help
__________________
Carl Richell | System76 | http://system76.com
Reply With Quote
  #10 (permalink)  
Old 08-22-2007, 10:36 AM
Junior Member
 
Posts: 7
Default

When we use postconf -e ... whatever

Do these changes remain in place across reboots? I thought zimbra redid all of the configurations at startup.

Thanks!!
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.