e-smith-pop3/root/var/service/pop3s/run

16 lines
331 B
Bash

#!/bin/sh
[ -f ./runenv ] && . ./runenv
exec 2>&1
exec /usr/local/bin/softlimit -m ${MEM} \
tcpsvd \
-v \
-i ./peers \
-c ${CONCURRENCYREMOTE:-40} \
-C ${PER_IP_INSTANCES:-4}:'421 per host concurrency limit reached\r\n' \
-l ${LOCALNAME:-0} \
${LISTENIP:-0} \
${PORT:-pop3s} \
/usr/bin/stunnel stunnel.conf