[Qmail-it] wrapper per vchkpw

Tullio Andreatta ML t.andreatta at troppoavanti.it
Mon Mar 27 10:51:07 CEST 2006


>> #!/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"
> 
> 
> Perche' questo "-ERR" ?

Perche' l'informatica non e' una scienza esatta ...
(exec puo' fallire, e almeno cosi' il client riceve un messaggio
di errore decente)

-- 
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