Re: question about logging of blocks resulting from message_size_limit

2009-09-02 Thread /dev/rob0
Please do not top-post your replies. Thank you.

On Wednesday 02 September 2009 17:03:20 Christopher Adams wrote:
> Thank you for your reply. I did find the bounce that indicates
> that the limit had been exceeded. I thought that the logs might
> also reflect that it had been blocked.

Only if it was actually blocked by your server, such as if the DATA
had been sent and was in excess of your limit. ESMTP is designed to
avoid this, as the ESMTP server tells the client its size limit in
response to EHLO.

What seems to have happened in your case is that the client
disconnected without attempting to send the message, which is the
proper thing to do.

> Another question - can the message that the sender receives be
> modified? 

If the connecting client was Postfix, and you control it, see the
bounce(5) man page. Of course you cannot modify bounces sent by
systems you do not control.

But in many cases you can customize the rejection seen by the
connecting client. See the SMTPD_ACCESS_README and access(5) for
details.
-- 
Offlist mail to this address is discarded unless
"/dev/rob0" or "not-spam" is in Subject: header


Re: question about logging of blocks resulting from message_size_limit

2009-09-02 Thread Christopher Adams
Thank you for your reply. I did find the bounce that indicates that
the limit had been exceeded. I thought that the logs might also
reflect that it had been blocked.

Another question - can the message that the sender receives be modified?

On Wed, Sep 2, 2009 at 1:17 PM, Victor
Duchovni wrote:
> On Wed, Sep 02, 2009 at 01:04:30PM -0700, Christopher Adams wrote:
>
>> I have modified the message_size_limit in main.cf and restarted
>> postfix. If I send messages under the size specified, they are
>> delivered normally. If the message is over the limit, the message is
>> not delivered, but there is no entry in the /var/log/maillog that
>> shows that it was blocked.
>
> Messages over the size limit are not typically blocked. Rather the
> sending system sees the size limit and does even send the message,
> returning a bounce to the sender instead.
>
> --
>        Viktor.
>
> Disclaimer: off-list followups get on-list replies or get ignored.
> Please do not ignore the "Reply-To" header.
>
> To unsubscribe from the postfix-users list, visit
> http://www.postfix.org/lists.html or click the link below:
> 
>
> If my response solves your problem, the best way to thank me is to not
> send an "it worked, thanks" follow-up. If you must respond, please put
> "It worked, thanks" in the "Subject" so I can delete these quickly.
>



-- 
Christopher Adams
adam...@gmail.com


Re: question about logging of blocks resulting from message_size_limit

2009-09-02 Thread Wietse Venema
Christopher Adams:
> I have modified the message_size_limit in main.cf and restarted
> postfix. If I send messages under the size specified, they are
> delivered normally. If the message is over the limit, the message is
> not delivered, but there is no entry in the /var/log/maillog that
> shows that it was blocked. What am I missing or is this normal
> behavior. Also, is there a way to send something back to the sender to
> indicate that the message was too big?

It's not logged because the SMTP client never sends the mail.
The SMTP server announces the size limit and that is sufficient.

Wietse


Re: question about logging of blocks resulting from message_size_limit

2009-09-02 Thread Victor Duchovni
On Wed, Sep 02, 2009 at 01:04:30PM -0700, Christopher Adams wrote:

> I have modified the message_size_limit in main.cf and restarted
> postfix. If I send messages under the size specified, they are
> delivered normally. If the message is over the limit, the message is
> not delivered, but there is no entry in the /var/log/maillog that
> shows that it was blocked.

Messages over the size limit are not typically blocked. Rather the
sending system sees the size limit and does even send the message,
returning a bounce to the sender instead.

-- 
Viktor.

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the "Reply-To" header.

To unsubscribe from the postfix-users list, visit
http://www.postfix.org/lists.html or click the link below:


If my response solves your problem, the best way to thank me is to not
send an "it worked, thanks" follow-up. If you must respond, please put
"It worked, thanks" in the "Subject" so I can delete these quickly.


question about logging of blocks resulting from message_size_limit

2009-09-02 Thread Christopher Adams
I have modified the message_size_limit in main.cf and restarted
postfix. If I send messages under the size specified, they are
delivered normally. If the message is over the limit, the message is
not delivered, but there is no entry in the /var/log/maillog that
shows that it was blocked. What am I missing or is this normal
behavior. Also, is there a way to send something back to the sender to
indicate that the message was too big?

-- 
Christopher Adams
adam...@gmail.com