authdaemon: s_connect() failed: No such file or directory

Discussion in 'Server Operation' started by tronds, Sep 3, 2010.

  1. tronds

    tronds New Member

    Hi, I having problem with imapd / authdaemon. Postfix are receiving mail and sending mail without any problem. But when I try to login; pop3, imap, webmail ( SquirrelMail ) I get this:

    Code:
    Sep  3 12:26:03 lostdot imapd: authdaemon: s_connect() failed: No such file or directory
    Sep  3 12:26:03 lostdot imapd: LOGIN FAILED, [email protected], ip=[::ffff:127.0.0.1]
    Sep  3 12:26:03 lostdot imapd: authentication error: No such file or directory
    
    I have followed this whoto: http://www.howtoforge.com/virtual-users-domains-postfix-courier-mysql-squirrelmail-fedora-13-x86_64 , excellent work btw falko :)

    I have done cut/past and ( I hope ) haven't done any mistakes ;)

    Can someone kick me in the right direction ?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    The email directory is missing. It gets created when the first email is send. To solve the problem, send a email to the account first before you try to access it with imap.
     
  3. tronds

    tronds New Member


    oh.. Im afraid it is not so easy. It seems like it don't check against the mysql. If I write a wrong password it still give the same error.

    And “authmysql” are being used.
    Code:
    Sep  3 10:37:29 lostdot authdaemond: stopping authdaemond children
    Sep  3 10:37:29 lostdot authdaemond: modules="authmysql", daemons=5
    Sep  3 10:37:29 lostdot authdaemond: Installing libauthmysql
    Sep  3 10:37:29 lostdot authdaemond: Installation complete: authmysql
     
  4. falko

    falko Super Moderator Howtoforge Staff

    Please double-check all your configuration files. Also make sure that SELinux is disabled.
     
  5. tronds

    tronds New Member

    I have checked over and can not find any thing wrong.

    but... is this right?


    Code:
    [root@lostdot authdaemon]# netstat -l -n -p | grep authdaemond
    unix  2      [ ACC ]     STREAM     LISTENING     514551 10423/authdaemond /var/spool/authdaemon/socket.tmp
    [root@lostdot authdaemon]# ls -lsa
    totalt 12
    4 drwxr-xr-x.  2 daemon daemon 4096 2010-09-05 17:29 .
    4 drwxr-xr-x. 18 root   root   4096 2010-09-03 02:23 ..
    4 -rw-r--r--   1 root   root      6 2010-09-05 17:29 pid
    0 -rw-------.  1 root   root      0 2010-09-02 18:27 pid.lock
    0 srwxrwxrwx   1 root   root      0 2010-09-05 17:29 socket
    
    why is it listening to "socket.tmp"?



    Code:
    [root@lostdot authlib]# cat /usr/lib/sasl2/smtpd.conf
    pwcheck_method: authdaemond
    log_level: 3
    mech_list: PLAIN LOGIN
    authdaemond_path: /var/spool/authdaemon/socket



    is this way i get:

    Code:
    Sep  5 17:50:14 lostdot imapd: authdaemon: s_connect() failed: No such file or directory
     
  6. falko

    falko Super Moderator Howtoforge Staff

    What's the output of
    Code:
    netstat -tap
    ?
     
  7. tronds

    tronds New Member

    Code:
    Active Internet connections (servers and established)
    Proto Recv-Q Send-Q Local Address               Foreign Address             State       PID/Program name
    tcp        0      0 localhost.localdomain:10024 *:*                         LISTEN      14318/amavisd (mast
    tcp        0      0 localhost.localdomain:10025 *:*                         LISTEN      27420/master
    tcp        0      0 *:mysql                     *:*                         LISTEN      11722/mysqld
    tcp        0      0 lostdot.com:domain          *:*                         LISTEN      21159/named
    tcp        0      0 localhost.localdomai:domain *:*                         LISTEN      21159/named
    tcp        0      0 *:ssh                       *:*                         LISTEN      1985/sshd
    tcp        0      0 localhost.localdomain:ipp   *:*                         LISTEN      1243/cupsd
    tcp        0      0 *:smtp                      *:*                         LISTEN      27420/master
    tcp        0      0 localhost.localdomain:rndc  *:*                         LISTEN      21159/named
    tcp        0      0 localhost.localdomain:mysql localhost.localdomain:44171 ESTABLISHED 11722/mysqld
    tcp        0      0 localhost.localdomain:mysql localhost.localdomain:44170 ESTABLISHED 11722/mysqld
    tcp        0      0 localhost.localdomain:44163 localhost.localdomain:mysql ESTABLISHED 28514/proxymap
    tcp        0      0 localhost.localdomain:44172 localhost.localdomain:mysql ESTABLISHED 28514/proxymap
    tcp        0    596 lostdot.com:ssh             192.168.1.34:varadero-2     ESTABLISHED 9668/0
    tcp        0      0 localhost.localdomain:44164 localhost.localdomain:mysql ESTABLISHED 28514/proxymap
    tcp        0      0 localhost.localdomain:44171 localhost.localdomain:mysql ESTABLISHED 28513/smtpd
    tcp        0      0 localhost.localdomain:mysql localhost.localdomain:44164 ESTABLISHED 11722/mysqld
    tcp        0      0 localhost.localdomain:mysql localhost.localdomain:44172 ESTABLISHED 11722/mysqld
    tcp        0      0 lostdot.com:ssh             81.26.39.dslcustome:prolink ESTABLISHED 15167/1
    tcp        0      0 localhost.localdomain:44170 localhost.localdomain:mysql ESTABLISHED 28514/proxymap
    tcp        0      0 localhost.localdomain:mysql localhost.localdomain:44163 ESTABLISHED 11722/mysqld
    tcp        0      0 *:imaps                     *:*                         LISTEN      27322/couriertcpd
    tcp        0      0 *:pop3s                     *:*                         LISTEN      27334/couriertcpd
    tcp        0      0 *:pop3                      *:*                         LISTEN      27328/couriertcpd
    tcp        0      0 *:imap                      *:*                         LISTEN      27315/couriertcpd
    tcp        0      0 *:http                      *:*                         LISTEN      11976/httpd
    tcp        0      0 *:ssh                       *:*                         LISTEN      1985/sshd
    tcp        0      0 lostdot.com:ipp             *:*                         LISTEN      1243/cupsd
    tcp        0      0 *:smtp                      *:*                         LISTEN      27420/master
    tcp        0      0 lostdot.com:rndc            *:*                         LISTEN      21159/named
    
     
  8. tronds

    tronds New Member

    Ah... found it!!

    If it is the easiest solution i dont know, but it works :)

    What I did was this.

    Code:
    [root@lostdot ~]# locate authdaemond.c
    /home/tronds/rpm/BUILD/courier-authlib-0.63.0/authdaemond.c
    [root@lostdot ~]# cd /home/tronds/rpm/BUILD/courier-authlib-0.63.0/
    [root@lostdot courier-authlib-0.63.0]# nano -w authdaemond.c
    
    find this line and comment it out..

    before:
    Code:
     strcat(skun.sun_path, ".tmp");
    after:
    Code:
     /*strcat(skun.sun_path, ".tmp");*/
    Save.

    then:
    Code:
    [root@lostdot courier-authlib-0.63.0]# ./configure; make
    Don't run "make install" just replace "authdaemond" with that you just compiled.

    Code:
    [root@lostdot courier-authlib-0.63.0]# which authdaemond
    /usr/local/sbin/authdaemond
    [root@lostdot courier-authlib-0.63.0]# cp authdaemond
    [root@lostdot courier-authlib-0.63.0]# cp -f authdaemond /usr/local/sbin/authdaemond
    
    Then you just have to restart "authdaemond"

    Code:
    [root@lostdot courier-authlib-0.63.0]# /etc/init.d/courier-authlib restart
    
     

Share This Page