[Qmail-it] wrapper per vchkpw
Tullio Andreatta ML
t.andreatta at troppoavanti.it
Fri Mar 24 18:23:46 CET 2006
M. Dal Cero wrote:
> #!/bin/bash
>
> user=`cat /var/qmail/popdenied | grep "$VPOPUSER"`
>
>
> if [ -z $user ]
> then
> exec /var/qmail/bin/qmail-pop3d $*
> else
> echo "ERROR -> non hai il permesso di accedere al POP3"
> fi
>
Ricordati che stai parlando con un client POP3.
Ti consiglio qualche piccola miglioria:
#!/bin/sh
if grep -Fqx "$VPOPUSER" < /var/qmail/popdenied; then
echo "-ERR non hai il permesso di accedere al POP3"
exit 0
fi
exec /var/qmail/bin/qmail-pop3d "$@"
echo "-ERR exec failed"
exit 0
--
Tullio Andreatta
Disclaimer: "Please treat this email message in a reasonable way, or we
might get angry" ( http://www.goldmark.org/jeff/stupid-disclaimers )
More information about the Qmail-it
mailing list