[AMaViS-user] saving memory

2005-10-12 Thread Timo Veith
Hello amavis users,

I have noticed a huge amount of swap usage (around 150 MB with 512 MB of 
physical RAM). So now I am trying to save memory as much as possible. I 
reduced $max_servers to 1 in amavisd.conf as supposed in the 
README.performance file. After a restart of amavisd-new swap usage went 
down under 100 MB. 

Besides the daemons that I need for mail, the machine runs bind, apache 
and mysql. I also limited memory usage for those programs as good as I 
can. This brought me down to around 20 MB in swap.

The problem is, that over time I still get over 100 MB swap usage. 
Obviously amavisd-new is to blame because when I just do a restart of it, 
I get down to the 20 MB swap.

What I also noticed is, that there are 2 amavisd-new processes after my 
max_servers reduction (from above). Can I run amavisd-new with 
$max_servers = 0? Which other measures do you know to limit or to save 
memory?

I am using amavisd-new-20030616p10-5 with spamassassin-3.0.3-1 and 
clamav-0.85.1-2 connected to exim-3.35-1 on a Debian woody. (I know that 
these are very old versions)

TIA
Timo


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/


RE: [AMaViS-user] Negative read_hash?

2005-10-12 Thread Nicklas Bondesson
Thanks for the update!

Nicklas 

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of Gary V
 Sent: den 12 oktober 2005 06:12
 To: amavis-user@lists.sourceforge.net
 Subject: Re: [AMaViS-user] Negative read_hash?
 
 Nicklas wrote:
 
  -Original Message-
  From: [EMAIL PROTECTED]
  [mailto:[EMAIL PROTECTED] On Behalf 
 Of Gary V
  Sent: den 12 oktober 2005 03:09
  To: amavis-user@lists.sourceforge.net
  Subject: Re: [AMaViS-user] Negative read_hash?
  
  Gary wrote:
  
   Nicklas wrote:
  
   Thanks!
  
   I only need to match the domain. And, I was planning to
  use qmail's
   default rcpthosts file as the base template 
 (spam_lovers_maps) for 
   the domains and any exceptions to the base config should
  go into the
   spam_haters file (default should be to pass spam).
  
   Any ideas for such setup?
  
   Thanks,
   Nicklas
  
   I assume then that the /lovers will contain a list of
  domains. This works.
  
   You simply have to manually add full email addresses to 
 the haters 
   file, followed by a zero. Haters will be read first, 
 because it is 
   listed first. If a match is found, the search should end 
 there. The 
   period at the end means everyone not listed is also a lover.
  
   @spam_lovers_maps = ( read_hash(/spam_haters), 
   read_hash(/spam_lovers), . );
  
   /haters
   [EMAIL PROTECTED] 0
  
   /lovers
   example.com
  
  My last reply was rushed and possibly inaccurate. I think the .
  should have been a 1.
  
  @spam_lovers_maps = ( read_hash($MYHOME/spam_haters), 1 );
  
  May be better. If all domains will be spam_lovers by default, then 
  there is no need to look them up, simply make everyone a 
 lover, and 
  list only the exceptions.
  
  Contents of the spam_haters file:
  
  # we have set @spam_lovers_maps = (
  read_hash($MYHOME/spam_haters), 1 ); # which means everyone is a 
  spam lover by default. If you would like to # exclude a particular 
  user from being a spam lover, include them in # this associative 
  array using a 0 for the value. For example:
  # [EMAIL PROTECTED] 0
  #
  [EMAIL PROTECTED] 0
 
  Could you define a domain in the haters file instead of the whole 
  email adress?
 
  Like: 
  example.com 0
 
  ?
 
  Thanks,
  Nicklas
 
 Yes, of course. Typically you would also include subdomains:
 
 .example.com 0
 
 You could also make any number of users in that domain 
 spam_lovers, if you needed to make exceptions for them:
 
 [EMAIL PROTECTED]
 [EMAIL PROTECTED]
 .example.com 0
 
 From:
 http://www.ijs.si/software/amavisd/README.lookups.txt
 
 Hash lookups (e.g. for [EMAIL PROTECTED]) are 
 performed in the following order:
  - lookup for [EMAIL PROTECTED] (only if 
 $recipient_delimiter is '+')
  - lookup for [EMAIL PROTECTED]
  - lookup for user+foo@ (only if $recipient_delimiter is '+')
  - lookup for user@
  - lookup for sub.example.com
  - lookup for .sub.example.com
  - lookup for .example.com
  - lookup for .com
  - lookup for .
 
 Gary V
 
 
 
 ---
 This SF.Net email is sponsored by:
 Power Architecture Resource Center: Free content, downloads, 
 discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl
 ___
 AMaViS-user mailing list
 AMaViS-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/amavis-user
 AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
 AMaViS-HowTos:http://www.amavis.org/howto/
 




---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/


Re: [AMaViS-user] saving memory

2005-10-12 Thread Dale Hartung

Timo wrote:

 Hello amavis users,

 I have noticed a huge amount of swap usage (around 150 MB with 512 MB of
 physical RAM). So now I am trying to save memory as much as possible. I
 reduced $max_servers to 1 in amavisd.conf as supposed in the
 README.performance file. After a restart of amavisd-new swap usage went
 down under 100 MB.

 Besides the daemons that I need for mail, the machine runs bind, apache
 and mysql. I also limited memory usage for those programs as good as I
 can. This brought me down to around 20 MB in swap.

 The problem is, that over time I still get over 100 MB swap usage.
 Obviously amavisd-new is to blame because when I just do a restart of it,
 I get down to the 20 MB swap.

 What I also noticed is, that there are 2 amavisd-new processes after my
 max_servers reduction (from above). Can I run amavisd-new with
 $max_servers = 0? Which other measures do you know to limit or to save
 memory?

 I am using amavisd-new-20030616p10-5 with spamassassin-3.0.3-1 and
 clamav-0.85.1-2 connected to exim-3.35-1 on a Debian woody. (I know that
 these are very old versions)

 TIA
 Timo

I know with my setup (amavisd-new and postfix) the number of processes
needs to be the same.  That is for instance: if you want one process of
amavisd-new then the same would apply for postfix.  I dont know exim so
you might want to check into it.just an idea.  BTW there are other
memory intensive options in amavisd-new, perhaps doing without some of
these would help out.

Dale




 ---
 This SF.Net email is sponsored by:
 Power Architecture Resource Center: Free content, downloads, discussions,
 and more. http://solutions.newsforge.com/ibmarch.tmpl
 ___
 AMaViS-user mailing list
 AMaViS-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/amavis-user
 AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
 AMaViS-HowTos:http://www.amavis.org/howto/





---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/


Re: [AMaViS-user] saving memory

2005-10-12 Thread Gary V
 Timo wrote:

 Hello amavis users,

 I have noticed a huge amount of swap usage (around 150 MB with 512 MB of
 physical RAM). So now I am trying to save memory as much as possible. I
 reduced $max_servers to 1 in amavisd.conf as supposed in the
 README.performance file. After a restart of amavisd-new swap usage went
 down under 100 MB.

 Besides the daemons that I need for mail, the machine runs bind, apache
 and mysql. I also limited memory usage for those programs as good as I
 can. This brought me down to around 20 MB in swap.

 The problem is, that over time I still get over 100 MB swap usage.
 Obviously amavisd-new is to blame because when I just do a restart of it,
 I get down to the 20 MB swap.

I believe the same would happen if you restarted other (large) programs too.


 What I also noticed is, that there are 2 amavisd-new processes after my
 max_servers reduction (from above). Can I run amavisd-new with
 $max_servers = 0? Which other measures do you know to limit or to save
 memory

One process is the master process that spawns children, as far as I
know you need at least one child process to scan mail.


 I am using amavisd-new-20030616p10-5 with spamassassin-3.0.3-1 and
 clamav-0.85.1-2 connected to exim-3.35-1 on a Debian woody. (I know that
 these are very old versions)

 TIA
 Timo

Off topic:
As you may know clamav 0.85 may not offer protection from newer
viruses, but I understand that this is the newest version from
backports.org, and it may not be possible to upgrade to the current
version due to woody being unable to meet dependencies required by
new versions of libz1g and libc6. Hopefully the spamassassin version
you are using includes a patch for a known DOS vulnerability in 3.0.3.
It looks like 3.0.4-1woody1 is available from backports.

Gary V



---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/


[AMaViS-user] Problem in the In::AMCL code

2005-10-12 Thread Spam Admin
Installed the latest version of Amavisd and required modules. Getting the 
following error whent rying to start amavisd debug:

Problem in the In::AMCL code:  at /usr/sbin/amavisd line 8918.

I'm using the same configuration as before, no other changes except updates. 
Many searches return nothing. Immediate suggestions appreciated... - Greg Amy





---
Confidentiality Notice

This e-mail message, including any attachments, is for the sole use of the 
intended recipient(s) and may contain confidential or proprietary information 
which is legally privileged.  Any unauthorized review, use, disclosure, or 
distribution is prohibited.  If you are not the intended recipient, please 
promptly contact the sender by reply e-mail and destroy all copies of the 
original message.


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/


RE: [AMaViS-user] saving memory

2005-10-12 Thread amavis
 I have noticed a huge amount of swap usage (around 150 MB 
 with 512 MB of physical RAM). So now I am trying to save 
 memory as much as possible. I reduced $max_servers to 1 in 
 amavisd.conf as supposed in the README.performance file. 
 After a restart of amavisd-new swap usage went down under 100 MB. 
 
 Besides the daemons that I need for mail, the machine runs 
 bind, apache and mysql. I also limited memory usage for those 
 programs as good as I can. This brought me down to around 20 
 MB in swap.
 
 The problem is, that over time I still get over 100 MB swap usage. 
 Obviously amavisd-new is to blame because when I just do a 
 restart of it, I get down to the 20 MB swap.
 
 What I also noticed is, that there are 2 amavisd-new 
 processes after my max_servers reduction (from above). Can I 
 run amavisd-new with $max_servers = 0? Which other measures 
 do you know to limit or to save memory?
 

Timo, what *has previously* been swapped is not all that interesting.  What
is much more important is how much swapping is happening as things are
running, and whether or not that is impacting your ability to process email.
You should look at the output that has been captured from your sar utility
(sar -rW) and examine how swapping is occurring over time.  Don't worry
about what's swapped out to disk now, or the peak values.

Trying to reduce processes to the point of starvation, etc. is not the best
approach - rather, and I'm sure you know the drill, adding more RAM is the
way to go.

-mike



---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/


Re: [AMaViS-user] TROUBLE in check_mail: mime_decode-1 FAILED: write-open...

2005-10-12 Thread Mark Martinec
Josh,

 (01102-01) TROUBLE in check_mail: mime_decode-1 FAILED: write-open
 ../var/lib/amavis/amavis-20051011T113838-01102/parts/p001:
 No such file or directory at /usr/share/perl5/MIME/Body.pm line 414.

As the message says, the file or its directory does not exist.
Are you sure it exists? If running chrooted, it must exist
relative to the jail root.

Where did the .. before the filename come from?

  Mark


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/


Re: [AMaViS-user] TROUBLE in check_mail: mime_decode-1 FAILED: write-open...

2005-10-12 Thread Josh Catlin
The file p001 does *not* exist.  It may have been created, but
immediately deleted.  Either way it does not exist when Body.pm tries
to open it.

It's not running chrooted and I don't know where the .. came from. 
That was a direct copy/paste of the amavisd-new debug output.

We're reinstalling the box this morning so I'm hopefull this problem
will not resurface.

- Josh

On 10/12/05, Mark Martinec [EMAIL PROTECTED] wrote:
 Josh,

  (01102-01) TROUBLE in check_mail: mime_decode-1 FAILED: write-open
  ../var/lib/amavis/amavis-20051011T113838-01102/parts/p001:
  No such file or directory at /usr/share/perl5/MIME/Body.pm line 414.

 As the message says, the file or its directory does not exist.
 Are you sure it exists? If running chrooted, it must exist
 relative to the jail root.

 Where did the .. before the filename come from?

   Mark


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/


Re: [AMaViS-user] Problem in the In::AMCL code

2005-10-12 Thread Mark Martinec
Greg,

 Installed the latest version of Amavisd and required modules. Getting the
 following error whent rying to start amavisd debug:

 Problem in the In::AMCL code:  at /usr/sbin/amavisd line 8918.

 I'm using the same configuration as before, no other changes except
 updates. Many searches return nothing. Immediate suggestions appreciated...

What version of Perl are you using?

The Problem in the In::AMCL code indicates a Perl compilation problem.
Could be due to a corrupted file 'amavisd', or ancient version of perl.

  Mark


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/


Re: [AMaViS-user] Problem in the In::AMCL code

2005-10-12 Thread Mark Martinec
 The Problem in the In::AMCL code indicates a Perl compilation problem.
 Could be due to a corrupted file 'amavisd', or ancient version of perl.

P.S.
perhaps also a compilation problem in one of the included Perl modules.

  Mark


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/


Re: [AMaViS-user] TROUBLE in check_mail: mime_decode-1 FAILED: write-open...

2005-10-12 Thread Gary V
Mark wrote:

 Josh,

 (01102-01) TROUBLE in check_mail: mime_decode-1 FAILED: write-open
 ../var/lib/amavis/amavis-20051011T113838-01102/parts/p001:
 No such file or directory at /usr/share/perl5/MIME/Body.pm line 414.

 As the message says, the file or its directory does not exist.
 Are you sure it exists? If running chrooted, it must exist
 relative to the jail root.

 Where did the .. before the filename come from?

   Mark

That's why you make the big bucks Mark. He must have made an
inadvertent editing error:

$MYHOME = '../var/lib/amavis';

I'm not sure I ever would have noticed.

Gary V



---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/


Re: [AMaViS-user] Know problem but ...

2005-10-12 Thread Alan Glait

I will try to return all clamav to calmav user ...
I check all the how to ... I try verbose loging ... but I cant find why 
I get WARN: all primary virus scanners failed, considering backups  :(


thanx !

Gary V wrote:


Alan wrote:

 


Thanx Gary !
freebsd# ps aux | grep clamd
vscan   68766  0.0  0.6 12868 12316  ??  Is   10:03AM   0:00.00 
/usr/local/sbin/clamd

root69944  0.0  0.0  1416   576  p0  RL+  11:49AM   0:00.00 grep clamd
   



 

I make the changes in amavisd.conf ... I restart it  but the same 
warning in maillog ... WARN: all primary virus scanners failed, 
considering backups
   



Before you make any changes, show me output from:
ls -ld /var/log/clamav/
ls -ld /var/run/clamav/
ls -ld /var/db/clamav/
grep vscan /etc/group

clamd should not be running as user 'vscan'. Changing the user to
vscan means that you would also have to change ownership of a number of
directories. You can do that if you like, or you can put
the User back to 'clamav' in clamd.conf, and DatabaseOwner back to
'clamav' in freshclam.conf.

If you want to keep running as vscan, you need to change ownership of
these directories (stop clamd first):

chown -R vscan:vscan /var/log/clamav/
chown -R vscan:vscan /var/run/clamav/
chown -R vscan:vscan /var/db/clamav

If you do not, then set your User back to clamav:
In clamd.conf, set:
User clamav

and in freshclam.conf
DatabaseOwner clamav

then stop and start clamd and amavisd-new.

Just make sure these three directories are owned by the user you have
listed in clamd.conf and freshclam.conf. I recommend using the default
of 'clamav'. It make upgrades easier. Then follow the instructions at
the top of the howto:
http://www200.pair.com/mecham/spam/clamav-amavisd-new.html

Gary V



---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/


 





---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/


Re: [AMaViS-user] TROUBLE in check_mail: mime_decode-1 FAILED: write-open...

2005-10-12 Thread Josh Catlin
Just to update anyone following this - the reinstall has fixed the
problem.  I think it was as simple as having the rogue .. in there. 
We're on to the next leg of setup here.

Thanks for all the help and patience.  I'll be back if we can't get it
all set up the way we want :)

- Josh

On 10/12/05, Josh Catlin [EMAIL PROTECTED] wrote:
 The file p001 does *not* exist.  It may have been created, but
 immediately deleted.  Either way it does not exist when Body.pm tries
 to open it.

 It's not running chrooted and I don't know where the .. came from.
 That was a direct copy/paste of the amavisd-new debug output.

 We're reinstalling the box this morning so I'm hopefull this problem
 will not resurface.

 - Josh

 On 10/12/05, Mark Martinec [EMAIL PROTECTED] wrote:
  Josh,
 
   (01102-01) TROUBLE in check_mail: mime_decode-1 FAILED: write-open
   ../var/lib/amavis/amavis-20051011T113838-01102/parts/p001:
   No such file or directory at /usr/share/perl5/MIME/Body.pm line 414.
 
  As the message says, the file or its directory does not exist.
  Are you sure it exists? If running chrooted, it must exist
  relative to the jail root.
 
  Where did the .. before the filename come from?
 
Mark



--
Josh Catlin
[EMAIL PROTECTED]
--


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/


Re: [AMaViS-user] not disabling spam code

2005-10-12 Thread Gary V
Anne wrote:

 I've disabled my spam checking:
 # Here is a QUICK WAY to completely DISABLE some sections of code
 # that WE DO NOT WANT (it won't even be compiled-in).
 # For more refined controls leave the following two lines commented out,
 # and see further down what these two lookup lists really mean.
 #
 # @bypass_virus_checks_acl = qw( . );  # uncomment to DISABLE anti-virus 
 code
   @bypass_spam_checks_acl  = qw( . );  # uncomment to DISABLE anti-spam code

 but it still starts the spam checking code:
 Oct 12 14:51:09 banshee amavisd[8827]: SpamControl: initializing 
 Mail::SpamAssassin
 Oct 12 14:51:13 banshee amavisd[8827]: SpamControl: done

 and it still tags messages:

 Why?  What can I do to stop it?

Look further down in your amavisd.conf file to see if this was
overwritten by another assignment (possibly in a policy bank?):

@bypass_spam_checks*

grep bypass_spam /path/to/amavisd.conf

I don't believe this assignment will prevent newer versions of
amavisd-new from loading the spamassassin modules however.
It will continue to bypass_spam_checks.

Gary V



---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/


Re: [AMaViS-user] not disabling spam code

2005-10-12 Thread Gary V
Gary wrote:

 Anne wrote:

 I've disabled my spam checking:
 # Here is a QUICK WAY to completely DISABLE some sections of code
 # that WE DO NOT WANT (it won't even be compiled-in).
 # For more refined controls leave the following two lines commented out,
 # and see further down what these two lookup lists really mean.
 #
 # @bypass_virus_checks_acl = qw( . );  # uncomment to DISABLE anti-virus 
 code
   @bypass_spam_checks_acl  = qw( . );  # uncomment to DISABLE anti-spam code

 but it still starts the spam checking code:
 Oct 12 14:51:09 banshee amavisd[8827]: SpamControl: initializing 
 Mail::SpamAssassin
 Oct 12 14:51:13 banshee amavisd[8827]: SpamControl: done

 and it still tags messages:

 Why?  What can I do to stop it?

 Look further down in your amavisd.conf file to see if this was
 overwritten by another assignment (possibly in a policy bank?):

 @bypass_spam_checks*

 grep bypass_spam /path/to/amavisd.conf

 I don't believe this assignment will prevent newer versions of
 amavisd-new from loading the spamassassin modules however.
 It will continue to bypass_spam_checks.

Provided you are using a 2.0 or greater version, replace it with:

@bypass_spam_checks_maps = (1);

(and still make sure it is not assigned later in amavisd.conf)

This does appear to prevent spamassassin from loading in newer
versions.

Gary V



---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/


[AMaViS-user] sql lookups for non-local recipients?

2005-10-12 Thread David R Bosso

Howdy,

I've been tweaking my amavisd-new config to try and get some efficiency 
savings.  One thing I did was turn off spam scanning for non-local 
recipients via bypass_spam_checks_maps.


This seems to work fine, but I see that amavisd is still attempting all the 
per-user sql lookups for non-local recipients, which always fail.  Is there 
any way to prevent these lookups?  If not, does this seem like a useful 
feature?


Thanks.

-David


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/


Re: [AMaViS-user] not disabling spam code

2005-10-12 Thread Mark Martinec
Anne,

 I've disabled my spam checking:
 # Here is a QUICK WAY to completely DISABLE some sections of code
 # that WE DO NOT WANT (it won't even be compiled-in).
 # For more refined controls leave the following two lines commented out,
 # and see further down what these two lookup lists really mean.
 @bypass_spam_checks_acl  = qw( . );  # uncomment to DISABLE anti-spam
 but it still starts the spam checking code:
 Oct 12 14:51:09 banshee amavisd[8827]: SpamControl: initializing
...
 Why?  What can I do to stop it?


amavisd-new-20040701 / amavisd-new-2.0 release notes:

INCOMPATIBLE CHANGES since amavisd-new-20030616 (any patch level)

- because of the reorganization of lookup tables, a new way
  of quickly disabling virus or spam checks in amavisd.conf is used.
Instead of:
  # @bypass_virus_checks_acl= qw( . ); # uncomment to DISABLE anti-virus code
  # @bypass_spam_checks_acl = qw( . ); # uncomment to DISABLE anti-spam code
the new recipe is:
  # @bypass_virus_checks_maps = (1);   # uncomment to DISABLE anti-virus code
  # @bypass_spam_checks_maps  = (1);   # uncomment to DISABLE anti-spam code


Mark


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/


Re: [AMaViS-user] saving memory

2005-10-12 Thread Timo Veith
I am sorry if this is getting off topic too much. Maybe we should 
continue this thread somewhere else?


[EMAIL PROTECTED] schrieb:

Timo, what *has previously* been swapped is not all that interesting.  What
is much more important is how much swapping is happening as things are
running, and whether or not that is impacting your ability to process email.
You should look at the output that has been captured from your sar utility
(sar -rW) and examine how swapping is occurring over time.  Don't worry
about what's swapped out to disk now, or the peak values.


When I first saw how much swap is beeing used I was a little scared and 
my only thought was of how to reduce it. The higher the amount of used 
swap, the worse it is for the system I thought. I still believe that 
this is right, but I also found a chapter about memory management in 
Linux System Administrators Guide. Now I see that you are right, it's 
more important to monitor swapping over time periods.


I ran sar, but I don't have enough other values to compare them. Here 
are my daily average values for pswpin/s and pswpout/s.


# for x in /var/log/sysstat/sa[0-9][0-9]; do sar -W -f $x | grep ^Aver; done
Average: 0.78  0.00
Average: 1.41  0.00
Average: 3.23  0.11
Average:10.32  0.22
Average:17.49  0.02
Average:15.87  0.03
Average:27.74  0.06
Average:18.13  0.26
Average: 6.88  0.12
Average: 4.28  0.07

Is that good or bad? I have another system with sar activated but I only 
get zeros. So no swapping seems to be done there.



Trying to reduce processes to the point of starvation, etc. is not the best
approach - rather, and I'm sure you know the drill, adding more RAM is the
way to go.


Adding more RAM is my last resort. The system is in production and it is 
not so easy to have down times. Of cource, if anything else fails, I 
will go that way. But maybe the values that I have written above aren't 
so bad and I can live with that swap behaviour? Eventually I have 
learned that swapping in general is not necessarily bad.


So long

Timo


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/


Re: [AMaViS-user] saving memory

2005-10-12 Thread Timo Veith

Gary V schrieb:

The problem is, that over time I still get over 100 MB swap usage.
Obviously amavisd-new is to blame because when I just do a restart of it,
I get down to the 20 MB swap.



I believe the same would happen if you restarted other (large) programs too.


Ok, that is probably true. I didn't try others at that time.


Off topic:
Hopefully the spamassassin version
you are using includes a patch for a known DOS vulnerability in 3.0.3.
It looks like 3.0.4-1woody1 is available from backports.


Thanks for pointing this out, I am running 3.0.4-1woody1 now.

Regards,
Timo


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/


[AMaViS-user] FreeBSD/NetBSD/Linux/Other.

2005-10-12 Thread Dale Walsh
If you have Dawin or Mac OSX, please do not respond, if you use a  
startup script to start amavisd-new, can you send me your startup  
script, the location it resides and the OS you use it on please.


-- Dale


---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/


RE: [AMaViS-user] saving memory

2005-10-12 Thread amavis
 
 When I first saw how much swap is beeing used I was a little 
 scared and my only thought was of how to reduce it. The 
 higher the amount of used swap, the worse it is for the 
 system I thought. I still believe that this is right, but I 
 also found a chapter about memory management in Linux System 
 Administrators Guide. Now I see that you are right, it's 
 more important to monitor swapping over time periods.
 

Exactly - some swapping is normal, and small amounts of occasional swapping
is no problem.  In fact, it helps out poorly written programs where the
programmers don't bother to properly manage memory, in that it dumps out the
pages from the working set that are not frequently used.

 I ran sar, but I don't have enough other values to compare 
 them. Here are my daily average values for pswpin/s and pswpout/s.
 
 # for x in /var/log/sysstat/sa[0-9][0-9]; do sar -W -f $x | 
 grep ^Aver; done
 Average: 0.78  0.00
 Average: 1.41  0.00
 Average: 3.23  0.11
 Average:10.32  0.22
 Average:17.49  0.02
 Average:15.87  0.03
 Average:27.74  0.06
 Average:18.13  0.26
 Average: 6.88  0.12
 Average: 4.28  0.07
 
 Is that good or bad? I have another system with sar activated 
 but I only get zeros. So no swapping seems to be done there.

The average values here are not as useful as individual values, as they tend
to hide the extremes (for example, lots of 0 page swaps and one or two 200
page swaps).  They will tell you as a trend if your system is overloaded,
but not anything about the occasional swap peaks and thrashing.  You need to
look at the individual values to see if you have extreme highs.  Each unit
is a page, which is 4k bytes, so I see on one day you had an average 112k of
swap / second.  This is higher than you'd want.  My average for example is
.024, and never gets above 4.  And your heavy load is swapins, which means
either you have processes that are periodically spiking to get their working
sets, or you have very heavy swap in requirements during boot, and then
little afterwards.  Again, you need to examine the numbers.


 
  Trying to reduce processes to the point of starvation, etc. 
 is not the 
  best approach - rather, and I'm sure you know the drill, 
 adding more 
  RAM is the way to go.
 
 Adding more RAM is my last resort. The system is in 
 production and it is not so easy to have down times. Of 
 cource, if anything else fails, I will go that way. But maybe 
 the values that I have written above aren't so bad and I can 
 live with that swap behaviour? Eventually I have learned that 
 swapping in general is not necessarily bad.
 
Understood - nobody ever wants downtime.  Yet, a 30 minute scheduled
downtime for a RAM upgrade is far more tolerable and safer than mucking with
various daemon configurations on a production system that you don't
understand well, right?  And in the end, you have a stronger work horse.

Best of luck,
-mike



---
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
___
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/