I've written a replacement to vpopmail_user_check.pl but in php. The file is
a php shell script and is called vpopmail_user_check.php.
This one checks in mysql (my vpopmail is sql based), and also checks .qmail
files, in short, it fully validates whether or not an email address exists.
It also checks the status of catch-all in .qmail-default. If bounced, it
returns there is no such mailbox, if it is not bounced, but handled by
another mailbox (or even a remote mailbox), any mailbox checked will return
'Exists.'.
While it works great standalone (I checked every possible scenario for email
addresses), I can't get it to run correctly under check_deliver / qpsmtpd. I
tried placing a separate copy of the php binary, and chmoded it 4755, owned
by root:root. It still does not work. I tried 'su - smtpd' (to run it as the
user of qpsmtpd), I run the command and it works perfectly. So what
gives...?!
Thanks!
Skaag