Jump to content
Froxlor Forum
  • 0

[solved] courier-authdaemon problem


olma

Question

Hi,

 

at first: nice work you have done!

The installlation went fine and now I am going to configure the services.

 

And here I stuck: Configuring courier(imap/pop3)

 

The command "/etc/init.d/courioer-authdaemon restart" gives several errors regarding "Command not found".

Config file: authdaemonrc

 

Line 26,28,33,35,52,54,60,62,67

 

Did I missed something?

 

Thanks!

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

This is the upcoming error while executing '/etc/init.d/courier-authdaemon restart':

 

 


Stopping Courier authentication services: authdaemond/etc/courier/authdaemonrc: : command not found
: command not foundemonrc: line 26:
: command not foundemonrc: line 28:
: command not foundemonrc: line 33:
: command not foundemonrc: line 35:
: command not foundemonrc: line 52:
: command not foundemonrc: line 54:
: command not foundemonrc: line 60:
: command not foundemonrc: line 62:
: command not foundemonrc: line 67:
.
Starting Courier authentication services: authdaemond/etc/courier/authdaemonrc: : command not found
: command not foundemonrc: line 26:
: command not foundemonrc: line 28:
: command not foundemonrc: line 33:
: command not foundemonrc: line 35:
: command not foundemonrc: line 52:
: command not foundemonrc: line 54:
: command not foundemonrc: line 60:
: command not foundemonrc: line 62:
: command not foundemonrc: line 67:
.

Link to comment
Share on other sites

It is the auto-generated content from Froxlor:

 

##VERSION: $Id: authdaemonrc.in,v 1.8 2001/10/07 02:16:22 mrsam Exp $
#
# Copyright 2000-2001 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:0
#
# 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: authcustom authcram authuserdb authldap authmysql authpam
authmodulelist="authmysql"
##NAME: authmodulelistorig:1
#
# This setting is used by Courier's webadmin module, and should be left
# alone
authmodulelistorig="authcustom authcram authuserdb authldap authmysql authpam"
##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: version:0
#
# When you have multiple versions of authdaemond.* installed, authdaemond
# just picks the first one it finds.  Set "version" to override that.
# For example:  version=authdaemond.plain
version=""
##NAME: authdaemonvar:0
#
# 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/run/courier/authdaemon

Link to comment
Share on other sites

Okay, it seems that nobody has a solution for this.kind of error.

I am going to install froxlor again in an openVZ environment and try to get courier-authdaemon working.

I'll post the results here... of course. ;)

 

OS: Debian 6.0.4 (latest at this time)

Link to comment
Share on other sites

This was a quick one.

 

The same error occured again! Maybe it's an OS related problem?

This is a generated authdaemonrc of Debian 6.0.4.:

 

 


##VERSION: $Id: authdaemonrc.in,v 1.13 2005/10/05 00:07:32 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 authpgsql authldap authmysql authcustom authpipe

authmodulelist="authpam"

##NAME: authmodulelistorig:3
#
# This setting is used by Courier's webadmin module, and should be left
# alone

authmodulelistorig="authuserdb authpam authpgsql authldap 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/run/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=""

##NAME: LDAP_TLS_OPTIONS:0
#
# Options documented in ldap.conf(5) can be set here, prefixed with 'LDAP'.
# Examples:
#
#LDAPTLS_CACERT=/path/to/cacert.pem
#LDAPTLS_REQCERT=demand
#LDAPTLS_CERT=/path/to/clientcert.pem
#LDAPTLS_KEY=/path/to/clientkey.pem

Link to comment
Share on other sites

courier* is allergic to non-UNIX newlines, i don't really expect this file having windows newlines, but still, this is the only thing i can think of right now, since that happened regulary in the past.

 

install "dos2unix" (it is available in the default debian repository) and run it on the file, just to be sure.

Link to comment
Share on other sites

YES!! I don't believe it!!!

But how can that happen? I used Notepad2 to copy & paste.... Shit!

That was a brilliant idea!! Many thanks!

Here is the output:

 

root@customer:~# dos2unix /etc/courier/authdaemonrc
dos2unix: converting file /etc/courier/authdaemonrc to UNIX format ...
root@customer:~# dos2unix /etc/courier/authmysqlrc
dos2unix: converting file /etc/courier/authmysqlrc to UNIX format ...
root@customer:~# courier-authdaemon restart
-bash: courier-authdaemon: command not found
root@customer:~# /etc/init.d/courier-authdaemon restart
Stopping Courier authentication services: authdaemond.
Starting Courier authentication services: authdaemond.
root@customer:~#

 

You can mark this thread as [solved] :D

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.



×
×
  • Create New...