Решил другим путем.
Установил параметр bounce_return_body в false.
Заголовков исходного письма в bounce достаточно.
Спасибо.

> Не очень понятен смысл экономить килобайты, правда :)
Дело не в экономии байтов.
Было желание понять, почему так.

------------------------
С уважением,
Голуб Михаил


> -----Original Message-----
> From: [email protected] [mailto:exim-users-
> [email protected]] On Behalf Of dawnshade
> Sent: Tuesday, November 29, 2011 9:47 AM
> To: Exim MTA на русском
> Subject: Re: [Exim-users] bounce_return_size_limit
> 
> Оно?
> 
> 
> When the body of any message that is to be included in a bounce message is
> greater than the limit, it is truncated, and a comment pointing this out
is
> added at the top. The actual cutoff may be greater than the value given,
> owing
> to the use of buffering for transferring the message in chunks (typically
8K in
> size).
> 
> 8K*2=16
> 
> Не очень понятен смысл экономить килобайты, правда :)
> 
> 
> 29 ноября 2011, 11:41 от Golub Mikhail <[email protected]>:
> > Всем привет.
> >
> > Вопрос о bounce_return_size_limit.
> > Кто вникал, прошу объяснить.
> >
> > В конфиге указано:
> > bounce_return_size_limit = 8K
> > bounce_return_message = true
> >
> > Провожу тест. Отправляю письмо на несуществующий адрес, чтобы
> получить
> > bounce. Получаю, смотрю лог.
> > Мое письмо на несуществующий адрес - S=805126
> > Bounce - S=18130 T="Mail delivery failed: returning message to sender"
> >
> > В bounce сообщении:
> > ------ The body of the message is 804318 characters long; only the first
> > ------ 16384 or so are included here.
> >
> > Вопрос: откуда берётся число  16384 байт (16 Кбайт, вдвое больше, чем
> > указано в конфиге в параметре bounce_return_size_limit).
> >
> > В spec.txt:
> > $bounce_return_size_limit
> >     This contains the value set in the bounce_return_size_limit option,
> > rounded
> >     up to a multiple of 1000. It is useful when a customized error
message
> > text
> >     file is in use (see chapter 46).
> >
> > ...
> >
> > This is a permanent error. The following address(es) failed:
> > ****
> > The following text was generated during the delivery attempt(s):
> > ****
> > ------ This is a copy of the message, including all the headers.
> >   ------
> > ****
> > ------ The body of the message is $message_size characters long;
> >   only the first
> > ------ $bounce_return_size_limit or so are included here.
> > ****
> >
> > ------------------------
> > С уважением,
> > Голуб Михаил
> >
> > _______________________________________________
> > Exim-users mailing list
> > [email protected]
> > http://mailground.net/mailman/listinfo/exim-users
> >
> >
> _______________________________________________
> Exim-users mailing list
> [email protected]
> http://mailground.net/mailman/listinfo/exim-users



_______________________________________________
Exim-users mailing list
[email protected]
http://mailground.net/mailman/listinfo/exim-users

Ответить