For testing i exported entire amavisd database on another mysql Server.
Used below query (provided by mir)
select * from msgrcpt left join msgs on msgs.mail_id = msgrcpt.mail_id left join maddr on msgrcpt.rid = maddr.id; (thanks to Mir)
But this not shows status 'sent'
Only shows 'queued and Discarded' status. what happened to that mail after put into mailqueue is not clear.
i also tried to build an additional mailtracking database using postfix maillog, but Subject line is missing in postfix maillog, status is showing in maillog.
Isit possible to include Subject line in postfix log? Will it make any problems
I need to backup these mail status reports atleast for one year in csv or using any other method (in Ired i have set for 7 days due to perfomance issues)
FYI, suceesfully cnfigd pflogsumm on ired (also sheduled on cron for sending activity reports on daily basis ), this includes errors & bounce reports.