RYAN vAN GINNEKEN said:
> I am also looking for a way to automagically create the simlink for
> IMAPdirs.  So i do not have to mess around with stuff everytime i create
> a new user. Howerver am confused as i have nerver really done any
> scripting so i just cut and paste the stuff from this thread into my
> /usr/local/etc/bincimap/imaps/run file like below and it does not work
> please can someone point me into the right direction

You need to create an additional file to make this work ...  Put this in
your run file (This is my imaps run file, change as necessary..  The
important part is the linkwrapper bit) :

#!/bin/sh
# $Id: run-ssl.in,v 1.1.1.1 2003/08/18 18:06:05 andreaha Exp $
# daemontools supervise run-file for Binc IMAP Service.

exec 2>&1

exec    tcpserver -c 100 -u 0 -g 0                      \
    -l $(hostname) -HDRP                                \
    0 993                                               \
    /opt/bincimap/bin/bincimap-up                       \
    --logtype=multilog                                  \
    --conf=/etc/opt/bincimap/bincimap.conf --ssl --     \
    /home/vpopmail/bin/vchkpw                           \
    /opt/bincimap/bin/linkwrapper \
    /opt/bincimap/bin/bincimapd

And then create a new file called /opt/bincimap/bin/linkwrapper and put
this in it :

#!/bin/sh
test -e Maildir/INBOX || ln -s . Maildir/INBOX
exec $@

That should do it..  :)

---------------------------
Jason 'XenoPhage' Frisvold
Engine / Technology Programmer
[EMAIL PROTECTED]
RedHat Certified - RHCE # 803004140609871
MySQL Pro Certified - ID# 207171862
MySQL Core Certified - ID# 205982910
---------------------------
"Something mysterious is formed, born in the silent void. Waiting alone
and unmoving, it is at once still and yet in constant motion. It is the
source of all programs. I do not know its name, so I will call it the Tao
of Programming."

Reply via email to