Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to limit attachment size in postfix

178 views
Skip to first unread message

Arora, Sumit

unread,
Feb 4, 2010, 6:50:26 AM2/4/10
to

Hi All,

 

Is there any way I can limit the size of per attachment in postfix?

 

Thanks & Regards,
Sumit Arora

IPG R&D Hub, Gurgaon
Hewlett-Packard India Software Operation Pvt. Ltd.

Work: x19013

Cell:  +91-9958181104

 

J.D. Bronson

unread,
Feb 4, 2010, 6:55:54 AM2/4/10
to
in file main.cf:

message_size_limit =

--
J.D. Bronson

Arora, Sumit

unread,
Feb 4, 2010, 6:58:21 AM2/4/10
to
Using message_size_limit, message size will be limited
But want to limit attachment size, not message size.

Ralf Hildebrandt

unread,
Feb 4, 2010, 7:04:41 AM2/4/10
to
* Arora, Sumit <sumit...@hp.com>:

> Using message_size_limit, message size will be limited
> But want to limit attachment size, not message size.

One might argue these two values are intertwined.
But individual enforcement is not possible

--
Ralf Hildebrandt
Geschäftsbereich IT | Abteilung Netzwerk
Charité - Universitätsmedizin Berlin
Campus Benjamin Franklin
Hindenburgdamm 30 | D-12203 Berlin
Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962
ralf.hil...@charite.de | http://www.charite.de

Miles Fidelman

unread,
Feb 4, 2010, 10:15:27 AM2/4/10
to
Ralf Hildebrandt wrote:
> * Arora, Sumit<sumit...@hp.com>:
>
>> Using message_size_limit, message size will be limited
>> But want to limit attachment size, not message size.
>>
> One might argue these two values are intertwined.
> But individual enforcement is not possible
>
If you run your mail through a virus and/or spam filter you might be
able to apply limits there. I'm pretty sure that there's a way to
fiddle with the config variables in the amavisd/spamassassin combo to
limit attachment size.

Miles Fidelman

--
In theory, there is no difference between theory and practice.
In practice, there is. .... Yogi Berra

Mark Nernberg

unread,
Feb 5, 2010, 12:42:42 AM2/5/10
to
That is configurable in amavisd.

And, if you use mimedefang, you can also strip or truncate the attachments.
0 new messages