Tomasz Nidecki wrote:
> "Jesse D. Guardiani" <[EMAIL PROTECTED]> wrote in
> news:[EMAIL PROTECTED]:
>
>> What MTA are you using? If it's qmail, I can provide you with step
>> by step instructions (in the same style as Life with Qmail) for
>> running tmda-ofmipd from daemon-tools, along with an 'ofmipdctl'
>> script, just like qmailctl.
>
> That would be great, yes, I'm using Qmail on daemon-tools, like in LwQ.
>
Ok. See attached. My run file is set up for vpopmail virtual domains and
IMAPS. Edit to taste.
--
Jesse Guardiani, Systems Administrator
WingNET Internet Services,
P.O. Box 2605 // Cleveland, TN 37320-2605
423-559-LINK (v) 423-559-5145 (f)
http://www.wingnet.net
We are actively looking for companies that do a lot of long
distance faxing and want to cut their long distance bill by
up to 50%. Contact [EMAIL PROTECTED] for more info.
# --
# Create the ofmipdctl script
# --
vim /usr/local/tmda/bin/ofmipdctl
# *****************************************************************
# NOTE: Place this script in /usr/local/tmda/bin/ofmipdctl
# *****************************************************************
#!/bin/sh
# For Red Hat chkconfig
# chkconfig: - 80 30
# description: the TMDA ofmipd python script
PATH=/usr/local/tmda/bin:/bin:/usr/bin:/usr/local/bin:/usr/local/sbin
export PATH
case "$1" in
start)
echo "Starting tmda-ofmipd"
if svok /service/tmda-ofmipd ; then
svc -u /service/tmda-ofmipd
else
echo tmda-ofmipd supervise not running
fi
if [ -d /var/lock/subsys ]; then
touch /var/lock/subsys/tmda-ofmipd
fi
;;
stop)
echo "Stopping tmda-ofmipd..."
echo " tmda-ofmipd"
svc -d /service/tmda-ofmipd
if [ -f /var/lock/subsys/tmda-ofmipd ]; then
rm /var/lock/subsys/tmda-ofmipd
fi
;;
stat)
svstat /service/tmda-ofmipd
svstat /service/tmda-ofmipd/log
;;
hup)
echo "Sending HUP signal to tmda-ofmipd."
svc -h /service/tmda-ofmipd
;;
help)
cat <<HELP
stop -- stops tmda-ofmipd service (smtp connections refused, nothing goes out)
start -- starts tmda-ofmipd service (smtp connection accepted, mail can go out)
stat -- displays status of tmda-tofmipd service
hup -- same as reload
HELP
;;
*)
echo "Usage: $0 {start|stop|stat|hup|help}"
exit 1
;;
esac
exit 0
# --
# Create your boot symlink to ofmipdctl:
# --
ln -s /usr/local/tmda/bin/ofmipdctl /usr/local/etc/rc.d/ofmipdctl.sh
# --
# Make ofmipdctl an executable and link to path:
# --
chmod 755 /usr/local/tmda/bin/ofmipdctl
chown vpopmail /usr/local/tmda/bin/ofmipdctl
ln -s /usr/local/tmda/bin/ofmipdctl /usr/local/bin
# -----------------------------------------------------------------
# 14.) Create supervise scripts/directories for tmda-ofmipd
# -----------------------------------------------------------------
# --
# Create the supervise directories for the tmda-ofmipd service:
# --
mkdir -p /usr/local/tmda/supervise/tmda-ofmipd/log
vim /usr/local/tmda/supervise/tmda-ofmipd/run
# --
# Create the /usr/local/tmda/supervise/tmda-ofmipd/run file:
# --
#!/bin/sh
exec su -l vpopmail -c "exec /usr/local/tmda/bin/tmda-ofmipd -f -p 0.0.0.0:8025 -R
imaps -S /usr/local/tmda/contrib/vpopmail-vdir.sh" 2>&1
vim /usr/local/tmda/supervise/tmda-ofmipd/log/run
# --
# Create the /usr/local/tmda/supervise/tmda-ofmipd/log/run file:
# --
#!/bin/sh
exec /usr/local/bin/setuidgid vpopmail /usr/local/bin/multilog t /var/log/tmda-ofmipd
# Make the run files executable:
chmod 755 /usr/local/tmda/supervise/tmda-ofmipd/run
chmod 755 /usr/local/tmda/supervise/tmda-ofmipd/log/run
# Then set up the log directories:
mkdir -p /var/log/tmda-ofmipd
chown vpopmail /var/log/tmda-ofmipd
# Finally, link the supervise directory into /service:
ln -s /usr/local/tmda/supervise/tmda-ofmipd /service
# *****************************************************************
# Note: The tmda-ofmipd script will start automatically shortly
# after these links are created. If you don't want it running
# yet, do the following:
# *****************************************************************
ofmipdctl stop