RE: MIMEDefang, SpamAssassin and URIDNSBLs

2004-09-28 Thread Tim Boyer
>
> Tim Boyer said:
> >
> > But the same question applies.  Even _if_ I had it set wrong,
> why would it
> > work when I do a 'spamassassin --test', but not when MIMEDefang
> calls it?
> >
> You calling it as the user mimedefang runs as.. do all your tests
> like such:
>
> su -c "spamassassin --test" defang
>
>

... and that does it.  When run as defang:

debug: is Net::DNS::Resolver available? no

When run as root:

debug: is Net::DNS::Resolver available? yes

It's probably a permissions thing.  Figures.  It's always either a
permissions thing, or a SCSI termination problem, isn't it? :)

Sure enough, found it, and it was a directory permissions.  All is working.

Thanks _very_ much, everyone!

--
Tim Boyer
Director
Information Systems and Engineering Projects
Denman Tire Corporation
[EMAIL PROTECTED]



RE: MIMEDefang, SpamAssassin and URIDNSBLs

2004-09-28 Thread Lucas Albers

Tim Boyer said:
>
> But the same question applies.  Even _if_ I had it set wrong, why would it
> work when I do a 'spamassassin --test', but not when MIMEDefang calls it?
>
You calling it as the user mimedefang runs as.. do all your tests like such:

su -c "spamassassin --test" defang


-- 
Luke Computer Science System Administrator
Security Administrator,College of Engineering
Montana State University-Bozeman,Montana




RE: MIMEDefang, SpamAssassin and URIDNSBLs

2004-09-27 Thread Tim Boyer
>
> Tim Boyer wrote:
> >> Tim Boyer wrote to users@spamassassin.apache.org:
> >>
> >>> 3.  Do I have DNS lookup enabled?  Yup:
> >>>
> >>> # Enable or disable network checks
> >>> dns_available yes
> >>> skip_rbl_checks 0
> >>> rbl_timeout 15
> >>>
> >>> Can't think of anything else to try.
> >>
>
> Try checking /etc/mail/sa-mimedefang.cf for a line that says
> skip_rbl_checks 1
>
> Comment it out, restart mimedefang, and see if this changes anything
>

Actually, I've got it set to 0:

# Enable or disable network checks
skip_rbl_checks 0
rbl_timeout 15

But the same question applies.  Even _if_ I had it set wrong, why would it
work when I do a 'spamassassin --test', but not when MIMEDefang calls it?

--
Tim Boyer
Director, IS and Engineering Projects
Denman Tire Corporation
[EMAIL PROTECTED]




RE: MIMEDefang, SpamAssassin and URIDNSBLs

2004-09-27 Thread Matthew.van.Eerde
Tim Boyer wrote:
>> Tim Boyer wrote to users@spamassassin.apache.org:
>> 
>>> 3.  Do I have DNS lookup enabled?  Yup:
>>> 
>>> # Enable or disable network checks
>>> dns_available yes
>>> skip_rbl_checks 0
>>> rbl_timeout 15
>>> 
>>> Can't think of anything else to try.
>> 

Try checking /etc/mail/sa-mimedefang.cf for a line that says
skip_rbl_checks 1

Comment it out, restart mimedefang, and see if this changes anything

[EMAIL PROTECTED]  805.964.4554 x902
Hispanic Business Inc./HireDiversity.com Software Engineer
perl -e"map{y/a-z/l-za-k/;print}shift" "Jjhi pcdiwtg Ptga wprztg,"


RE: MIMEDefang, SpamAssassin and URIDNSBLs

2004-09-26 Thread Tim Boyer
>
> Tim Boyer wrote to users@spamassassin.apache.org:
>
> > 3.  Do I have DNS lookup enabled?  Yup:
> >
> > # Enable or disable network checks
> > dns_available yes
> > skip_rbl_checks 0
> > rbl_timeout 15
> >
> > Can't think of anything else to try.
>
> Do you have
>
>  # If boolean true, skip SA network tests
>  $SALocalTestsOnly = 1;
>
> in your mimedefang-filter? Make sure you set $SALocalTestsOnly to zero.
> For whatever reason, MIMEDefang decided they would override this *one*
> SA option within mimedefang-filter. ;-)
>

Yup:

$AdminAddress = '[EMAIL PROTECTED]';
$AdminName = "Tim Boyer";
$SALocalTestsOnly = 0;


> If that doesn't help, get a bigger hammer, or maybe ask on the
> MIMEDefang list.
>

I've posted substantially the same message there - with substantially the
same results.

> > If I knew how to make MIMEDefang call SpamAssassin with the debug
> > switch, that might point me in the right direction.
>
> MIMEDefang uses the SA libs directly... which means, so can you, in
> mimedefang-filter. :-) I've never tried it, but you should be able to
> enable debugging output before calling the SA check in filter_end().
>

I'll give it a try in the morning.  Thanks much...

--
Tim Boyer
Director
Information Systems and Engineering Projects
Denman Tire Corporation
[EMAIL PROTECTED]




Re: MIMEDefang, SpamAssassin and URIDNSBLs

2004-09-26 Thread Ryan Thompson
Tim Boyer wrote to users@spamassassin.apache.org:
3.  Do I have DNS lookup enabled?  Yup:
# Enable or disable network checks
dns_available yes
skip_rbl_checks 0
rbl_timeout 15
Can't think of anything else to try.
Do you have
# If boolean true, skip SA network tests
$SALocalTestsOnly = 1;
in your mimedefang-filter? Make sure you set $SALocalTestsOnly to zero.
For whatever reason, MIMEDefang decided they would override this *one*
SA option within mimedefang-filter. ;-)
If that doesn't help, get a bigger hammer, or maybe ask on the
MIMEDefang list.
If I knew how to make MIMEDefang call SpamAssassin with the debug
switch, that might point me in the right direction.
MIMEDefang uses the SA libs directly... which means, so can you, in
mimedefang-filter. :-) I've never tried it, but you should be able to
enable debugging output before calling the SA check in filter_end().
- Ryan
--
  Ryan Thompson <[EMAIL PROTECTED]>
  SaskNow Technologies - http://www.sasknow.com
  901-1st Avenue North - Saskatoon, SK - S7K 1Y4
Tel: 306-664-3600   Fax: 306-244-7037   Saskatoon
  Toll-Free: 877-727-5669 (877-SASKNOW) North America


MIMEDefang, SpamAssassin and URIDNSBLs

2004-09-25 Thread Tim Boyer
I'm not quite sure where to begin debugging this one.

I'm running MIMEDefang 2.44 with SpamAssassin 3, and everything is
working great - except SpamAssassin's 'look up URLs against DNS
blocklists' feature.

The odd part is that it seems to be working when I run SpamAssassin in
debug mode, but not when it's called from MIMEDefang.  For instance, I
just got spam advertising compprog.biz, listed in the SBL list.  It
originally got to me with only a score of 4.249 (but note the
'BIZ_TLD' check, which at least tells me it's scanning the body):

X-Spam-Score: 4.249 () BIZ_TLD,FORGED_HOTMAIL_RCVD2,LOTS_OF_STUFF
X-Scanned-By: MIMEDefang 2.44

When I copied the whole message to test2.email and ran
'spamassassin -D -t