View previous topic :: View next topic |
Author |
Message |
jselman n00b

Joined: 06 Mar 2004 Posts: 4 Location: Santiago, Chile
|
Posted: Sat Mar 06, 2004 9:26 pm Post subject: Virtual Mailhosting System with Postfix Guide Problem |
|
|
Hi, I have been trying to configure a mail server as explained in the Virtual Mailhosting System with Postfix guide. I followed the guide step by step, but i have problems initializing Cyrus-sasl...
this is what happens:
zangano root # /etc/init.d/saslauthd start
* Starting saslauthd...
/usr/sbin/saslauthd: invalid option -- H
usage: saslauthd [options]
option information:
-a <authmech> Selects the authentication mechanism to use.
-c Enable credential caching.
-d Debugging (don't detach from tty, implies -V)
-O <option> Optional argument to pass to the authentication
mechanism.
-l Disable accept() locking. Increases performance, but
may not be compatible with some operating systems.
-m <path> Alternate path for the saslauthd working directory,
must be absolute.
-n <procs> Number of worker processes to create.
-s <kilobytes> Size of the credential cache (in kilobytes)
-t <seconds> Timeout for items in the credential cache (in seconds)
-v Display version information and available mechs
-V Enable verbose logging
authentication mechanisms and exit.
-h Dispaly this message.
saslauthd 2.1.14
authentication mechanisms: getpwent pam rimap shadow [ ok ]
zangano root #
Is my /etc/init.d/saslauthd script erroneous?
Thanx
jselman |
|
Back to top |
|
 |
gautamg n00b


Joined: 23 Feb 2004 Posts: 27 Location: New York, NY
|
Posted: Sun Mar 07, 2004 3:31 am Post subject: did you change your config? |
|
|
if any of the files are different from defaults (i.e. if you changed them), please post them here.
/etc/init.d/saslauthd
/etc/conf.d/saslauthd |
|
Back to top |
|
 |
jselman n00b

Joined: 06 Mar 2004 Posts: 4 Location: Santiago, Chile
|
Posted: Sun Mar 07, 2004 4:30 pm Post subject: The requested Files |
|
|
Here are the files you requested:
zangano conf.d # cat saslauthd
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /home/cvsroot/gentoo-x86/dev-libs/cyrus-sasl/files/saslauthd.conf,v 1.2 2004/03/04 18:36:16 vapier Exp $
# Config file for /etc/init.d/saslauthd
# Authentications mechanism (for list see saslauthd -v)
SASL_AUTHMECH=pam
# Hostname for remote IMAP server (if rimap auth mech is used)
SASL_RIMAP_HOSTNAME=""
# Honour time-of-day login restrictions (if shadow auth mech is used)
# Make this ="" to turn it off. Putting =no will turn it on!
SASL_TIME_OF_DAY_LOGIN_RESTRICTIONS=yes
# Tack the above options together
[ -n ${SASL_AUTHMECH} ] && \
SASLAUTHD_OPTS="-a ${SASL_AUTHMECH}"
[ -n ${SASL_RIMAP_HOSTNAME} ] && \
SASLAUTHD_OPTS="${SASLAUTHD_OPTS} -H ${SASL_RIMAP_HOSTNAME}"
[ -n ${SASL_TIME_OF_DAY_LOGIN_RESTRICTIONS} ] && \
SASLAUTHD_OPTS="${SASLAUTHD_OPTS} -T"
--------------------------------------------------------------------------------------------
zangano init.d # cat saslauthd
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /home/cvsroot/gentoo-x86/dev-libs/cyrus-sasl/files/saslauthd2.rc6,v 1.5 2004/03/04 18:37:57 vapier Exp $
depend() {
need net
}
start() {
ebegin "Starting saslauthd"
start-stop-daemon --start --quiet --exec /usr/sbin/saslauthd \
-- ${SASLAUTHD_OPTS}
eend $?
}
stop() {
ebegin "Stopping saslauthd"
start-stop-daemon --stop --quiet --pidfile /var/lib/sasl2/saslauthd.pid
eend $?
}
Thanx for your help
J |
|
Back to top |
|
 |
sputicus n00b


Joined: 03 Mar 2004 Posts: 10
|
Posted: Mon Mar 08, 2004 5:20 pm Post subject: |
|
|
I have the exact same problem.
One thing I noticed was that when the guide asked me to edit /etc/sasl2/smtpd.conf (in the Cyrus-sasl section) the file did not exist. So I created it and put the lines
Code: | pwcheck_method: saslauthd
mech_list: LOGIN PLAIN |
in it. I thought that was a bit strange, because I would think the guide would mention that we would be creating a new file if that was what we were meant to do.
Perhaps the cyrus-sasl package has change recent to cause this porblem for both me and jselman, or perhaps it failed to emerge for both of us the same way this weekend? |
|
Back to top |
|
 |
sputicus n00b


Joined: 03 Mar 2004 Posts: 10
|
|
Back to top |
|
 |
sputicus n00b


Joined: 03 Mar 2004 Posts: 10
|
Posted: Mon Mar 08, 2004 7:15 pm Post subject: |
|
|
Ok, according to the man page for saslauthd, the -H option has been depricated.
Code: | -H hostname
The remote host to be contacted by the rimap authentication mech-
anism. (Depricated, use -O instead) |
I wonder why /etc/init.d/saslauthd is still being installed with the -H option by the cyrus-sasl package? |
|
Back to top |
|
 |
gautamg n00b


Joined: 23 Feb 2004 Posts: 27 Location: New York, NY
|
Posted: Tue Mar 09, 2004 4:28 am Post subject: known bug |
|
|
This is a known bug
https://bugs.gentoo.org/show_bug.cgi?id=41247
If gentoo bugzilla allows voting, go vote for it.
The work around is to change -H to -O in your config file.
Another workaround is to start the process by hand with
/usr/sbin/saslauthd -a pam |
|
Back to top |
|
 |
|