List Info

Thread: Amavisd/Clamav/Maia-Mailguard issue




Amavisd/Clamav/Maia-Mailguard issue
country flaguser name
United States
2007-04-29 23:25:35
I'm not 100% sure if this is an Maia issue directly, so
forgive me if 
it's not. Anyway, I received an email from a relative a few
days ago. 
They sent me a large email full of attachments (large
images). My 
maia-mailguard limit is set to reject emails over 12.5mb.
Anyway, it was 
somehow accepted and scanned. Spamassasin skipped the
scanning and 
clamav attempted to scan the images but it just hangs and
them dies. It 
exhausts the freebsd per process memory limit which is
512mb. This is 
ridiculous for a 5 person email server with 4gb of ram and a
strong 
process. I had another person send me a 9mb mp3 file just
for kicks and 
the same thing happened.

I'm running FreeBSD 6.1, Postfix, Maia-Mailguard, Amavisd,
Spamassasin, 
and Clamav. Everything is installed from ports except maia
and amavisd.

Here are the error messages:
http://code.bu
lix.org/jbvo17-40308?raw

I'm absolutely stumped as to what it could be. Like I said
my 
maia-mailguard limit in the administrator control panel is
set to 12.5mb.

Any help would be greatly appreciated.

Thanks !
_______________________________________________
Maia-users mailing list
Maia-usersrenaissoft.com
http://www.renaissoft.com/mailman/listinfo/maia-users

Re: Amavisd/Clamav/Maia-Mailguard issue
country flaguser name
Canada
2007-04-30 00:32:30
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Placid Publishing, LLC wrote:

> They sent me a large email full of attachments (large
images). My 
> maia-mailguard limit is set to reject emails over
12.5mb. Anyway, it was 
> somehow accepted and scanned. Spamassasin skipped the
scanning and 
> clamav attempted to scan the images but it just hangs
and them dies. It 
> exhausts the freebsd per process memory limit which is
512mb. This is 
> ridiculous for a 5 person email server with 4gb of ram
and a strong 
> process. I had another person send me a 9mb mp3 file
just for kicks and 
> the same thing happened.

See this FAQ entry: <
http://www.maiamailguard.com/maia/wiki/SizeLimit>

Most likely you haven't set one or more of the four
different size
limits properly, or the relationship between your size
limits is not
giving you the result you're after.  The FAQ entry above
explains how to
set all of these.

If you want to reject oversized items, the best place to do
that is at
your upstream MTA (postfix), which can shield the more
resource-intensive processes like Maia from items too big to
handle
effectively.

The reason spam filters are so resource-hungry is that
they're string
processors--they load the entire mail contents into memory
in order to
do things like run regular expression tests on it, unpack
attachments
for scanning, and optionally encrypt the contents.  All of
this
multiplies the size of the mail numerous times as
subroutines pass
around copies of the contents in memory (it's not always
possible to
pass-by-reference, particularly with transformational
functions like
encryption/decryption).  As such, you want to do as much
shielding as
possible upstream from amavisd-maia to avoid choking it.

- --
Robert LeBlanc <rjlrenaissoft.com>
Renaissoft, Inc.
Maia Mailguard <http://www.maiamail
guard.com/>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGNX9uGmqOER2NHewRAh3fAJsEVzJxzfQBgkRcS+vUv3qnRTI4AACe
K3gY
82DR7lGp4d1hzXPhUuVMPoA=
=6cbS
-----END PGP SIGNATURE-----
_______________________________________________
Maia-users mailing list
Maia-usersrenaissoft.com
http://www.renaissoft.com/mailman/listinfo/maia-users

Re: Amavisd/Clamav/Maia-Mailguard issue
country flaguser name
United States
2007-04-30 15:58:17
I looked over the settings, their are default. Postfix,
maia, amavisd, 
spamassassin. Still the same issue. A 15mb email will crash.
:(

Robert LeBlanc wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Placid Publishing, LLC wrote:
>
>   
>> They sent me a large email full of attachments
(large images). My 
>> maia-mailguard limit is set to reject emails over
12.5mb. Anyway, it was 
>> somehow accepted and scanned. Spamassasin skipped
the scanning and 
>> clamav attempted to scan the images but it just
hangs and them dies. It 
>> exhausts the freebsd per process memory limit which
is 512mb. This is 
>> ridiculous for a 5 person email server with 4gb of
ram and a strong 
>> process. I had another person send me a 9mb mp3
file just for kicks and 
>> the same thing happened.
>>     
>
> See this FAQ entry: <
http://www.maiamailguard.com/maia/wiki/SizeLimit>
>
> Most likely you haven't set one or more of the four
different size
> limits properly, or the relationship between your size
limits is not
> giving you the result you're after.  The FAQ entry
above explains how to
> set all of these.
>
> If you want to reject oversized items, the best place
to do that is at
> your upstream MTA (postfix), which can shield the more
> resource-intensive processes like Maia from items too
big to handle
> effectively.
>
> The reason spam filters are so resource-hungry is that
they're string
> processors--they load the entire mail contents into
memory in order to
> do things like run regular expression tests on it,
unpack attachments
> for scanning, and optionally encrypt the contents.  All
of this
> multiplies the size of the mail numerous times as
subroutines pass
> around copies of the contents in memory (it's not
always possible to
> pass-by-reference, particularly with transformational
functions like
> encryption/decryption).  As such, you want to do as
much shielding as
> possible upstream from amavisd-maia to avoid choking
it.
>
> - --
> Robert LeBlanc <rjlrenaissoft.com>
> Renaissoft, Inc.
> Maia Mailguard <http://www.maiamail
guard.com/>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
>
>
iD8DBQFGNX9uGmqOER2NHewRAh3fAJsEVzJxzfQBgkRcS+vUv3qnRTI4AACe
K3gY
> 82DR7lGp4d1hzXPhUuVMPoA=
> =6cbS
> -----END PGP SIGNATURE-----
> _______________________________________________
> Maia-users mailing list
> Maia-usersrenaissoft.com
> http://www.renaissoft.com/mailman/listinfo/maia-users
>   

_______________________________________________
Maia-users mailing list
Maia-usersrenaissoft.com
http://www.renaissoft.com/mailman/listinfo/maia-users

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )