The original mail is from stat@xxx to nbenhadid@xxx, mduriez@xxx and 
dgueraud@xxx.

When postfix transmit it to amavis we have those lines
postfix/smtp[4439]: C7A527414E: to=<mduriez@xxx>, 
relay=127.0.0.1[127.0.0.1]:10050, delay=8.8, delays=6.1/0/0/2.7, 
dsn=2.0.0, status=sent (250 2.0.0 Ok, id=04231-04, from 
MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 1433874162)
postfix/smtp[4439]: C7A527414E: to=<dgueraud@xxx>, 
relay=127.0.0.1[127.0.0.1]:10050, delay=8.8, delays=6.1/0/0/2.7, 
dsn=2.0.0, status=sent (250 2.0.0 Ok, id=04231-04, from 
MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 1433874162)
postfix/smtp[4439]: C7A527414E: to=<nbenhadid@xxx>, 
relay=127.0.0.1[127.0.0.1]:10050, delay=8.8, delays=6.1/0/0/2.7, 
dsn=2.0.0, status=sent (250 2.0.0 Ok, id=04231-04, from 
MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 1433874162)
postfix/qmgr[364]: C7A527414E: removed

So postfix queued three mails whith the same id 1433874162.

Now when amavis looks at these mails :

amavis[4231]: (04231-04) Passed CLEAN, SCAN-OUTMAIL [YY.YYY.YYY.YY] 
YY.YYY.YYY.YY] <stats@xxx> -> 
<mduriez@xxx>,<dgueraud@xxx>,<nbenhadid@xxx>, Message-ID: 
<011b01cbd821$4075e660$c161b320$@fr>, mail_id: yzSTUfSdJ2wI, Hits: -1, 
size: 265980, queued_as: 1433874162/4867674151, 2716 ms

Amavis give them two different queue ids 1433874162 and 4867674151.

So when looking for mail 4867674151 we can't get back to the original 
queue id C7A527414E.

grep 4867674151

postfix/smtpd[1789]: 4867674151: 
client=tru75-4-82-230-34-183.fbx.proxad.net[82.230.34.183]
postfix/cleanup[1957]: 4867674151: 
message-id=<011b01cbd821$4075e660$c161b320$@fr>
postfix/qmgr[364]: 4867674151: from=<stats@xxx>, size=266025, nrcpt=1 
(queue active)
amavis[4231]: (04231-04) FWD via SMTP: <stats@xxx> -> 
<nbenhadid@xxx>,BODY=7BIT 250 2.0.0 Ok, id=04231-04, from 
MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 4867674151
amavis[4231]: (04231-04) Passed CLEAN, SCAN-OUTMAIL [82.230.34.183] 
[82.230.34.183] <stats@xxx> -> 
<mduriez@xxx>,<dgueraud@xxxr>,<nbenhadid@xxx>, Message-ID: 
<011b01cbd821$4075e660$c161b320$@fr>, mail_id: yzSTUfSdJ2wI, Hits: -1, 
size: 265980, queued_as: 1433874162/4867674151, 2716 ms
postfix/smtp[3860]: 4867674151: to=<nbenhadid@xxx>, 
relay=xxx[YY.YYY.YYY.YY]:25, delay=24, delays=0.28/0/0.06/23, dsn=2.0.0, 
status=sent (250 Ok: queued as 2342E619AB)
postfix/qmgr[364]: 4867674151: removed

But we really need to be able to get back from the id after amavis to 
the id before because we want to trace whole mail process from entering 
to postfix, pass through amavisd and postfix reinjection.

What's the solution please ?

Thanks


Sebastien

------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net 
https://lists.sourceforge.net/lists/listinfo/amavis-user 
 Please visit http://www.ijs.si/software/amavisd/ regularly
 For administrativa requests please send email to rainer at openantivirus dot 
org

Reply via email to