Re: [vchkpw] maildrop problem with vpopmail
At 12:53 04/03/2003, you wrote: Hi, 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); vexit(10); } Then I do the following: VHOME=`/var/vpopmail/bin/vuserinfo -d [EMAIL PROTECTED] VHOMECODE=$RETURNCODE if ($VHOMECODE eq 10) { echo 'Sorry, no mailbox here by that name. vpopmail (#5.1.1)' EXITCODE=100 exit } all this right at the beginning before any spam or virusscan. - Gregor
Re[2]: [vchkpw] maildrop problem with vpopmail
At 09:06 04/03/2003, you wrote: thnx , it works, damm last time it worked normalway, duno why have to exactly set path to maildroprc file ;( but now its fine, thank you a lot ;)) miki No problem... not exactly sure why you'd want | /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox in the .qmai-default. This way isn't mail always delivered to the mailbox, even if it's spam or a virus? You should do this inside the mailfilter like VPOP=| /var/vpopmail/bin/vdelivermail '' bounce-no-mailbox and then the last thing you do in the mailfilter after all your other checks: exception { to $VPOP exit }
Re: [vchkpw] maildrop problem with vpopmail
At 12:44 03/03/2003, you wrote: Hi, I have maildrop, spamassa, avir, and KAV, when I put |maildrop to .qmail-default for domain I get error @40003e6399702d9e6dbc status: local 0/10 remote 0/20 @40003e639c712d9618ec starting delivery 51: msg 1623022 to local [EMAIL PROTECTED] @40003e639c712d964f9c status: local 1/10 remote 0/20 @40003e639c712e478e9c delivery 51: deferral: maildrop:_Changing_to_/home/vpopmail/maildrop:_Invalid_home_directory_permiss ions_-_world_writable./ but I check all directory has permision 600 for that domain, and i dont have dire /home/vpopmail/maildrop , just /home/vpopmail/domains/... Where's your mailfilter file with the rules and what permissions has it got? What you probably want to do is to specify the file that holds the mailfilter rules on the command line i.e. | /usr/local/bin/maildrop /var/vpopmail/domains/mailfilter Make sure the mailfilter file is owned by vpopmail.vchkpw and has permission 600 Not sure if this solves the problem, but it definitely works here (vpopmail version 5.3.8) - Gregor