You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by John Rudd <jr...@ucsc.edu> on 2006/11/13 19:54:19 UTC
Re: RelayChecker 0.3 (more overhead?)
Dylan Bouterse wrote:
>
>> -----Original Message-----
>> From: John Rudd [mailto:jrudd@ucsc.edu]
>> Sent: Sunday, November 12, 2006 8:26 PM
>> To: SpamAssassin Users
>> Subject: RelayChecker 0.3
>>
>>
>> New version of RelayChecker.
>>
>> http://people.ucsc.edu/~jrudd/spamassassin/RelayChecker.tar
>>
>> Changes:
>>
>> - It's now in a single tar file. Put the tar file into your plugin
>> directory, expand it, and all should be good. The tar file includes:
>> COPYING - the GPL
>> RelayChecker.txt - explanations of each rule and option
>> RelayChecker.pm - the plugin, now with copyright info
>> RelayChecker.cf - example cf file (you should check the file)
>>
>>
>> - There is now an option, relaychecker_reduced_dns, which eliminates
>> all extra DNS checks. Instead of the PTR check, it uses the "rdns="
>> part of the Untrusted Relays pseudo-header, and the
> RELAY_CHECKER_BADDNS
>> test always returns 0.
>>
>
> Is there anything about v 0.3 that would require more overhead than the
> initial version? I just implemented the new version and sa passed --lint
> with no errors but within 5-10 min of reloading amavis-new my smtp
> response time went to multiple seconds and the load on the box went to
> over 6. Renamed the RelayChecker.cf so it isn't read by sa and reloaded
> amavisd and back to normal. Any suggestions?
>
> Dylan
There shouldn't be anything that makes it _more_ intensive than the
previous versions. Have you tried the relaychecker_reduced_dns option?
It might be that you're just doing a lot of DNS calls today.
John
Re: RelayChecker 0.3 (more overhead?)
Posted by Mark Martinec <Ma...@ijs.si>.
Dylan,
> Even after setting the reduced_dns option to 1 the load on the server
> stays high. I re-enabled AWL and my load stays low as long as I don't
> enable the RelayChecker. I get the following in the log:::
>
> Nov 13 15:51:23 p1-lk-mxfilter.power1.com /usr/sbin/amavisd[30169]:
> (30169-01) extra modules loaded: /etc/mail/spamassassin/RelayChecker.pm
Just a general note: 'extra modules loaded:' is seen with the first
mail being processes by each child process, if it turns out that some
modules were not pre-fetched by a master process. It is normal and is
usually not a problem (except in chroot), except for some overhead if
loading/compiling a module takes a long time.
Starting with amavisd-new-2.4.3 it is possible to pre-compile such
additional modules which got missed by SA initialization, by placing
a list of such modules in amavisd.conf, e.g:
@additional_perl_modules = qw(
/etc/mail/spamassassin/RelayChecker.pm
/usr/local/etc/mail/spamassassin/FuzzyOcr.pm
/usr/local/etc/mail/spamassassin/ImageInfo.pm
/usr/local/etc/mail/spamassassin/WebRedirect.pm
String::Approx Net::HTTP Net::HTTP::Methods
URI URI::http URI::_generic URI::_query URI::_server
HTTP::Date HTTP::Headers HTTP::Message HTML::HeadParser
HTTP::Request HTTP::Response HTTP::Status
LWP LWP::Protocol LWP::Protocol::http
LWP::UserAgent LWP::MemberMixin LWP::Debug
);
From 2.4.3 RELEASE_NOTES:
- added a global configuration variable @additional_perl_modules, which
is a list of additional Perl module names or absolute file names that
should be compiled/executed (by calling 'require') at a program startup
time by a master parent process, before chroot-ing and before changing
UID takes place. Its purpose is to pre-load additional non-standard
SpamAssassin plugins and similar modules that a standard SpamAssassin
initialization would miss, causing them to be loaded later by each
child process, which is inefficient and may not work in a chrooted
process.
Mark
Re: Install of 1.4.8 with Courier IMAP
Posted by Benny Pedersen <me...@junc.org>.
On Mon, November 13, 2006 22:21, Scott Lockwood wrote:
> I am almost certain this is not a squirrelmail issue, but it's driving me up
> the wall, and I'm hoping someone in here can point me in the right
> direction.
[snip]
what happend when you send a mail to the users mailbox throught sendmail ?
what is logged ?
how is courier-imap authed to unix accounts in your setup ?
squirrelmail will not work before the first email is succesfully delivred to
the mailbox
--
This message was sent using 100% recycled spam mails.
RE: Install of 1.4.8 with Courier IMAP
Posted by Scott Lockwood <sc...@cashnetusa.com>.
Sorry, wrong list! Please disregard - unless you know the answer! :-D
-----Original Message-----
From: Scott Lockwood [mailto:scott@cashnetusa.com]
Sent: Monday, November 13, 2006 3:22 PM
To: users@spamassassin.apache.org
Subject: Install of 1.4.8 with Courier IMAP
I am almost certain this is not a squirrelmail issue, but it's driving me up
the wall, and I'm hoping someone in here can point me in the right
direction.
I have just setup a box with Ubuntu 6.06.1 LTS, courier-imap sendmail and
squirrelmail. For some very odd reason, it won't create the default set of
mail folders, and when you log in as a user and tell it to make the folders,
it claims not to have write access. All the folders should be stored in the
users maildir (~/Maildir) and if it's using the users credentials, I don't
understand why it can't create things. This happens as well when you ask
Squirrelmail to create a folder. I'm sure it's a permissions issue, I just
have no idea where to fix it, and the logs have been less than helpful.
Anyone else run into this?
--
Regards,
Scott
Install of 1.4.8 with Courier IMAP
Posted by Scott Lockwood <sc...@cashnetusa.com>.
I am almost certain this is not a squirrelmail issue, but it's driving me up
the wall, and I'm hoping someone in here can point me in the right
direction.
I have just setup a box with Ubuntu 6.06.1 LTS, courier-imap sendmail and
squirrelmail. For some very odd reason, it won't create the default set of
mail folders, and when you log in as a user and tell it to make the folders,
it claims not to have write access. All the folders should be stored in the
users maildir (~/Maildir) and if it's using the users credentials, I don't
understand why it can't create things. This happens as well when you ask
Squirrelmail to create a folder. I'm sure it's a permissions issue, I just
have no idea where to fix it, and the logs have been less than helpful.
Anyone else run into this?
--
Regards,
Scott
RE: RelayChecker 0.3 (more overhead?)
Posted by Dylan Bouterse <dy...@corp.power1.com>.
> -----Original Message-----
> From: John Rudd [mailto:jrudd@ucsc.edu]
> Sent: Monday, November 13, 2006 2:21 PM
> To: John Rudd
> Cc: Dylan Bouterse; users@spamassassin.apache.org
> Subject: Re: RelayChecker 0.3 (more overhead?)
>
> John Rudd wrote:
> > Dylan Bouterse wrote:
> >>
> >>> -----Original Message-----
> >>> From: John Rudd [mailto:jrudd@ucsc.edu]
> >>> Sent: Sunday, November 12, 2006 8:26 PM
> >>> To: SpamAssassin Users
> >>> Subject: RelayChecker 0.3
> >>>
> >>>
> >>> New version of RelayChecker.
> >>>
> >>> http://people.ucsc.edu/~jrudd/spamassassin/RelayChecker.tar
> >>>
> >>> Changes:
> >>>
> >>> - It's now in a single tar file. Put the tar file into your
plugin
> >>> directory, expand it, and all should be good. The tar file
includes:
> >>> COPYING - the GPL
> >>> RelayChecker.txt - explanations of each rule and option
> >>> RelayChecker.pm - the plugin, now with copyright info
> >>> RelayChecker.cf - example cf file (you should check the
file)
> >>>
> >>>
> >>> - There is now an option, relaychecker_reduced_dns, which
eliminates
> >>> all extra DNS checks. Instead of the PTR check, it uses the
"rdns="
> >>> part of the Untrusted Relays pseudo-header, and the
> >> RELAY_CHECKER_BADDNS
> >>> test always returns 0.
> >>>
> >>
> >> Is there anything about v 0.3 that would require more overhead than
the
> >> initial version? I just implemented the new version and sa passed
--
> lint
> >> with no errors but within 5-10 min of reloading amavis-new my smtp
> >> response time went to multiple seconds and the load on the box went
to
> >> over 6. Renamed the RelayChecker.cf so it isn't read by sa and
reloaded
> >> amavisd and back to normal. Any suggestions?
> >>
> >> Dylan
> >
> > There shouldn't be anything that makes it _more_ intensive than the
> > previous versions. Have you tried the relaychecker_reduced_dns
option?
> > It might be that you're just doing a lot of DNS calls today.
> >
>
> Oh.. wait, there IS something that could make it more intensive.
>
> Each test is going to do the PTR lookup on its own. So, instead of 1
or
> 2 DNS checks, it's going to do 5 (PTR in NORDNS, PTR in BADDNS, A in
> BADDNS, PTR in IPHOSNAME, PTR in KEYWORDS). That's per message.
>
> But, like I said, you can reduce that with the reduced_dns option.
Then
> it should do 0 DNS checks.
Even after setting the reduced_dns option to 1 the load on the server
stays high. I re-enabled AWL and my load stays low as long as I don't
enable the RelayChecker. I get the following in the log:::
Nov 13 15:51:23 p1-lk-mxfilter.power1.com /usr/sbin/amavisd[30169]:
(30169-01) SMTP: NOTICE: client broke the connection without a QUIT ()
Nov 13 15:51:23 p1-lk-mxfilter.power1.com /usr/sbin/amavisd[30169]:
(30169-01) extra modules loaded: /etc/mail/spamassassin/RelayChecker.pm
Nov 13 15:51:23 p1-lk-mxfilter.power1.com /usr/sbin/amavisd[30169]:
(30169-01) load: 100 %, total idle 0.000 s, busy 0.144 s
Nov 13 15:51:23 p1-lk-mxfilter.power1.com /usr/sbin/amavisd[30169]:
(30169-01) process_request: fileno sock=13, STDIN=0, STDOUT=1
Re: RelayChecker 0.3 (more overhead?)
Posted by John Rudd <jr...@ucsc.edu>.
John Rudd wrote:
> Dylan Bouterse wrote:
>>
>>> -----Original Message-----
>>> From: John Rudd [mailto:jrudd@ucsc.edu]
>>> Sent: Sunday, November 12, 2006 8:26 PM
>>> To: SpamAssassin Users
>>> Subject: RelayChecker 0.3
>>>
>>>
>>> New version of RelayChecker.
>>>
>>> http://people.ucsc.edu/~jrudd/spamassassin/RelayChecker.tar
>>>
>>> Changes:
>>>
>>> - It's now in a single tar file. Put the tar file into your plugin
>>> directory, expand it, and all should be good. The tar file includes:
>>> COPYING - the GPL
>>> RelayChecker.txt - explanations of each rule and option
>>> RelayChecker.pm - the plugin, now with copyright info
>>> RelayChecker.cf - example cf file (you should check the file)
>>>
>>>
>>> - There is now an option, relaychecker_reduced_dns, which eliminates
>>> all extra DNS checks. Instead of the PTR check, it uses the "rdns="
>>> part of the Untrusted Relays pseudo-header, and the
>> RELAY_CHECKER_BADDNS
>>> test always returns 0.
>>>
>>
>> Is there anything about v 0.3 that would require more overhead than the
>> initial version? I just implemented the new version and sa passed --lint
>> with no errors but within 5-10 min of reloading amavis-new my smtp
>> response time went to multiple seconds and the load on the box went to
>> over 6. Renamed the RelayChecker.cf so it isn't read by sa and reloaded
>> amavisd and back to normal. Any suggestions?
>>
>> Dylan
>
> There shouldn't be anything that makes it _more_ intensive than the
> previous versions. Have you tried the relaychecker_reduced_dns option?
> It might be that you're just doing a lot of DNS calls today.
>
Oh.. wait, there IS something that could make it more intensive.
Each test is going to do the PTR lookup on its own. So, instead of 1 or
2 DNS checks, it's going to do 5 (PTR in NORDNS, PTR in BADDNS, A in
BADDNS, PTR in IPHOSNAME, PTR in KEYWORDS). That's per message.
But, like I said, you can reduce that with the reduced_dns option. Then
it should do 0 DNS checks.
Re: RelayChecker 0.3 (more overhead?) now AWL issue?
Posted by John Rudd <jr...@ucsc.edu>.
Dylan Bouterse wrote:
>> -----Original Message-----
>> From: John Rudd [mailto:jrudd@ucsc.edu]
>> Sent: Monday, November 13, 2006 1:54 PM
>> To: Dylan Bouterse; users@spamassassin.apache.org
>> Subject: Re: RelayChecker 0.3 (more overhead?)
>>
>> Dylan Bouterse wrote:
>>>> -----Original Message-----
>>>> From: John Rudd [mailto:jrudd@ucsc.edu]
>>>> Sent: Sunday, November 12, 2006 8:26 PM
>>>> To: SpamAssassin Users
>>>> Subject: RelayChecker 0.3
>>>>
>>>>
>>>> New version of RelayChecker.
>>>>
>>>> http://people.ucsc.edu/~jrudd/spamassassin/RelayChecker.tar
>>>>
>>>> Changes:
>>>>
>>>> - It's now in a single tar file. Put the tar file into your
> plugin
>>>> directory, expand it, and all should be good. The tar file
> includes:
>>>> COPYING - the GPL
>>>> RelayChecker.txt - explanations of each rule and option
>>>> RelayChecker.pm - the plugin, now with copyright info
>>>> RelayChecker.cf - example cf file (you should check the
> file)
>>>>
>>>> - There is now an option, relaychecker_reduced_dns, which
> eliminates
>>>> all extra DNS checks. Instead of the PTR check, it uses the
> "rdns="
>>>> part of the Untrusted Relays pseudo-header, and the
>>> RELAY_CHECKER_BADDNS
>>>> test always returns 0.
>>>>
>>> Is there anything about v 0.3 that would require more overhead than
> the
>>> initial version? I just implemented the new version and sa passed
> --lint
>>> with no errors but within 5-10 min of reloading amavis-new my smtp
>>> response time went to multiple seconds and the load on the box went
> to
>>> over 6. Renamed the RelayChecker.cf so it isn't read by sa and
> reloaded
>>> amavisd and back to normal. Any suggestions?
>>>
>>> Dylan
>> There shouldn't be anything that makes it _more_ intensive than the
>> previous versions. Have you tried the relaychecker_reduced_dns
> option?
>> It might be that you're just doing a lot of DNS calls today.
>>
>>
>> John
>
> Actually, I think it may have something to do with AWL? I was getting
> the following in my amavisd log:
>
> Nov 13 13:31:16 p1-lk-mxfilter.power1.com /usr/sbin/amavisd[13371]:
> (13371-06) SA TIMED OUT, backtrace: at
> /usr/lib/perl5/site_perl/5.8.5/Mail/SpamAssassin/DBBasedAddrList.pm line
> 165\n\teval {...} called at
> /usr/lib/perl5/site_perl/5.8.5/Mail/SpamAssassin/DBBasedAddrList.pm line
> 165\n\tMail::SpamAssassin::DBBasedAddrList::remove_entry('Mail::SpamAssa
> ssin::DBBasedAddrList=HASH(0xc9a415c)', 'HASH(0xc8e58d8)') called at
> /usr/lib/perl5/site_perl/5.8.5/Mail/SpamAssassin/AutoWhitelist.pm line
> 135\n\tMail::SpamAssassin::AutoWhitelist::check_address('Mail::SpamAssas
> sin::AutoWhitelist=HASH(0xc8e085c)',
> 'protect.your.heart@phantom-class.com', 216.188.74.206) called at
> /usr/lib/perl5/site_perl/5.8.5/Mail/SpamAssassin/Plugin/AWL.pm line
> 356\n\teval {...} called at
> /usr/lib/perl5/site_perl/5.8.5/Mail/SpamAssassin/Plugin/AWL.pm line
> 352\n\tMail::SpamAssassin::Plugin::AWL::check_from_in_auto_whitelist('Ma
> il::SpamAssassin::Plugin::AWL=HASH(0xb1fcf64)',
> 'Mail::SpamAssassin::PerMsgStatus=...
>
> The only thing I did before trying out v0.3 of RelayChecker was do an
> update of my SARE and SA rules. Do you think there is a common thread
> between the rules and RC or coincidence? I've disabled my AWL plugin for
> now cause all my mail was getting delayed and backed up.
I have no idea how AWL and RC might be interacting (poorly or
otherwise). I don't see this issue on my systems.
RE: RelayChecker 0.3 (more overhead?) now AWL issue?
Posted by Dylan Bouterse <dy...@corp.power1.com>.
> -----Original Message-----
> From: John Rudd [mailto:jrudd@ucsc.edu]
> Sent: Monday, November 13, 2006 1:54 PM
> To: Dylan Bouterse; users@spamassassin.apache.org
> Subject: Re: RelayChecker 0.3 (more overhead?)
>
> Dylan Bouterse wrote:
> >
> >> -----Original Message-----
> >> From: John Rudd [mailto:jrudd@ucsc.edu]
> >> Sent: Sunday, November 12, 2006 8:26 PM
> >> To: SpamAssassin Users
> >> Subject: RelayChecker 0.3
> >>
> >>
> >> New version of RelayChecker.
> >>
> >> http://people.ucsc.edu/~jrudd/spamassassin/RelayChecker.tar
> >>
> >> Changes:
> >>
> >> - It's now in a single tar file. Put the tar file into your
plugin
> >> directory, expand it, and all should be good. The tar file
includes:
> >> COPYING - the GPL
> >> RelayChecker.txt - explanations of each rule and option
> >> RelayChecker.pm - the plugin, now with copyright info
> >> RelayChecker.cf - example cf file (you should check the
file)
> >>
> >>
> >> - There is now an option, relaychecker_reduced_dns, which
eliminates
> >> all extra DNS checks. Instead of the PTR check, it uses the
"rdns="
> >> part of the Untrusted Relays pseudo-header, and the
> > RELAY_CHECKER_BADDNS
> >> test always returns 0.
> >>
> >
> > Is there anything about v 0.3 that would require more overhead than
the
> > initial version? I just implemented the new version and sa passed
--lint
> > with no errors but within 5-10 min of reloading amavis-new my smtp
> > response time went to multiple seconds and the load on the box went
to
> > over 6. Renamed the RelayChecker.cf so it isn't read by sa and
reloaded
> > amavisd and back to normal. Any suggestions?
> >
> > Dylan
>
> There shouldn't be anything that makes it _more_ intensive than the
> previous versions. Have you tried the relaychecker_reduced_dns
option?
> It might be that you're just doing a lot of DNS calls today.
>
>
> John
Actually, I think it may have something to do with AWL? I was getting
the following in my amavisd log:
Nov 13 13:31:16 p1-lk-mxfilter.power1.com /usr/sbin/amavisd[13371]:
(13371-06) SA TIMED OUT, backtrace: at
/usr/lib/perl5/site_perl/5.8.5/Mail/SpamAssassin/DBBasedAddrList.pm line
165\n\teval {...} called at
/usr/lib/perl5/site_perl/5.8.5/Mail/SpamAssassin/DBBasedAddrList.pm line
165\n\tMail::SpamAssassin::DBBasedAddrList::remove_entry('Mail::SpamAssa
ssin::DBBasedAddrList=HASH(0xc9a415c)', 'HASH(0xc8e58d8)') called at
/usr/lib/perl5/site_perl/5.8.5/Mail/SpamAssassin/AutoWhitelist.pm line
135\n\tMail::SpamAssassin::AutoWhitelist::check_address('Mail::SpamAssas
sin::AutoWhitelist=HASH(0xc8e085c)',
'protect.your.heart@phantom-class.com', 216.188.74.206) called at
/usr/lib/perl5/site_perl/5.8.5/Mail/SpamAssassin/Plugin/AWL.pm line
356\n\teval {...} called at
/usr/lib/perl5/site_perl/5.8.5/Mail/SpamAssassin/Plugin/AWL.pm line
352\n\tMail::SpamAssassin::Plugin::AWL::check_from_in_auto_whitelist('Ma
il::SpamAssassin::Plugin::AWL=HASH(0xb1fcf64)',
'Mail::SpamAssassin::PerMsgStatus=...
The only thing I did before trying out v0.3 of RelayChecker was do an
update of my SARE and SA rules. Do you think there is a common thread
between the rules and RC or coincidence? I've disabled my AWL plugin for
now cause all my mail was getting delayed and backed up.