On Thu, 20 Dec 2018 at 14:23, d tbsky <tbs...@gmail.com> wrote:

> Matus UHLAR - fantomas <uh...@fantomas.sk>
> >> On 20.12.18 21:50, d tbsky wrote:
> >>I don't know if it is easier. but what I want is three information:
> >>the mail content, who send the mail, the mail send to whom.
> >
> >the latter 2 information is not available in mail header, unless you use
> >dirty hacks.
>
>    yes  I think I already use some dirty hacks. unfortunately it
> doesn't cover all the situation yet.
> I need more hack suggestion..
>
> > it's better (and often safer) to archive logs instead of while mail.
>
>   I need to archive the whole mails and related info. I think  it's a
> common requirement for many companies?
>

I never heard of such requirement before. But the QueueID can be found in
the first Received: header in each archived email and you can match this
with the relevant smtp line for the outgoing delivery in the log file. You
could extract the relevant data from this line and feed it back into the
saved email file as a dummy header. It's a hack, sure. If you use a
content_filter such as amavis then it is a bit harder because there are
different QueueIDs for the received and outgoing emails.

Reply via email to