From: Juan Manuel Tato (no email)
Date: Thu Sep 01 2005 - 15:37:28 EDT
after some editing....
my /etc/init.d/courier-authdaemon
----------------------------------
#! /bin/sh -e
prefix="/usr"
exec_prefix=${prefix}
sysconfdir="/etc/courier"
sbindir="${exec_prefix}/sbin"
libexecdir="${prefix}/lib/courier"
#agregado para los hardlinks
mklinks() {
sleep 1
cd /var/spool/postfix/run/courier/authdaemon/
ln /var/run/courier/authdaemon/* .
echo "Links inside the Postfix jail have been created."
}
rmlinks() {
rm -f /var/spool/postfix/run/courier/authdaemon/*
echo "Links inside the Postfix jail have been removed."
}
#fin de agregados
case "$1" in
start)
# Start daemons.
cd /
if test -x ${libexecdir}/authlib/authdaemond
then
echo -n "Starting Courier authdaemon: "
${libexecdir}/authlib/authdaemond start
#creo los links
mklinks
echo "done."
fi
;;
stop)
# Stop daemons.
cd /
if test -x ${libexecdir}/authlib/authdaemond
then
echo -n "Stopping Courier authdaemon: "
${libexecdir}/authlib/authdaemond stop
#borro los links
rmlinks
echo "done."
fi
;;
restart | reload | force-reload)
$0 stop
$0 start
;;
*)
echo "Usage: $0 {start|stop|restart|reload|force-reload}"
>&2
exit 1
;;
esac
exit 0
--------------------------------------------
Juan Manuel Tato wrote:
> i've looked in the authdaemond, but i dont really know haw t fix it.
> thanks any way, i will do some more research.
> manuel
>
> Leandro Santi wrote:
>
>> Juan Manuel Tato, 2005-08-31:
>>
>>
>>> if i make a softlink, the smtp auth doesnt work....
>>>
>>
>>
>> Yes - It's because you're running chrooted. I misread your previous
>> post, sorry. Perhaps you can edit the startup scripts so that the
>> hard links are properly created?
>>
>> Leandro.
>>
>>
>
>
-- ZONA LIBRE www.zonalibre.com.uy | Paysandú 976 Teléfono 9012772 | Fax 9016377 E-mail: MSN:
|
|
|