At 12:53 04/03/2003, you wrote:

I am trying to get spamassassin working with vpopmail and maildrop.
Right now, it works if mail is being sent to existing addresses.

But if mail is being sent to a non-existing address I get the following error:


My .qmail-default looks like this:

# cat .qmail-default
| maildrop -V 3 /etc/maildroprc
| /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox

(the -V 3 was added for extra logging)

Does anybody know what's wrong?

What you want to do is check whether the recipient even exists before you scan for mail.

I've gone to quite some trouble doing so. I've patched vuserinfo to exit with error code 10 when the user doesn't exist.

patch in vuserinfo.c to vexit(10)

        if ( (mypw = vauth_getpw( User, Domain )) == NULL ) {
                if ( Domain[0] == 0 || strlen(Domain)==0) {
                        printf("no such user [EMAIL PROTECTED]", User, DEFAULT_DOMAIN);
                } else {
                        printf("no such user [EMAIL PROTECTED]", User, Domain);
                // change vexit
                // vexit(-1);

Then I do the following:

VHOME=`/var/vpopmail/bin/vuserinfo -d [EMAIL PROTECTED]

if ($VHOMECODE eq 10)
echo 'Sorry, no mailbox here by that name. vpopmail (#5.1.1)'

all this right at the beginning before any spam or virusscan.

- Gregor

Reply via email to