[..continued..] Problem fixed. rewrote the whole thing from scratch. noticed afterwards that i was checking for X-Spam-Flag instead of X-Spam-Status, ugh. Also, maildirmake is in /usr/local not /usr
but would any of these two reasons cause vdelivermail to coredump? Is that a possible security flaw? Tim Quoting Tim Hasson <[EMAIL PROTECTED]>: > Hi, > > I am running vpopmail-5.2.1 + seekable patch, with qmail and maildrop to > filter messages marked as spam by Spamassassin to a spam folder). The system > > is FreeBSD-4.8. > > Now i had two servers setup exactly the same as described above, one works > perfect, and the second one bombed out (See Below).. > I was using .qmail and mailfilter in user's home directories to enable > invoking spam assassin and moving spam message per user (SA prefs in SQL > also). > Everything was working fine on both servers up to this point. > Then I removed the .qmail files that I created in those two users > directories, > and i created .qmail-default in the domain directory - example.com/ - to > enable spam domain-wide (which I had used the same script I used before for a > > long time) > Mail delivers fine to the first server, but the second one freaks out. > > qmail-send/current log shows: > @400000003f29d8c003dab79c delivery 1: deferral: Segmentation_fault_ > (core_dumped)/ > @400000003f29d8c003dd43f4 status: local 0/10 remote 0/20 > [..] > @400000003f29d8c82784d04c delivery 4: deferral: > Sorry,_I_wasn't_able_to_establish_an_SMTP_connection._(#4.4.1)/ > @400000003f29d8c8278754d4 status: local 1/10 remote 0/20 > @400000003f29d8c912ea81a4 delivery 3: deferral: Segmentation_fault_ > (core_dumped)/ > > syslog shows: > Jul 31 14:29:42 coda2 /kernel: pid 53178 (vdelivermail), uid 500: exited on > signal 11 (core dumped) > Jul 31 14:36:13 coda2 /kernel: pid 53421 (vdelivermail), uid 500: exited on > signal 11 (core dumped) > Jul 31 14:36:13 coda2 /kernel: pid 53423 (vdelivermail), uid 500: exited on > signal 11 (core dumped) > Jul 31 19:58:52 coda2 /kernel: pid 77655 (vdelivermail), uid 500: exited on > signal 11 (core dumped) > Jul 31 20:00:32 coda2 /kernel: pid 77721 (vdelivermail), uid 500: exited on > signal 11 (core dumped) > > > For the users that were to have mail delivered in their mailbox, instead i > find a vdelivermail.core in their directory. If I reset .qmail-default to > vdelivermail, the mail in the queue will be delivered. > > # cat .qmail-default > | /usr/local/bin/maildrop ~vpopmail/domains/example.com/mailfilter > > > # cat mailfilter > import EXT > import HOST > VPOP="| /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox" > VHOME=`/home/vpopmail/bin/vuserinfo -d [EMAIL PROTECTED] > SUBIMAP="/home/vpopmail/bin/subimapspam.sh" > `test -d $VHOME/Maildir` > if ( $RETURNCODE == 1 ) > { > echo "Sorry, no mailbox here by that name. (#5.1.1)" > EXITCODE=100 > exit > } > if ( $SIZE < 262144 ) > { > xfilter "/usr/local/bin/spamc -f -u [EMAIL PROTECTED]" > if (/^X-Spam-Flag: *YES/) > { > `test -d "$VHOME/Maildir/.BulkMail"` > if( $RETURNCODE == 1 ) > { > `/usr/bin/maildirmake -f BulkMail > $VHOME/Maildir/` > `$SUBIMAP $VHOME` > } > to "$VHOME/Maildir/.BulkMail/" > exit > } > else > { > to $VPOP > exit > } > } > else > { > to $VPOP > exit > } > > > Any help would be greatly appreciated.. > Thanks, > Tim > >