Elliot Foster wrote:
> I don't bother using tcpserver or tcpsvd anymore, I use the --port arg
> like so:
> 
> #!/bin/sh
> exec 2>&1 \
> sh -c '
>   exec \
>     /usr/local/bin/softlimit -m 30000000 \
>     /usr/bin/perl -T -I/path/to/qpsmtpd/lib \
>     /path/to/qpsmtpd/qpsmtpd-forkserver \
>     --listen-address 0 \
>     --port 25 \
>     --port 465 \
>     --port 587 \
>     --limit-connections 40 \
>     --max-from-ip 10 \
>     --user smtpd
> '
> 
> Does that help?

Thank you,
  I have a few questions though.

* Isn't there a plugin to manage the max-from-ip setting?  hosts_allow?
* Wouldn't it better to have this script get the --listen-address from
control/IP?
* If yes to the last question, wouldn't it be nicer to have a file
config/PORTS?
* and in general, would it be nice to use variables in config files
instead of hard coding everything into the script?

I know this is just the script you are using but I'm wondering if the
default scripts could be improved.

Perhaps a script called run_fork in addition to the run script?  I am
also looking at the Sys V init scripts from the wiki.

-- 
JT Moree

Reply via email to