Hi, mmccarn
I am trying to modify pop3 (sorry I made a typo in my previous post).
qmail-pop3d-wrapper.sh is exacutable
[root@mail ~]# ll /var/qmail/bin/qmail-pop3d-wrapper.sh
-rwxrwxrwx 1 root qmail 92 Mar 30 07:19 /var/qmail/bin/qmail-pop3d-wrapper.sh
And:
[root@mail ~]# cat /var/qmail/bin/qmail-pop3d-wrapper.sh
#!/bin/sh
echo "qmail-pop3d: user $USER logged in from $TCPREMOTEIP:$TCPREMOTEPORT" >&7
$@
My /var/service/pop3/run looks like this:
[root@mail ~]# cat /var/service/pop3/run
#!/bin/sh
hostname=$(/sbin/e-smith/config get SystemName)
domain=$(/sbin/e-smith/config get DomainName)
fqdn="$hostname.$domain"
#exec 2>&1
exec 2>&1 7>&1
# Generate ACL files in ./peers
./control/1
exec /usr/local/bin/softlimit -m 5000000 \
tcpsvd \
-v \
-i ./peers \
-c ${CONCURRENCYREMOTE:-200} \
-C ${PER_IP_INSTANCES:-4}:'421 per host concurrency limit reached\r\n' \
-l ${LOCALNAME:-0} \
${LISTENIP:-0} \
${PORT:-pop3} \
/var/qmail/bin/qmail-popup $fqdn \
#checkpassword /var/qmail/bin/qmail-pop3d Maildir \
checkpassword \
/var/qmail/bin/qmail-pop3d-wrapper.sh \
/var/qmail/bin/qmail-pop3d Maildir
After I made the cange I did this:
[root@mail ~]# /etc/init.d/pop3 restart
Restarting pop3 [ OK ]
Thank you for all your help.