Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
courier-auth will not start. (Resolved)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
5th_Horseman
n00b
n00b


Joined: 06 Oct 2004
Posts: 48

PostPosted: Tue Oct 04, 2005 2:40 pm    Post subject: courier-auth will not start. (Resolved) Reply with quote

I have been trying to get squirrelmail working and have tracked my problem back to the authdaemon.

Oct 4 09:36:37 localhost imapd: Connection, ip=[::ffff:127.0.0.1]
Oct 4 09:36:37 localhost imapd: authdaemon: s_connect() failed: Connection refused
Oct 4 09:36:37 localhost imapd: [Hint: perhaps authdaemond is not running?]
Oct 4 09:36:37 localhost imapd: LOGIN FAILED, user=eperry@myroadhouse.com, ip=[::ffff:127.0.0.1]
Oct 4 09:36:37 localhost imapd: authentication error: Connection refused

I try to do a /etc/init.d/courier-auth stop and start
Stopping:
Quote:
* Caching service dependencies ... [ ok ]
* Stopping courier-authlib: authdaemond ...
/sbin/start-stop-daemon: warning: failed to kill 29356: No such process
1 pids were not killed
No process in pidfile `/var/run/authdaemon.pid' found running; none kill [ !! ]

BTW: I turned off --quiet in the script, hoping it would give me a clue to the problem.
Starting:
Quote:

* WARNING: "courier-authlib" has already been started.


I can not seem to get it running, I have rebuild the package 2 times. I just don't get it. I have searched many of the problems but none of the solutions seem to help. I have been at this for 2 days and it is probably something stupid.

my /etc/courier/authlib/authdaemonrc config file
Quote:

##VERSION: $Id: authdaemonrc.in,v 1.12 2005/07/05 12:25:08 mrsam Exp $
#
# Copyright 2000-2005 Double Precision, Inc. See COPYING for
# distribution information.
#
# authdaemonrc created from authdaemonrc.dist by sysconftool
#
# Do not alter lines that begin with ##, they are used when upgrading
# this configuration.
#
# This file configures authdaemond, the resident authentication daemon.
#
# Comments in this file are ignored. Although this file is intended to
# be sourced as a shell script, authdaemond parses it manually, so
# the acceptable syntax is a bit limited. Multiline variable contents,
# with the \ continuation character, are not allowed. Everything must
# fit on one line. Do not use any additional whitespace for indentation,
# or anything else.

##NAME: authmodulelist:2
#
# The authentication modules that are linked into authdaemond. The
# default list is installed. You may selectively disable modules simply
# by removing them from the following list. The available modules you
# can use are: authuserdb authpam authshadow authmysql authcustom authpipe

authmodulelist="authvchkpw"
#authmodulelist="authmysql authpam authuserdb authshadow authcustom authpipe"
##NAME: authmodulelistorig:3
#
# This setting is used by Courier's webadmin module, and should be left
# alone

authmodulelistorig="authuserdb authpam authshadow authmysql authcustom authpipe"

##NAME: daemons:0
#
# The number of daemon processes that are started. authdaemon is typically
# installed where authentication modules are relatively expensive: such
# as authldap, or authmysql, so it's better to have a number of them running.
# PLEASE NOTE: Some platforms may experience a problem if there's more than
# one daemon. Specifically, SystemV derived platforms that use TLI with
# socket emulation. I'm suspicious of TLI's ability to handle multiple
# processes accepting connections on the same filesystem domain socket.
#
# You may need to increase daemons if as your system load increases. Symptoms
# include sporadic authentication failures. If you start getting
# authentication failures, increase daemons. However, the default of 5
# SHOULD be sufficient. Bumping up daemon count is only a short-term
# solution. The permanent solution is to add more resources: RAM, faster
# disks, faster CPUs...

daemons=5

##NAME: authdaemonvar:2
#
# authdaemonvar is here, but is not used directly by authdaemond. It's
# used by various configuration and build scripts, so don't touch it!

authdaemonvar=/var/lib/courier/authdaemon

##NAME: DEBUG_LOGIN:0
#
# Dump additional diagnostics to syslog
#
# DEBUG_LOGIN=0 - turn off debugging
# DEBUG_LOGIN=1 - turn on debugging
# DEBUG_LOGIN=2 - turn on debugging + log passwords too
#
# ** YES ** - DEBUG_LOGIN=2 places passwords into syslog.
#
# Note that most information is sent to syslog at level 'debug', so
# you may need to modify your /etc/syslog.conf to be able to see it.

DEBUG_LOGIN=0

##NAME: DEFAULTOPTIONS:0
#
# A comma-separated list of option=value pairs. Each option is applied
# to an account if the account does not have its own specific value for
# that option. So for example, you can set
# DEFAULTOPTIONS="disablewebmail=1,disableimap=1"
# and then enable webmail and/or imap on individual accounts by setting
# disablewebmail=0 and/or disableimap=0 on the account.

DEFAULTOPTIONS=""

##NAME: LOGGEROPTS:0
#
# courierlogger(1) options, e.g. to set syslog facility
#

LOGGEROPTS=""
Back to top
View user's profile Send private message
5th_Horseman
n00b
n00b


Joined: 06 Oct 2004
Posts: 48

PostPosted: Tue Oct 04, 2005 5:31 pm    Post subject: Reply with quote

I figured it out. I just manually started the auth, grabbed the pid and echoed it to the pid file.

Then stopped the server and started it just find.
Back to top
View user's profile Send private message
tranquilcool
Veteran
Veteran


Joined: 25 Mar 2005
Posts: 1246

PostPosted: Wed Oct 05, 2005 10:55 am    Post subject: Reply with quote

/etc/init.d/courier-authlib zap
_________________
this is a strange strange world.
Back to top
View user's profile Send private message
trossachs
Veteran
Veteran


Joined: 22 Jan 2004
Posts: 1204
Location: London

PostPosted: Sun Oct 09, 2005 12:14 pm    Post subject: Reply with quote

tranquilcool, you do not know how helpful you have just been mate! :D
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum