2 messages in net.sourceforge.lists.courier-users[courier-users] Relay-ctrl-allow 3.1....
FromSent OnAttachments
Mark AdamsOct 24, 2003 3:28 pm 
Mark AdamsOct 25, 2003 8:18 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[courier-users] Relay-ctrl-allow 3.1.1 with Courier IMAP 1.7.3 failing as authmoduleActions...
From:Mark Adams (ma@SpamStopsHere.com)
Date:Oct 25, 2003 8:18:51 am
List:net.sourceforge.lists.courier-users

I have installed relay-ctrl-allow 3.1.1 and courier IMAP 1.7.3 on a Red Hat
Linux 7.3 box with vmailmgr 0.96.9 and qmail.

I'm having problems with the relay-ctrl-allow authmodule in
/usr/lib/courier-imap/etc/imapd.

Courier imap is being started via couriertcpd:

root 16689 1 0 17:53 ? 00:00:00
/usr/lib/courier-imap/libexec/couriertcpd -address=0
-stderrlogger=/usr/lib/courier-imap/libexec/courierlogger
-stderrloggername=imapd -maxprocs=40 -maxperip=16 -pid=/var/run/imapd.pid
-nodnslookup -noidentlookup 143 /usr/lib/courier-imap/sbin/imaplogin
/usr/lib/courier-imap/libexec/authlib/authvmailmgr
/usr/lib/courier-imap/libexec/authlib/relay-ctrl-allow
/usr/lib/courier-imap/bin/imapd Maildir

When I list my authmodules as this:

AUTHMODULES="authvmailmgr relay-ctrl-allow"

the child IMAP process is started as root.

root 13710 12973 0 17:39 ? 00:00:00 /usr/lib/courier-imap/bin/imapd
Maildir

This child process should be started as the system user.

A file is successfully created in /var/spool/relay-ctrl/allow containing the
appropriate information:

USER=pop110

If I list relay-ctrl-allow first:

AUTHMODULES="relay-ctrl-allow authvmailmgr"

Then everything works great:

pop110 32638 24478 0 17:46 ? 00:00:00 /usr/lib/courier-imap/bin/imapd
Maildir

Only of course the file in /var/spool/relay-ctrl/allow is 0 bytes.

If I remove relay-ctrl allow completey:

AUTHMODULES="authvmailmgr"

Then everything works great:

pop110 32638 24478 0 17:46 ? 00:00:00 /usr/lib/courier-imap/bin/imapd
Maildir

Only of course, no IP address file is added to /var/spool/relay-ctrl/allow.

I've added some debugging stuff to relay-ctrl-allow and rebuilt it, and it seems
like it is getting through without errors.

is_authenticated() is true. It's able to make_file ok. argc !> 1 It's exiting with 0.

The obvious problem is that the child is being spawned as root instead of as the
system user. This means that imap is then unable to create IMAP folders and lots
of other problems. As to why this happens, I have no idea. Is relay-ctrl-allow
3.1.1 totally incompatible with Courier IMAP 1.7.3 as an authentication mdoule?
I haven't seen anyone mention this anywhere doing a google search.

Has anyone gotten this to work, or have any ideas?

Thank you.

Sincerely,

Mark.