how to keep transferred emails for n days

Nov 21, 2024
10
0
1
hello,

I am trying to troubleshoot some emails that pass DKIM validation in PMG but fail it when evaluated by internal servers.
I am being asked to get the "message stream" in order to compare it with the message the internal server is using to verify dkim signature.

Question:
can I keep emails that are transferred internally for a number of days?

Mike
 
I would recommend adding a rule with a BCC action to an address where the mail will then be sent
 
Stoiko,
I can capture the email when it is received by internal server.
I need the email before it is transferred to the internal server.
Ideally, once the email is received and pmg decides it is good and has to be transferred, it sits on a queue. I need it to be moved to a folder (after it is transferred) instead of being deleted.
 
As said - the easiiest way is to include a rule with low priority which sends this to a BCC-address - that will be the same mail as your the one going to your downstream server.

else there probably is a way to do something similar with the postfix config - but I'd again recommend trying the easy way first
 
I am looking for the postfix config needed to do that

Support team for the internal server are asking specifically for that (not a bcc copy on the internal server)
 
I am looking for the postfix config needed to do that

Support team for the internal server are asking specifically for that (not a bcc copy on the internal server)
better yet,
if during the different stages of pmg processing there are different versions of the email on file, I would need those too.
We are trying to find out why the internal server fails DKIM verification and it could be some changes that occur on headers on the processing by pmg.
 
I already changed the rule that was adding SPAM to subject because subject is usually involved in DKIM signature. After this, things are better. But still some emails have good DKIM in PMG and then they fail DKIM verification internally.
 

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!