2009/6/15 Stéphane MERLE <[email protected]>: > Can I, at least, add the from in the logs ? > > Jun 15 11:59:01 smtp postfix/smtp[3061]: 683EB37AECA3: > to=<[email protected]>, relay=mx1.hotmail.com[65.55.92.136]:25, > conn_use=91, delay=401662, delays=401197/464/0.13/0.32, dsn=2.0.0, > status=sent (250 <[email protected]> Queued > mail for delivery) > > would be : > > Jun 15 11:59:01 smtp postfix/smtp[3061]: 683EB37AECA3: > from=<[email protected]>, to=<[email protected]>, > relay=mx1.hotmail.com[65.55.92.136]:25, conn_use=91, delay=401662, > delays=401197/464/0.13/0.32, dsn=2.0.0, status=sent (250 > <[email protected]> Queued mail for > delivery)
My understanding of the Postfix internals isn't that good, but I suspect it's just not that simple. Example: your From address may be subject to rewriting; which one should Postfix log? Postfix may not keep the pre-rewrite address, I'm not sure. As for modifying Postfix's logging, I don't believe it's possible without editing the source; it's not configurable.
