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.
-------------------------------------------------------------------------
Mark Adams ([EMAIL PROTECTED])      Greenview Data, Inc.
Web: http://SpamStopsHere.com            PO Box 1586, Ann Arbor, MI 48106
Tel: (734) 996-1300 Fax: (734) 996-1308  Software and services since 1980



-------------------------------------------------------
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community?  Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to