Paul J. Park <paul@idealworldinc.com> wrote:
>
> qmail-initcontrol - a helper program that looks up TCPREMOTEIP and
> TCPREMOTEHOST in a file-based map of regexps to delays. This way,
> it's easy to reconfigure without having to recompile or restart the
> service. It's also easy to add whitelisting to the map.
Eh? You can do this already with no new tools. Create a shellscript qsleep.sh:
#!/bin/sh
[ -n "${GREETDELAY}" ] && sleep "${GREETDELAY}"
exec $@
Change /service/smtpd/run, inserting this script after tcpserver and before
qmail-smtpd:
... tcpserver [args] /path/to/qsleep.sh /var/qmail/bin/qmail-smtpd
Set GREETDELAY in your tcpserver rules wherever you want a delay:
=example.org:allow,GREETDELAY="10"
127.0.0.1:allow
:allow,GREETDELAY="30"
Charles
--
--------------------------------------------------------------------------
Charles Cazabon <qmail@discworld.dyndns.org>
Read http://pyropus.ca/personal/writings/12-steps-to-qmail-list-bliss.html
My services include qmail consulting. See http://pyropus.ca/ for details.
--------------------------------------------------------------------------
|