* 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 -- Ralf Hildebrandt Geschäftsbereich IT | Abteilung Netzwerk Charité - Universitätsmedizin Berlin Campus Benjamin Franklin Hindenburgdamm 30 | D-12203 Berlin Tel. +49 30 450 570 155 | Fax: +49 30 450 570 962 ralf.hildebra...@charite.de | http://www.charite.de