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

postfix message size

565 views
Skip to first unread message

Jim McIver

unread,
Sep 27, 2010, 6:00:44 PM9/27/10
to
I'm running postfix 2.5.6 on Freebsd 7.2 and am having an issue with
message size limit and a user not being able to send a file.

I'm trying to limit the message size to 6 megabytes and in the main.cf I
set:

message_size_limit = 6000000

maillog shows:

(message size 5414717 exceeds size limit 5242880 of server
127.0.0.1[127.0.0.1])

I wanted the message so I set message_size_limit = 0 and reloaded postfix.

postconf -n |grep size shows:

message_size_limit = 0

so I figured the message should come through as this is suppose to
disable the size limit.

I still get: message size 5415340 exceeds size limit 5242880 of server
127.0.0.1

Is there anyway to fix this?
thx,


--
Jim McIver

Ben McGinnes

unread,
Sep 27, 2010, 6:55:33 PM9/27/10
to
On 28/09/10 8:00 AM, Jim McIver wrote:
> I'm running postfix 2.5.6 on Freebsd 7.2 and am having an issue with
> message size limit and a user not being able to send a file.
>
> I'm trying to limit the message size to 6 megabytes and in the main.cf I
> set:
>
> message_size_limit = 6000000

Try setting the message size to 6291456 (or 6300000), which is 6Mb.


Regards,
Ben


signature.asc

Jim McIver

unread,
Sep 27, 2010, 7:54:01 PM9/27/10
to
Ben,

I still get message size 5410744 exceeds size limit 5242880 of server
127.0.0.1 in the log and the message bounced back to send.

regards,
-Jim

Sahil Tandon

unread,
Sep 27, 2010, 8:17:26 PM9/27/10
to
Jim McIver wrote:
> On 9/27/2010 3:55 PM, Ben McGinnes wrote:
>> On 28/09/10 8:00 AM, Jim McIver wrote:
>>> I'm running postfix 2.5.6 on Freebsd 7.2 and am having an issue with
>>> message size limit and a user not being able to send a file.
>>>
>>> I'm trying to limit the message size to 6 megabytes and in the main.cf I
>>> set:
>>>
>>> message_size_limit = 6000000
>>
>> Try setting the message size to 6291456 (or 6300000), which is 6Mb.
>>
>>
> Ben,
>
> I still get message size 5410744 exceeds size limit 5242880 of server
> 127.0.0.1 in the log and the message bounced back to send.

Is there a content filter somewhere in your setup? What is listening on
127.0.0.1? The error you post is coming from the Postfix smtp (client),
not smtpd (server). The Postfix smtp client refuses to deliver a message
to the server listening on 127.0.0.1, because the latter has announced a
SIZE limit of 5242880. For more help, post the output of 'postconf -n',
provide the ENTIRE rejection message that appears in your log. Also,
see DEBUG_README.

--
Sahil Tandon <sa...@FreeBSD.org>

Stan Hoeppner

unread,
Sep 27, 2010, 9:53:06 PM9/27/10
to
Jim McIver put forth on 9/27/2010 5:00 PM:

> I'm running postfix 2.5.6 on Freebsd 7.2 and am having an issue with
> message size limit and a user not being able to send a file.
>
> I'm trying to limit the message size to 6 megabytes and in the main.cf I
> set:
>
> message_size_limit = 6000000
>
> maillog shows:
>
> (message size 5414717 exceeds size limit 5242880 of server

> 127.0.0.1[127.0.0.1])
>
> I wanted the message so I set message_size_limit = 0 and reloaded postfix.
>
> postconf -n |grep size shows:
>
> message_size_limit = 0
>
> so I figured the message should come through as this is suppose to
> disable the size limit.
>
> I still get: message size 5415340 exceeds size limit 5242880 of server
> 127.0.0.1

Complete postconf -n, master.cf, and unedited log entries would be
helpful. In lieu of that, it looks like maybe you a content filter in
master.cf configured on 127.0.0.1 that has

-o message_size_limit = 5242880

That just a wild guess in absence of seeing your complete config files.

--
Stan

Ralf Hildebrandt

unread,
Sep 28, 2010, 3:32:35 AM9/28/10
to
* Jim McIver <jmc...@lmtribune.com>:

> I'm trying to limit the message size to 6 megabytes and in the
> main.cf I set:
>
> message_size_limit = 6000000

That's not 6 megabytes

> (message size 5414717 exceeds size limit 5242880 of server
> 127.0.0.1[127.0.0.1])

5242880 != 6000000

> I wanted the message so I set message_size_limit = 0 and reloaded postfix.
>
> postconf -n |grep size shows:
>
> message_size_limit = 0

OK

> so I figured the message should come through as this is suppose to
> disable the size limit.
>
> I still get: message size 5415340 exceeds size limit 5242880 of
> server 127.0.0.1

What's running on 127.0.0.1? A virus scanner?

--
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

Charles Marcus

unread,
Sep 28, 2010, 7:58:36 AM9/28/10
to
On 2010-09-27 6:00 PM, Jim McIver wrote:
> (message size 5414717 exceeds size limit 5242880 of server
> 127.0.0.1[127.0.0.1])

As already pointed out, this error is not from the postfix server, but
from the client...

Are you submitting this message via a webmail client?

Maybe this is a web server/php upload size limitation?

--

Best regards,

Charles

Jim McIver

unread,
Sep 28, 2010, 11:09:35 AM9/28/10
to

On 9/27/2010 6:53 PM, Stan Hoeppner wrote:
> Jim McIver put forth on 9/27/2010 5:00 PM:
>> I'm running postfix 2.5.6 on Freebsd 7.2 and am having an issue with
>> message size limit and a user not being able to send a file.
>>
>> I'm trying to limit the message size to 6 megabytes and in the main.cf I
>> set:
>>
>> message_size_limit = 6000000
>>
>> maillog shows:

>>
>> (message size 5414717 exceeds size limit 5242880 of server
>> 127.0.0.1[127.0.0.1])
>>
>> I wanted the message so I set message_size_limit = 0 and reloaded postfix.
>>
>> postconf -n |grep size shows:
>>
>> message_size_limit = 0
>>
>> so I figured the message should come through as this is suppose to
>> disable the size limit.
>>
>> I still get: message size 5415340 exceeds size limit 5242880 of server
>> 127.0.0.1
>

> Complete postconf -n, master.cf, and unedited log entries would be
> helpful. In lieu of that, it looks like maybe you a content filter in
> master.cf configured on 127.0.0.1 that has
>
> -o message_size_limit = 5242880
>
> That just a wild guess in absence of seeing your complete config files.
>
Stan,

Good catch, forgot about the content filter for viruses, it also had a
size setting.
thx,
-Jim

Sahil Tandon

unread,
Sep 28, 2010, 8:12:52 PM9/28/10
to
Charles Marcus wrote:
> On 2010-09-27 6:00 PM, Jim McIver wrote:
>> (message size 5414717 exceeds size limit 5242880 of server
>> 127.0.0.1[127.0.0.1])
>
> As already pointed out, this error is not from the postfix server, but
> from the client...

Correct.

> Are you submitting this message via a webmail client?

Huh?

> Maybe this is a web server/php upload size limitation?

No. What in the log excerpt makes you suspect that?

--
Sahil Tandon <sa...@FreeBSD.org>

Charles Marcus

unread,
Sep 29, 2010, 7:03:25 AM9/29/10
to
On 2010-09-28 8:12 PM, Sahil Tandon wrote:

> Charles Marcus wrote:
>> Are you submitting this message via a webmail client?

> Huh?

>> Maybe this is a web server/php upload size limitation?

> No. What in the log excerpt makes you suspect that?

The 127.0.0.1 IP address - but obviously I replied without considering
all of the evidence, sorry... crawling back in my hole now...

--

Best regards,

Charles

0 new messages