FreeBSD defaults to /var/mail, and apparantly $MAIL doesn't get set in .forward, so spamassassin fails in delivery mode from there.
Oh, and can you please watch your whitespace usage. If you must use spaces (evil), please stick to them. I see stuff like: if (defined $prevhdr) { »·······$hdr = $prevhdr; $val = $_; »·······$entry = $self->{headers}->{$hdr}; »·······$entry->{$entry->{count} - 1} .= $val; »·······next; That's pretty rank, even if you're already going to hell for using spaces for indentation (and only two of them, argh). Anyway, here's a patch that fixes a couple of these whitespace issues, supports /var/mail, and makes one conditional slightly nicer. -- Thomas 'Freaky' Hurst - [EMAIL PROTECTED] - http://www.aagh.net/ - One-Shot Case Study, n: The scientific equivalent of the four-leaf clover, from which it is concluded all clovers possess four leaves and are sometimes green.
patch-NoMailAudit.pm
Description: Perl program