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

Reply
 
LinkBack (8) Thread Tools Display Modes
  #1 (permalink)  
Old 01-10-2007, 09:15 AM
Miz Miz is offline
Member
 
Join Date: Jan 2007
Posts: 19
Miz is on a distinguished road
Smile RESOLVED: saslauthd: Permission denied (external SMTP AUTH broken)

Version 4.0.5_GA_518.RHEL4 Dec 18, 2006

- All Zimbra services running (minus Perdition, not used)
- All webservices working properly
- HTTPS mode
- Custom port
- SASL URL is correct (zimbra_url)
- zimbraMtaAuthURL is correct

- libexec/zmfixperms has been run successfully
- all services have been recently restarted

/var/log/zimbra.log:
Code:
Jan 10 11:59:39 nobox postfix/smtpd[12391]: warning: SASL authentication failure: cannot connect to saslauthd server: Permission denied
Jan 10 11:59:39 nobox postfix/smtpd[12391]: warning: wherever.tld[ip.ip.ip.ip]: SASL LOGIN authentication failed

Additional info:
Code:
$ ls -ld /opt/zimbra/cyrus-sasl/state
drwxr-x---  2 zimbra zimbra 4096 Jan 10 11:59 /opt/zimbra/cyrus-sasl/state

$ ls -l /opt/zimbra/cyrus-sasl/state
total 4
srwxrwxrwx  1 zimbra zimbra 0 Jan 10 11:59 mux
-rw-------  1 zimbra zimbra 0 Jan 10 11:59 mux.accept
-rw-------  1 zimbra zimbra 6 Jan 10 11:59 saslauthd.pid
Using:
Thunderbird 1.5.0.9, TLS

Help?

Last edited by Miz : 01-26-2007 at 05:44 PM. Reason: Add client info
Reply With Quote
  #2 (permalink)  
Old 01-18-2007, 11:49 AM
bobby bobby is offline
Zimbra Employee
 
Join Date: Nov 2005
Posts: 497
bobby is on a distinguished road
Default

add this line to /etc/syslog.conf and then restart (kill -1) syslogd:
auth.* -/var/log/zimbra.log

that will send the saslauthd logging there instead of nowhere. go ahead and post the output of these commands as well:

su - zimbra
zmprov getServer nobox.whatever.com | grep -e Mode -e Auth -e Port
cat ~/cyrus-sasl/etc/saslauthd.conf*
__________________
Search the Forums - Bugzilla - Wiki - Downloads
Reply With Quote
  #3 (permalink)  
Old 01-18-2007, 01:10 PM
Miz Miz is offline
Member
 
Join Date: Jan 2007
Posts: 19
Miz is on a distinguished road
Default

I have successfully upgraded to Version 4.5.0_GA_612.RHEL4 Jan 15, 2007 today, but this problem remains.

Info requested:
Code:
[zimbra@mail ~]$ zmprov getServer mail.whatever.tld | grep -e Mode -e Auth -e Port
zimbraAdminPort: 7071
zimbraImapBindPort: 143
zimbraImapProxyBindPort: 143
zimbraImapSSLBindPort: 993
zimbraImapSSLProxyBindPort: 993
zimbraLmtpBindPort: 7025
zimbraMailMode: https
zimbraMailPort: 73
zimbraMailSSLPort: 74
zimbraMtaAuthEnabled: TRUE
zimbraMtaAuthHost: mail.whatever.tld
zimbraMtaAuthURL: https://mail.whatever.tld:74/service/soap/
zimbraMtaTlsAuthOnly: TRUE
zimbraNotifyBindPort: 7035
zimbraNotifySSLBindPort: 7036
zimbraPop3BindPort: 110
zimbraPop3ProxyBindPort: 110
zimbraPop3SSLBindPort: 995
zimbraPop3SSLProxyBindPort: 995
zimbraRemoteManagementPort: 22
zimbraSmtpPort: 25
[zimbra@mail ~]$ cat ~/cyrus-sasl/etc/saslauthd.conf
zimbra_url: https://mail.whatever.tld:74/service/soap/
zimbra_cert_file: /opt/zimbra/conf/smtpd.crt
zimbra_cert_check: off
Attempted login:
Code:
Jan 18 16:04:59 mail postfix/smtpd[3880]: connect from somewhere.at.comcast.net[9.8.7.6]
Jan 18 16:04:59 mail postfix/smtpd[3880]: setting up TLS connection from somewhere.at.comcast.net[9.8.7.6]
Jan 18 16:04:59 mail postfix/smtpd[3880]: TLS connection established from somewhere.at.comcast.net[9.8.7.6]: TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)
Jan 18 16:05:28 mail postfix/smtpd[3880]: warning: SASL authentication failure: cannot connect to saslauthd server: Permission denied
Jan 18 16:05:28 mail postfix/smtpd[3880]: warning: SASL authentication failure: Password verification failed
Jan 18 16:05:28 mail postfix/smtpd[3880]: warning: somewhere.at.comcast.net[9.8.7.6]: SASL PLAIN authentication failed
Jan 18 16:05:28 mail postfix/smtpd[3880]: warning: SASL authentication failure: cannot connect to saslauthd server: Permission denied
Jan 18 16:05:28 mail postfix/smtpd[3880]: warning: somewhere.at.comcast.net[9.8.7.6]: SASL LOGIN authentication failed
Jan 18 16:05:31 mail postfix/smtpd[3880]: warning: SASL authentication failure: cannot connect to saslauthd server: Permission denied
Jan 18 16:05:31 mail postfix/smtpd[3880]: warning: SASL authentication failure: Password verification failed
Jan 18 16:05:31 mail postfix/smtpd[3880]: warning: somewhere.at.comcast.net[9.8.7.6]: SASL PLAIN authentication failed
Jan 18 16:05:31 mail postfix/smtpd[3880]: warning: SASL authentication failure: cannot connect to saslauthd server: Permission denied
Jan 18 16:05:31 mail postfix/smtpd[3880]: warning: somewhere.at.comcast.net[9.8.7.6]: SASL LOGIN authentication failed
Jan 18 16:06:01 mail pam_loginuid[4059]: set_loginuid failed opening loginuid
/etc/syslog.conf
Code:
# Log all kernel messages to the console.
# Logging much else clutters up the screen.
#kern.*                                                 /dev/console

# Log anything (except mail) of level info or higher.
# Don't log private authentication messages!
*.info;mail.none;authpriv.none;cron.none                /var/log/messages

# The authpriv file has restricted access.
authpriv.*                                              /var/log/secure

# Log all the mail messages in one place.
mail.*                                                  -/var/log/maillog


# Log cron stuff
cron.*                                                  /var/log/cron

# Everybody gets emergency messages
*.emerg                                                 *

# Save news errors of level crit and higher in a special file.
uucp,news.crit                                          /var/log/spooler

# Save boot messages also to boot.log
local7.*                                                /var/log/boot.log
# added by openldap2.3-2.3.27 rpm Fri Nov 17 17:39:36 EST 2006
local0.*                -/var/log/zimbra.log
auth.*                  -/var/log/zimbra.log
mail.*                -/var/log/zimbra.log
I verified that syslogd restarted as a result of the kill command, after editing the syslog.conf, and made the change before attempting to log in via SMTP/TLS again.
Reply With Quote
  #4 (permalink)  
Old 01-18-2007, 01:25 PM
Miz Miz is offline
Member
 
Join Date: Jan 2007
Posts: 19
Miz is on a distinguished road
Default

/opt/zimbra/conf/smtpd.crt is:
Code:
-rwx------  1 zimbra zimbra 1078 Jan 18 10:24 /opt/zimbra/conf/smtpd.crt
And appears to be a well-formed certificate.

/opt/zimbra/cyrus-sasl/lib/sasl2 is:
Code:
#
# This is ${cyrus-sasl-prefix}/lib/sasl2/smtpd.conf
#
log_level: 3
pwcheck_method: saslauthd
mech_list: PLAIN LOGIN
saslauthd_path: /opt/zimbra/cyrus-sasl/state/mux
I uncommented the saslauthd_path and restarted Zimbra's saslauthd using zmsaslauthdctl restart

This resulted in saslauthd finally logging, but these are the only lines it spit out:
Code:
Jan 18 16:20:11 mail saslauthd[9609]: detach_tty      : master pid is: 9609
Jan 18 16:20:11 mail saslauthd[9609]: ipc_init        : listening on socket: /opt/zimbra/cyrus-sasl-2.1.21.ZIMBRA/state/mux
Reply With Quote
  #5 (permalink)  
Old 01-18-2007, 01:33 PM
anand anand is offline
Zimbra Employee
 
Join Date: Sep 2005
Posts: 274
anand is on a distinguished road
Default

On my system, I see:

Code:
$ ls -al /opt/zimbra/cyrus-sasl/state/
total 12
drwxr-xr-x  2 zimbra zimbra 4096 Jan 16 15:49 .
drwxr-xr-x  8 root   zimbra 4096 Jan 16 15:43 ..
srwxrwxrwx  1 zimbra zimbra    0 Jan 16 15:49 mux
-rw-------  1 zimbra zimbra    0 Jan 16 15:49 mux.accept
-rw-------  1 zimbra zimbra    6 Jan 16 15:49 saslauthd.pid
What do you have?
__________________
Bugzilla - Wiki - Downloads - Before posting... Search!
Reply With Quote
  #6 (permalink)  
Old 01-18-2007, 01:53 PM
Miz Miz is offline
Member
 
Join Date: Jan 2007
Posts: 19
Miz is on a distinguished road
Default

Code:
# ls -al /opt/zimbra/cyrus-sasl/state
total 12
drwxr-x---  2 zimbra zimbra 4096 Jan 18 16:30 .
drwxr-xr-x  8 root   zimbra 4096 Jan 18 10:23 ..
srwxrwxrwx  1 zimbra zimbra    0 Jan 18 16:30 mux
-rw-------  1 zimbra zimbra    0 Jan 18 16:30 mux.accept
-rw-------  1 zimbra zimbra    6 Jan 18 16:30 saslauthd.pid
Reply With Quote
  #7 (permalink)  
Old 01-18-2007, 01:55 PM
Miz Miz is offline
Member
 
Join Date: Jan 2007
Posts: 19
Miz is on a distinguished road
Default

Code:
[root@mail SPECS]# cat /opt/zimbra/cyrus-sasl/state/saslauthd.pid 
13905
[root@mail SPECS]# ps 13905
  PID TTY      STAT   TIME COMMAND
13905 ?        Ss     0:00 /opt/zimbra/cyrus-sasl-2.1.21.ZIMBRA/sbin/saslauthd -r -a zimbra
[root@mail SPECS]# grep 13905 /var/log/zimbra.log 
Jan 18 16:30:49 mail saslauthd[13905]: detach_tty      : master pid is: 13905
Jan 18 16:30:49 mail saslauthd[13905]: ipc_init        : listening on socket: /opt/zimbra/cyrus-sasl-2.1.21.ZIMBRA/state/mux
Reply With Quote
  #8 (permalink)  
Old 01-18-2007, 02:08 PM
anand anand is offline
Zimbra Employee
 
Join Date: Sep 2005
Posts: 274
anand is on a distinguished road
Default

How about:

Code:
# ldd /opt/zimbra/postfix/libexec/smtpd  | grep sasl
        libsasl2.so.2 => /opt/zimbra/cyrus-sasl/lib/libsasl2.so.2 (0x0000002a95a00000)
Path to the socket is hard coded in SASL client libs (I think), and this will tell us if you are using the lib that came with Zimbra or not.

Infact the sure fire way to check this is to find a live "smtpd" process and pmap it.

Code:
 # pmap 12314 | grep sasl2.so
0000002a95a00000     88K r-x--  /opt/zimbra/cyrus-sasl-2.1.21.ZIMBRA/lib/libsasl2.so.2.0.21
0000002a95a16000   1024K -----  /opt/zimbra/cyrus-sasl-2.1.21.ZIMBRA/lib/libsasl2.so.2.0.21
0000002a95b16000      4K rw---  /opt/zimbra/cyrus-sasl-2.1.21.ZIMBRA/lib/libsasl2.so.2.0.21
__________________
Bugzilla - Wiki - Downloads - Before posting... Search!
Reply With Quote
  #9 (permalink)  
Old 01-18-2007, 02:15 PM
Miz Miz is offline
Member
 
Join Date: Jan 2007
Posts: 19
Miz is on a distinguished road
Default

Code:
# ldd /opt/zimbra/postfix/libexec/smtpd | grep sasl
        libsasl2.so.2 => /opt/zimbra/cyrus-sasl/lib/libsasl2.so.2 (0xb7d65000)
Now there's an interesting find...

No smptd.

I had one a minute ago.

Code:
postfix   1033  0.0  0.3  7048 2576 ?        S    17:08   0:00 smtpd -n 127.0.0.1:10025 -t inet -u -o content_filter  -o local_recipient_maps  -o virtual_mailbox_maps  -o virtual_alias_maps  -o relay_recipient_maps  -o smtpd_restriction_classes  -o smtpd_delay_reject no -o smtpd_client_restrictions permit_mynetworks,reject -o smtpd_helo_restrictions  -o smtpd_sender_restrictions  -o smtpd_recipient_restrictions permit_mynetworks,reject -o mynetworks_style host -o mynetworks 127.0.0.0/8 -o strict_rfc821_envelopes yes -o smtpd_error_sleep_time 0 -o smtpd_soft_error_limit 1001 -o smtpd_hard_error_limit 1000 -o smtpd_client_connection_count_limit 0 -o smtpd_client_connection_rate_limit 0 -o receive_override_options no_header_body_checks,no_unknown_recipient_checks,no_address_mappings

[root@mail ~]# pmap 1033
[root@mail ~]#
Code:
[root@mail ~]# ps aux | grep smtp
root      2951  0.0  0.0  3732  668 pts/9    R+   17:11   0:00 grep smtp
[root@mail ~]# ps aux | grep postfix
root     13860  0.0  0.2  6556 1700 ?        Ss   16:30   0:00 /opt/zimbra/postfix-2.2.9/libexec/master
postfix  13880  0.0  0.2  6604 1684 ?        S    16:30   0:00 pickup -l -t fifo -u
postfix  13881  0.0  0.2  6636 1768 ?        S    16:30   0:00 qmgr -l -t fifo -u
postfix  14631  0.0  0.2  6600 1752 ?        S    16:33   0:00 tlsmgr -l -t unix -u
postfix   1027  0.0  0.2  6592 1684 ?        S    17:08   0:00 proxymap -t unix -u
postfix   1028  0.0  0.2  6612 1896 ?        S    17:08   0:00 trivial-rewrite -n rewrite -t unix -u
postfix   1303  0.0  0.2  6600 1684 ?        S    17:10   0:00 showq -t unix -u
root      2953  0.0  0.0  3736  672 pts/9    R+   17:11   0:00 grep postfix
Code:
$ zmcontrol status
Host mail.whatever.tld
        antispam                Running
        antivirus               Running
        ldap                    Running
        logger                  Running
        mailbox                 Running
        mta                     Running
        snmp                    Running
        spell                   Running
Reply With Quote
  #10 (permalink)  
Old 01-18-2007, 02:18 PM
Miz Miz is offline
Member
 
Join Date: Jan 2007
Posts: 19
Miz is on a distinguished road
Default

I hit up 'master' (Postfix).

Close enough?

Code:
b7d56000     76K r-x--  /opt/zimbra/cyrus-sasl-2.1.21.ZIMBRA/lib/libsasl2.so.2.0.21
b7d69000      4K rw---  /opt/zimbra/cyrus-sasl-2.1.21.ZIMBRA/lib/libsasl2.so.2.0.21
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On

LinkBacks (?)
LinkBack to this Thread: http://www.zimbra.com/forums/installation/6171-saslauthd-permission-denied-external-smtp-auth-broken.html
Posted By For Type Date
dmp900's bookmarks tagged with This thread Refback 10-24-2007 06:53 AM
Zimbra + smtp - SWiK This thread Refback 10-16-2007 07:05 AM
auth + Zimbra - SWiK This thread Refback 10-09-2007 09:00 AM
auth + smtp - SWiK This thread Refback 10-02-2007 07:55 AM
sasl + auth - SWiK This thread Refback 09-20-2007 08:18 PM
sasl - SWiK This thread Refback 09-07-2007 02:50 PM
SMTP + Zimbra - SWiK This thread Refback 09-03-2007 04:57 AM
saslauthd: Permission denied (external SMTP AUTH broken) - Zimbra - Forums This thread Refback 06-01-2007 11:57 PM

Similar Threads
Thread Thread Starter Forum Replies Last Post
need advice on configuring zimbra to work with fax server pheonix1t Administrators 0 07-11-2007 07:46 PM
Backup issues telescop Administrators 3 03-01-2007 05:09 PM
Ldap issues mississippiman Installation 11 01-09-2007 07:00 PM
Enable SMTP Auth to external users VictorMedina Administrators 1 05-24-2006 10:06 AM
Move server to different OS EriSan500 Administrators 7 03-05-2006 12:00 PM


freshmeat.net sourceforge.net The best Java IDE



 

Search Engine Optimization by vBSEO 3.0.0