I was trying to implement Guenter's relay-ctrl code along with
gabriel's extended check_relay plugin. After setting relay-ctrl up,
changing the qpsmtpd run file, and the courier-imap imapd.rc and pop3d.rc
files, and restarting things, both smtp and courier failed.

        I backed out the changes and all is working as before.

        If anyone has this setup working, could you please post the
qpsmtpd run file, and the imapd.rc and pop3d.rc files you used.

        Apart from those items, I have done the following from Guenter's
README file:

make
./installer
create /var/spool/relay-ctrl/allow with suggested permissions
create /etc/relay-ctrl/RELAY_CTRL_DIR with "/var/spool/relay-ctrl/allow"
        as first line
altered qpsmtpd run file similar to suggestion for qmail-smtpd:

#!/bin/sh
QMAILDUID=`id -u smtpd`
NOFILESGID=`id -g smtpd`
exec envdir /etc/relay-ctrl \
#    ^^^^^^^^^^^^^^^^^^^^^^^^
  /usr/local/bin/relay-ctrl-chdir \
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  /usr/bin/softlimit -m 25000000 \
  /usr/bin/tcpserver -c 20 -v -x /etc/tcprules.d/qpsmtpd.cdb -v -R -p \
  -u $QMAILDUID -g $NOFILESGID `head -1 config/IP` smtp \
  /usr/local/bin/relay-ctrl-check \
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  ./qpsmtpd 2>&1

symlinked /usr/local/bin/relay-ctrl-allow to
        /usr/lib/courier-imap/libexec/authlib
altered the AUTHMODULES line in /usr/lib/courier-imap/etc/imapd to read
        AUTHMODULES="authdaemon relay-ctrl-allow"
put "envdir /etc/relay-ctrl /usr/local/bin/relay-ctrl-chdir \" immediately
        before the couriertcpd lines in each of:
        /usr/lib/courier-imap/lib/pop3d.rc
        /usr/lib/courier-imap/lib/imapd.rc

        Any help would be greatly appreciated. Thanks.

-- 
Roger Walker
"HIS Pain - OUR Gain"

Reply via email to