DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD General

OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   (View Single Post)  
Old 1st July 2013
Torxed Torxed is offline
Port Guard
 
Join Date: Jul 2013
Location: Sweden
Posts: 10
Thanked 0 Times in 0 Posts
Default postfix + Cyrus SASL - cannot connect to saslauthd server: No such file

Everything is up and running and answer on calls but the login for postfix doesn't seem to work (it works for Courier IMAP, just not postfix).

Here's the error output:

Code:
    Jun 30 22:22:10 HOST postfix/smtps/smtpd[31676]: Anonymous TLS connection established from unknown[<my ip>]: TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)
    Jun 30 22:22:10 HOST postfix/smtps/smtpd[31676]: warning: SASL authentication failure: cannot connect to saslauthd server: No such file or directory
    Jun 30 22:22:10 HOST postfix/smtps/smtpd[31676]: warning: SASL authentication failure: Password verification failed
    Jun 30 22:22:10 HOST postfix/smtps/smtpd[31676]: warning: unknown[<my ip>]: SASL PLAIN authentication failed: generic failure

Here's `/usr/local/lib/sasl2/smtpd.conf`:

Code:
    pwcheck_method: saslauthd
    mech_list: PLAIN LOGIN
    authdaemond_path: /var/run/courier-auth/socket
    log_level: 7
And the socket has been created:

`# ls -l /var/run/courier-auth/`

Code:
    total 4
    -rw-r--r--  1 root  wheel     5 Jun 30 22:19 pid
    -rw-------  1 root  wheel     0 Jun 30 22:19 pid.lock
    srwxrwxrwx  1 root  _postfix  0 Jun 30 22:19 socket
The `/etc/courier/authdaemonrc` says:

Code:
    [...]
    authmodulelist="authpwd"
    [...]
    authdaemonvar=/var/run/courier-auth
    [...]
I have no clue why this is going wrong, or where to begin to check for errors since the log doesn't specify which file it's looking for or where the connection is going wrong so i'm in desperate need of some help here.


System:
=======
* OpenBSD 5.3
* postfix-2.10.20130201-sasl2
* courier-authlib-0.64.0
* courier-imap-4.11.0


Edit: I've also taken into account that postfix runs in a chrooted environment (tried not chrooting as well just for the sake of it) and thus i created a symlink from /var/run/courier-auth -> /storage/spool/postfix/var/run/courier-auth without success.


note:
Code:
# testsaslauthd -u anton -p PassWord123 -f /var/run/courier-auth/socket -s smtp
size read failed
And also

Code:
# testsaslauthd -u anton -p PassWord123 -s smtp                                 
connect() : No such file or directory
Which bothers me, because for some reason /usr/local/lib/sasl2/smtpd.conf isn't taken into account but at the same time, changing pwcheck_method into something obscure it will complain, it just doesn't take the socket path..
Reply With Quote
 

Tags
openbsd 5.3, postfix, sasl

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
OBSD, Postfix, TLS, Sasl *pulling my hair out.* Dazhelpwiz OpenBSD General 2 31st October 2012 01:04 AM
connect to l2pd server mfaridi FreeBSD General 1 9th January 2011 12:48 PM
Problem with Postfix and Sasl auth unixbsd OpenBSD General 1 27th April 2009 03:26 AM
Postfix, SASL w/ LDAP kronic OpenBSD General 2 19th June 2008 06:49 AM
Working Configuration for Openbsd 4.0 - Postfix - SASL - TLS roundkat Guides 0 4th May 2008 05:38 PM


All times are GMT. The time now is 01:58 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick