2011/11/25 Ralf Hildebrandt <ralf.hildebra...@charite.de>:
> * Vincenzo Romano <vincenzo.rom...@notorand.it>:
>> Hi all.
>> My application uses the sendmail interface of its local postfix
>> installation to send emails, a few thousand a day.
>> Of course, this has been working pretty fine so far.
>> Now I'd need to be able to track these emails and the best thing I
>> could do is to "somehow" obtain from sendmail/postfix
>> the message-ID it generated to each single submission so I can later
>> check the logs about delays and so on.
>> I've not been able to find a reliable way to do it as my issue is that
>> I can send several emails to the same destination address within a few
>> seconds and simply use the destination address and the (supposed)
>> submission timestamp won't help much.
>> Any idea whether this is doable and how to?
>
> Rather use SMTP injection and then use the queueid:
>
> MAIL FROM:<hil...@charite.de>
> 250 2.1.0 Ok
> RCPT TO:<vincenzo.rom...@notorand.it>
> 250 2.1.5 Ok
> DATA
> 354 End data with <CR><LF>.<CR><LF>
> foo
> .
> 250 2.0.0 Ok: queued as 3Sqgph2ghTz2r0b      <-------- !
> QUIT
>

Yes, that's the SMTP dialogue.
But it seems to me that the sendmail (or any other postfix tool) can
provide it to be on a per-submission basis ...

Reply via email to