1 (edited by Toggle 2009-09-06 23:14:49)

Topic: Disable Clamd and Amavisd [SOLVED]

Hi, I'm using iRedMail on a small VPS, the install went great, and disabling greylist was a snap... But I'm having a bit of trouble with amavisd and clamd, I have skimmed amavisd.conf and tried @bypass_virus_checks_maps = (1); but this didn't work. If just killing the daemons will work, that's awesome, but I'd like to know for sure just in case. smile

As for why I'd like to do this, it's quite simple, memory and practicality. The memory issue is ultra visible in top with sorted by memory...
2720 clamav    18   0 97860  73m  908 S  0.0 28.5   0:11.14 clamd
6854 amavis    18   0 65072  53m 2452 S  0.0 20.8   0:00.57 amavisd
6856 amavis    18   0 65808  52m 1620 S  0.0 20.5   0:00.00 amavisd
6857 amavis    18   0 65808  52m 1616 S  0.0 20.5   0:00.00 amavisd
6586 apache    16   0 61256  20m  14m S  0.0  7.9   0:00.15 httpd
6587 apache    17   0 63304  18m  13m S  0.0  7.4   0:00.16 httpd
6588 apache    15   0 61256  15m  10m S  0.0  6.1   0:00.15 httpd
6590 apache    17   0 61256  15m  10m S  0.0  6.1   0:00.18 httpd
6592 apache    17   0 61256  15m  10m S  0.0  6.1   0:00.17 httpd
6589 apache    15   0 62524  11m 7504 S  0.0  4.6   0:00.20 httpd
6593 apache    15   0 62524  10m 6540 S  0.0  4.3   0:00.20 httpd
6591 apache    15   0 62524  10m 6536 S  0.0  4.3   0:00.15 httpd
2815 mysql     18   0  204m 9.8m 4380 S  0.0  3.8   0:09.13 mysqld
6584 root      18   0 59004 8748 5460 S  0.0  3.3   0:00.08 httpd

The practicality is that I don't need antivirus, the only email client is via webmail on firefox, on Kubuntu(I am using Karmic, but still tongue). Also, this is a low volume email server and I need to serve my blog as well on this VPS, which only has 256.

Thank you very much for creating this easy solution!! big_smile

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Disable Clamd and Amavisd [SOLVED]

You can comment out this line in postfix main.cf to disable Amavisd + ClamAV + SpamAssassin:

content_filter = smtp-amavis:[127.0.0.1]:10024

And it's safe to disable amavisd, clamd, freshclam services now.

PS: Would you mind share us your iRedMail story in our Success Stories forum? Only some basic information is needed: http://www.iredmail.org/forum/topic25-t … ories.html

3

Re: Disable Clamd and Amavisd [SOLVED]

ZhangHuangbin wrote:

You can comment out this line in postfix main.cf to disable Amavisd + ClamAV + SpamAssassin:

content_filter = smtp-amavis:[127.0.0.1]:10024

PS: Would you mind share us your iRedMail story in our Success Stories forum? Only some basic information is needed: http://www.iredmail.org/forum/topic25-t … ories.html

I was hoping it'd be simple like that, wicked, but is there anyway to keep SpamAssassin? I don't get really spam yet, but I just started using this email as well.

I'd be honored to write that up for you, from what I can see you're an extremely astute developer, and you almost seem to live on this forum, you're a great credit to the opensource community.

4

Re: Disable Clamd and Amavisd [SOLVED]

Toggle wrote:

I was hoping it'd be simple like that, wicked, but is there anyway to keep SpamAssassin? I don't get really spam yet, but I just started using this email as well.

Amavisd invokes SpamAssassin for anti-spam, iRedMail doesn's invoke SpamAssassin directly.

Invoke SpamAssassin by Amavisd and invoke spamassassin directly are almost the same, it will eat your memory.

5

Re: Disable Clamd and Amavisd [SOLVED]

PS: Greylisting can kill 90-95% spams, so it's STRONG RECOMMEND to enable it.

6

Re: Disable Clamd and Amavisd [SOLVED]

ZhangHuangbin wrote:
Toggle wrote:

I was hoping it'd be simple like that, wicked, but is there anyway to keep SpamAssassin? I don't get really spam yet, but I just started using this email as well.

Amavisd invokes SpamAssassin for anti-spam, iRedMail doesn's invoke SpamAssassin directly.

Invoke SpamAssassin by Amavisd and invoke spamassassin directly are almost the same, it will eat your memory.

Wow, end result was a savings of ~130MB of real memory and ~20MB of swap. That's an impressive savings in one line of configuration.

7

Re: Disable Clamd and Amavisd [SOLVED]

ZhangHuangbin wrote:

PS: Greylisting can kill 90-95% spams, so it's STRONG RECOMMEND to enable it.

Yes, I know, but maybe I'll re-enable it when I start getting spam, right now waiting for registration emails and the like is just painful with it on.

Thanks very much for your help and advice, I'll post a link to my success story in the other forum as soon as I finish writing the post in my blog. smile

8

Re: Disable Clamd and Amavisd [SOLVED]

Toggle wrote:

Thanks very much for your help and advice, I'll post a link to my success story in the other forum as soon as I finish writing the post in my blog.

Thanks for your sharing and waiting for your post smile

9

Re: Disable Clamd and Amavisd [SOLVED]

ZhangHuangbin wrote:
Toggle wrote:

Thanks very much for your help and advice, I'll post a link to my success story in the other forum as soon as I finish writing the post in my blog.

Thanks for your sharing and waiting for your post smile

Story posted and linked to.

Thanks for the help again and keep up the great work! smile

10

Re: Disable Clamd and Amavisd [SOLVED]

when you disable amavis in main.cf as listed above, aliases stop working.  any ideas?  im on v.4

11

Re: Disable Clamd and Amavisd [SOLVED]

syadnom wrote:

when you disable amavis in main.cf as listed above, aliases stop working.  any ideas?  im on v.4

I don't have an answer, but having the same issue and would like to know the solution, too.