The mailfilter below is setup for a catch all and if .JunkMail dir exists it puts the spam there if it doesn't it goes to the users inbox.
qmail+vpopmail+sqwebmail+qmailadmin+maildrop+spamassassin.. Now the question if username has the catch all account. but if we send an email to an account that isn't listed it runs $VHOME well you get nothing back because they do not exist. All is well.. Well seeing how username has a .JunkMail folder and is the catch all account any email coming to that domain would go to username. But as in this file $VHOME [EMAIL PROTECTED] gets and email but he isn't a forward or pop etc. So how can I set [EMAIL PROTECTED] to use the same .JunkMail folder as username? because the $VHOME test will not show a path for any users who don't have actual pop accounts. I tried several ways to do this but I got errors and the stuff would not process. THis is what I have so far... VPOP="| /home/vpopmail/bin/vdelivermail '' /home/vpopmail/domains/bluetrucktest.com/username" VHOME=`/home/vpopmail/bin/vuserinfo -d $EXT@$HOST` if ( $SIZE < 262144 ) { exception { xfilter "/usr/bin/spamc -f -u username@$HOST" # i want this to be the default conf for this domain.. } } #if (/^X-Spam-Flag: *YES/) if (/^X-Spam-Status: *Yes,/) { `test -d $VHOME/Maildir/.JunkMail` if( $RETURNCODE != 1 ) { to $VHOME/Maildir/.JunkMail exit } # I want another if statement like or whatever... #`test -d $VHOME/Maildir` if ($RETURNCODE !=1 ) # send it to their pop mailbox. if it does not exist send it to the catch all .JunkMail box. exception { to "$VPOP" } } else { exception { include $VHOME/Maildir/.mailfilter } exception { to "$VPOP" } } Thanks in advance... Dev ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk