Displaying 1 result from an estimated 1 matches for "pg952".
Did you mean:
pg950
2018 Jul 27
0
Imap post-login script
...are running still)
and after some times there are too many processes
and the limit is reached (imap proces_limit 1500):
1)
#!/bin/sh
case $IP in
10.10.1[1-2][0-7].*) exec "$@" ;;
10.11.2.4[0-9]) exec "$@" ;;
esac
CHECK_USER=`PGPASSWORD="password" /usr/local/pg952/bin/psql -h 10.11.1.3 -q
-t -U postfixuser -d mail -c "select imap_allowed from users where name =
'$USER' LIMIT 1"`
if [ $CHECK_USER == "t" ] ; then
exec "$@"
fi
if [ $CHECK_USER == "f" ] ; then
exit 0
fi
2)
PGPASSWORD="password" /usr/lo...