Re: [gentoo-user] courier-imapd: * BYE imaplogin expected exactly two arguments

2006-02-11 Thread Frederic Jaeckel
Hi Glen,
On Fri, Feb 10, 2006 at 03:19:46PM -0800, glen martin wrote:
 Hello Frederic,
 
 Your pam.d/imap setting is what was originally installed by emerge for 
 me. I'd tried different values here while testing to see if something 
 else would work (and it didn't), but to be certain I switched this 
 setting back, restarted courier services, and then got the same 
 non-working result as always.
 
 I don't fully understand your use of saslauthd. Is that instead of 
 authdaemond, and why? I should have thought that the authdaemond that 
 comes from courier would be a proper fit here.
 
Oups, I'd changed somethin .. saslauthd is only used by postfix to
authenticate. Courier-imap only use the authdaemond. I remembered the
problem and saw that the solution of mine was the following in
/etc/courtier-imap/imapd :

snip
IMAPDSTART=NO
PRERUN=
/snap

in /etc/courier-imap/pop3d :

snip
POP3DSTART=NO
PRERUN=
/snap

Without this i'm not able to authenticate. In my case this was the only
solution and problem.
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] courier-imapd: * BYE imaplogin expected exactly two arguments

2006-02-10 Thread glen martin

Hello Frederic,

Your pam.d/imap setting is what was originally installed by emerge for 
me. I'd tried different values here while testing to see if something 
else would work (and it didn't), but to be certain I switched this 
setting back, restarted courier services, and then got the same 
non-working result as always.


I don't fully understand your use of saslauthd. Is that instead of 
authdaemond, and why? I should have thought that the authdaemond that 
comes from courier would be a proper fit here.


Thanks, and greetings from an alien living in the U.S.,

glen



Frederic Jaeckel wrote:

Hi Glen Martin,

On Wed, Feb 08, 2006 at 04:58:15PM -0800, glen martin wrote:
  

#insert obligatory_ive_looked_everywhere_i_can_think_of.h

I'm provisioning a new mail server, and have installed courier-imap with 
the related courier-authlib.  hardened profile, system pretty fully 
up-to-date.


I'm attempting (or intending) to use PAM authentication.

The usual IMAP testing trick of telnet localhost 143 immediately (no 
chance to enter a command) returns. pam didn't emit any debug output ... 
I suspect it didn't get that far.


# telnet localhost 143
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
* BYE imaplogin expected exactly two arguments.
Connection closed by foreign host.



i'd done the same last week and experienced the same problem. Actually I
think it were cause of different configs. (I hacked many of them and
rebuild em... at least I worked a long time to get it working)

The main fact, why it won't work on my server was that the
/etc/pam.d/imap file didn't contained the right values. So i'd changed
it to:
snip
auth   required pam_nologin.so
auth   required pam_stack.so service=system-auth
accountrequired pam_stack.so service=system-auth
sessionrequired pam_stack.so service=system-auth
/snip

My system is working with that configuration. I use saslauthd as
authentication program wich refers to pam wich authenticate the user
over a mysql db with authdaemond.
At least try it with my pam configuration and if it wont work i can send
ya my whole configs.

Many greetings from Germany,

Frederic Jaeckel
  


--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] courier-imapd: * BYE imaplogin expected exactly two arguments

2006-02-09 Thread Frederic Jaeckel
Hi Glen Martin,

On Wed, Feb 08, 2006 at 04:58:15PM -0800, glen martin wrote:
 #insert obligatory_ive_looked_everywhere_i_can_think_of.h
 
 I'm provisioning a new mail server, and have installed courier-imap with 
 the related courier-authlib.  hardened profile, system pretty fully 
 up-to-date.
 
 I'm attempting (or intending) to use PAM authentication.
 
 The usual IMAP testing trick of telnet localhost 143 immediately (no 
 chance to enter a command) returns. pam didn't emit any debug output ... 
 I suspect it didn't get that far.
 
 # telnet localhost 143
 Trying 127.0.0.1...
 Connected to localhost.
 Escape character is '^]'.
 * BYE imaplogin expected exactly two arguments.
 Connection closed by foreign host.

i'd done the same last week and experienced the same problem. Actually I
think it were cause of different configs. (I hacked many of them and
rebuild em... at least I worked a long time to get it working)

The main fact, why it won't work on my server was that the
/etc/pam.d/imap file didn't contained the right values. So i'd changed
it to:
snip
auth   required pam_nologin.so
auth   required pam_stack.so service=system-auth
accountrequired pam_stack.so service=system-auth
sessionrequired pam_stack.so service=system-auth
/snip

My system is working with that configuration. I use saslauthd as
authentication program wich refers to pam wich authenticate the user
over a mysql db with authdaemond.
At least try it with my pam configuration and if it wont work i can send
ya my whole configs.

Many greetings from Germany,

Frederic Jaeckel
-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] courier-imapd: * BYE imaplogin expected exactly two arguments

2006-02-08 Thread glen martin

#insert obligatory_ive_looked_everywhere_i_can_think_of.h

I'm provisioning a new mail server, and have installed courier-imap with 
the related courier-authlib.  hardened profile, system pretty fully 
up-to-date.


net-libs/courier-authlib-0.58  -berkdb* +crypt -debug +gdbm -ldap -mysql 
+pam -postgres
net-mail/courier-imap-4.0.1  -berkdb* -debug -fam +gdbm -ipv6 +nls 
(-selinux)


I'm attempting (or intending) to use PAM authentication.

The usual IMAP testing trick of telnet localhost 143 immediately (no 
chance to enter a command) returns. pam didn't emit any debug output ... 
I suspect it didn't get that far.


# telnet localhost 143
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
* BYE imaplogin expected exactly two arguments.
Connection closed by foreign host.

In my attempts to research, most references I've found describe mixed 
environments in which the reporters were attempting to use courier-imap 
with someone else's authentication - I'm not.


I found this thread 
http://www.talkaboutsoftware.com/group/linux.gentoo.user/messages/63821.html 
that describes removal of mysql table based authentication.  I've done 
this. No improvement. The thread itself reminds me somewhat of Fermat's 
Last Theorem - the gent in question says the suggestions helped lead him 
to a solution for his problem, but neglects to document what his 
solution actually was).


So there I am. Has anyone else had this problem, or have any insight 
into debugging it?


For the record, I've done tarball installations of courier on debian, 
successfully, even after hacking the code for a variety of reasons. I 
don't want to build this system that way, but I'm frankly scratching my 
head and feeling pretty incompetent. :/


thanks in advance for any help or suggestions.

glen

# emerge --info
Portage 2.0.54 (hardened/x86/2.6, gcc-3.3.6, glibc-2.3.5-r2, 
2.6.14-hardened-r5_g3 i686)

=
System uname: 2.6.14-hardened-r5_g3 i686 AMD Duron(tm) Processor
Gentoo Base System version 1.6.14
dev-lang/python: 2.3.5-r2, 2.4.2
sys-apps/sandbox:1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS=x86
AUTOCLEAN=yes
CBUILD=i686-pc-linux-gnu
CFLAGS=-O2 -march=athlon-xp -pipe
CHOST=i686-pc-linux-gnu
CONFIG_PROTECT=/etc /usr/kde/2/share/config /usr/kde/3/share/config 
/usr/share/config /var/qmail/control

CONFIG_PROTECT_MASK=/etc/gconf /etc/terminfo /etc/env.d
CXXFLAGS=-O2 -march=athlon-xp -pipe
DISTDIR=/usr/portage/distfiles
FEATURES=autoconfig distlocks sandbox sfperms strict
GENTOO_MIRRORS=http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ 
http://gentoo.chem.wisc.edu/gentoo/;

MAKEOPTS=-j2
PKGDIR=/usr/portage//packages/x86/
PORTAGE_TMPDIR=/var/tmp
PORTDIR=/usr/portage/
SYNC=rsync://rsync.us.gentoo.org/gentoo-portage
USE=acpi apache2 berkdb bzip2 cdr crypt cups curl dlloader expat gdbm 
gmp gpm hardened jpeg libclamav lm_sensors mysql ncurses nls nptl 
nptlonly pam pcre perl pic png python readline samba ssl tcpd threads 
tiff truetype udev userlocales vhosts x86 xml2 zlib userland_GNU 
kernel_linux elibc_glibc

Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY

# cat /etc/portage/package.use
net-fs/samba -mysql
net-libs/courier-authlib -berkdb -mysql
net-mail/courier-imap -berkdb
sys-libs/glibc userlocales
www-apps/metadot vhosts


--
gentoo-user@gentoo.org mailing list