List of received emails.

abhishekgirme

Member
Aug 24, 2021
39
1
8
41
I am looking for a way to export list of emails received by PMG and successfully forwarded to mail server.

Tracking center has limited records display. Is there any command through which i can export these logs?
 
do you only want the amount, or the detailed from/to etc. ?
for the latter you'd have to either parse the mail.log yourself or use the 'pmg-log-tracker' cli tool (this is also the tool behind the tracking center)

note that if your log is large, it may tax your system to run the tool (that's the reason why it's limited on the gui)

see 'pmg-log-tracker --help' for the cli options
 
do you only want the amount, or the detailed from/to etc. ?
for the latter you'd have to either parse the mail.log yourself or use the 'pmg-log-tracker' cli tool (this is also the tool behind the tracking center)

note that if your log is large, it may tax your system to run the tool (that's the reason why it's limited on the gui)

see 'pmg-log-tracker --help' for the cli options
mail.log contains recent conversations only. I would like to fetch details for at least 3 months.
 
you can check if the statistics contain the info you want, but aside from that you'd have to modify your log rotation, since we don't save that information elsewhere
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!