Quoting Benjamin Tomhave <[EMAIL PROTECTED]>: > First, since the maildirmake is being called by vpopmail user in vchkpw > group, you don't need to do the chown. > Second, I don't think you need the preline command. > Third, how is maildrop getting your mailfilter file if you never tell it > where it is? Or did you set it up as /etc/maildroprc? > And so on...
In FreeBSD, I have it stored as /usr/local/etc/mailprocrc as stated in the maildrop man page. > my .qmail-default looks like: > | maildrop ../mailfilter Took out the preline, now I get this error message: 2003-05-30 18:36:38.233728500 delivery 484: deferral: /usr/local/bin/maildrop:_Invalid_home_directory_permissions_-_world_writable./ > and my mailfilter looks like: > SHELL="/bin/bash" > import EXT > import HOST > VPOP="| /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox" > VHOME=`/home/vpopmail/bin/vuserinfo -d [EMAIL PROTECTED] > > DUMMY=`test -d $VHOME/Maildir` > if ( $RETURNCODE == 1 ) > { > echo "Sorry, no mailbox here by that name. (#5.1.1)" > EXITCODE=100 > exit > } > > DUMMY=`test -d $VHOME/Maildir/.Spam` > if ( $RETURNCODE == 1 ) > { > DUMMY=`/usr/bin/maildirmake -f Spam $VHOME/Maildir` > DUMMY=`echo Inbox.Spam >> $VHOME/Maildir/courierimapsubscribed` > } > > if ( $SIZE < 262144 ) > { > xfilter "/usr/bin/spamc -f -u [EMAIL PROTECTED]" > } > > if (/^X-Spam-Status: *YES/) > { > to "$VHOME/Maildir/.Spam" > echo "Message delivered to $VHOME/Maildir/.Spam" > > exit > } > else > { > to "$VPOP" > exit > } > > exit > > HTH, > > -ben My filter now looks like this: SHELL="/usr/local/bin/bash" import EXT import HOST import HOME VHOME=`/usr/local/vpopmail/bin/vuserinfo -d [EMAIL PROTECTED] DUMMY=`test -d $VHOME/Maildir` if ( $RETURNCODE == 1 ) { echo "Sorry, no mailbox here by that name. (#5.1.1)" EXITCODE=100 exit } DUMMY=`test -d $VHOME/Maildir/.Spam` if ( $RETURNCODE == 1 ) { DUMMY=`/usr/local/bin/maildirmake -f Spam $VHOME/Maildir` DUMMY=`echo Inbox.Spam >> $VHOME/Maildir/courierimapsubscribed` } if (/^X-Spam-Status: *YES/) { to "$VHOME/Maildir/.Spam" echo "Message delivered to $VHOME/Maildir/.Spam" exit } if (/^X-Spam-Status: *NO/) { exit } I slightly modified the end because I have your $VPOP variable called like this in my .qmail-default file: |/usr/local/bin/maildrop |/usr/local/vpopmail/bin/vdelivermail '' bounce-no-mailbox The reason I'm doing it like this for now is because eventually I'm going to append the maildrop to spamc using the -e trigger, that way the .qmail-default of all my vdomains can easily be modified by qmailadmin without having to patch anything. By doing it the way I'm doing it now, it should only effect realirc.org and not effect all the domains systemwide. Any more suggestions? -Patrick > > -----Original Message----- > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > > Sent: Friday, May 30, 2003 4:07 PM > > To: vpopmail list > > Subject: [vchkpw] maildrop and vpopmail/spamassassin > > > > > > I'm running vpopmail 5.3.8 with spamassassin 2.55 (mysql for > > prefs). I'm having > > problems with maildrop performing a mailfilter I found on the > > vpopmail mailling > > list. I am also using courier-imap in conjunction with qmail. > > > > [see http://bluedot.net/mail/archive/read.php?f=2&i=10377&t=10377] > > > > The .SPAM folder is not created, and I am left with the following > > error message: > > > > 2003-05-30 17:44:28.190244500 delivery 359: deferral: > > /usr/local/bin/maildrop:_Invalid_home_directory_permissions_-_worl > d_writable./preline:_fatal:_unable_to_copy_input:> _broken_pipe/ > > > > If I manually perform the maildirmake .SPAM, then chown -R vpopmail:vchkpw > > .SPAM, I get the same error. > > > > In my ~vpopmail/domains/realirc.org/.qmail-default I have: > > > > |preline /usr/local/bin/maildrop > > |/usr/local/vpopmail/bin/vdelivermail '' bounce-no-mailbox > > > > I'm doing it like this so I can just test it on one domain right > > now, so I don't > > break the whole box, heh. > > > > I had to slightly modify the script to fit my proper paths. I > > renamed it to > > maildroprc and placed it in /usr/local/etc (on a FreeBSD 5.0 > > machine) so it > > reads it by default as stated by maildrop's man page. > > > > Below is my maildroprc file: > > > > import EXT > > import HOST > > import HOME > > VHOME=`/usr/local/vpopmail/bin/vuserinfo -d [EMAIL PROTECTED] > > > > if ((/^X-Spam-Flag:.*YES/)) > > { > > `test -d $VHOME/Maildir/.SPAM` > > if( $RETURNCODE == 1 ) > > { > > `maildirmake $VHOME/Maildir/.SPAM; chown -R vpopmail:vchkpw > > $VHOME/Maildir/.SPAM` > > } > > to "$VHOME/Maildir/.SPAM/" > > } > > > > The VPOP was omitted because of my previous statement of how > > vdelivermail is > > called. Below are the permissions for the files/dirs in question: > > > > -rwxr-xr-x 1 root mail 152696 May 29 00:44 /usr/local/bin/maildrop > > -rw-r--r-- 1 root wheel 388 May 30 17:42 /usr/local/etc/maildroprc > > > > In /usr/local/vpopmail/domains: > > drwx------ 9 vpopmail vchkpw 512 May 30 18:01 realirc.org > > > > In /usr/local/vpopmail/domains/realirc.org: > > -rw------- 1 vpopmail vchkpw 92 May 30 18:01 .qmail-default > > > > In /usr/local/vpopmail/domains/realirc.org/cyko: > > ./Maildir: > > total 22 > > drwx------ 8 vpopmail vchkpw 512 May 30 17:46 . > > drwx------ 4 vpopmail vchkpw 512 Apr 18 21:59 .. > > drwx------ 5 vpopmail vchkpw 512 May 30 17:46 .SPAM > > (**manually created**) > > drwx------ 5 vpopmail vchkpw 512 May 1 22:37 .Trash > > drwx------ 5 vpopmail vchkpw 512 May 30 17:30 .sent-mail > > -rw-r--r-- 1 vpopmail vchkpw 241 May 30 16:57 courierimapuiddb > > drwx------ 2 vpopmail vchkpw 1024 May 30 16:57 cur > > -rw------- 1 vpopmail vchkpw 3054 May 30 16:56 maildirsize > > drwx------ 2 vpopmail vchkpw 512 May 30 16:56 new > > drwx------ 2 vpopmail vchkpw 512 May 30 17:33 tmp > > > > ./Maildir/.SPAM: > > total 10 > > drwx------ 5 vpopmail vchkpw 512 May 30 17:46 . > > drwx------ 8 vpopmail vchkpw 512 May 30 17:46 .. > > drwx------ 2 vpopmail vchkpw 512 May 30 17:46 cur > > drwx------ 2 vpopmail vchkpw 512 May 30 17:46 new > > drwx------ 2 vpopmail vchkpw 512 May 30 17:46 tmp > > > > Any ideas are appreciated. Sorry for the immense amount of > > information. I just > > wanted to make sure I covered everything so I can resolve this quickly. > > > > Thanks, > > -Patrick Lahni > > [EMAIL PROTECTED] > > > > ------------------------------------------------- > > This mail sent through IMP: http://horde.org/imp/ > > > > ------------------------------------------------- This mail sent through IMP: http://horde.org/imp/