Exim: как зайти в тело письма

512
Ray O'Donnell

Как я могу зарегистрировать тело письма в Exim?

Моя конкретная потребность - отслеживать, почему электронное письмо от пользователя www-dataгенерируется так часто - я вижу запись его доставки в журналах exim, но не то, что в нем.

Я использую Debian Jessie и использую разделенную конфигурацию.

Спасибо!

1

1 ответ на вопрос

1
Wouter Verhelst

I'm not sure if it's possible to write the contents of a mail to exim's log, but even if it is, I would recommend against it since it would make your logs fairly unreadable.

However, exim has a shadow_transport option which you can set on another transport, and which would allow you to write the contents of a mail to a local mailbox for later reference; this should allow you to do what you want to do. For more information, check out this part of the exim specification.

Note though that some jurisdictions may not look kindly on this type of casual intrusion of your users' privacy. If in doubt, contact your lawyer.

Похожие вопросы