On Fri, 14 Jul 2000, Jacob Scott wrote:
> I heard there was a patch on the list to let courier-imap utilize the
> "enable-roaming users" feature of vpopmail. Can it be recirculated?
try this
> From: "David Croft" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Subject: Modifying courier-imap to open the smtp relay
> Date: Tue, 16 May 2000 04:22:22 +0100
>
>
> The vpopmail pop3-opens-the-smtp-relay feature is cool, but imap connections
> don't do the same thing. So I modified courier-imap to do it too... it's a
> cheap and dirty solution, perhaps a cleaner method can be implemented into
> the source distribution.
>
> Anyway here's how I did it:
>
> cd /usr/local/src/courier-imap-0.32/authlib/
>
> edit Makefile:
> - find the line
> LIBS =
> - change to
> LIBS = ../../vpopmail-3.4.11-2.released/opensmtp.o
> ../../vpopmail-3.4.11-2.released/libvpopmail.a -lcrypt
> (where ../../vpopmail... is the relative path to my vpopmail source tree)
>
> edit success.c:
> - at the top of the file add:
> #include "../../vpopmail-3.4.11-2.released/opensmtp.h"
> - find the line
> if (chdir(homedir))
> - immediately before this line, insert:
> open_smtp_relay();
>
> cd ..
>
> make clean
> make
> make install-strip
> /etc/rc.d/init.d/imapd.rc stop
> /etc/rc.d/init.d/imapd.rc start
>
> I think that's all I changed... took me quite a while to work it out. Note
> the open_smtp_relay() must go at the top of that function, before it changes
> away from the root user.
>
> --
> |> /+\ \| | |>
>
>
--
|> /+\ \| | |>