Moving from Barracuda

rbjohnson78

Member
Aug 8, 2022
32
0
11
We are moving away from our Barracuda relay, and in testing, we cannot find anywhere, where we can view the outgoing message to confirm what is being sent. We can only see the email address, and not the subject or body. Is there a way?
 
We can only see the email address, and not the subject or body. Is there a way?
I think the concensus with PMG is against verbose message/content logging. I don't believe there is a straight forward way to log msg bodies other than BCC them. It is possible to log additional headers.

Add to the postfix config by copying the default template /var/lib/pmg/templates/main.cf.in to /etc/pmg//templates/main.cf.in and adding:

Code:
header_checks = regexp:/etc/postfix/header_checks

Create /etc/postfix/header_checks, specify extra headers to log or remove. e.g.
Code:
# Log
/^\s*Subject:/          INFO
/^\s*From:/             INFO
/^\s*To:/               INFO
/^\s*Envelope-To:/      INFO

# Remove
/^\s*User-Agent/        IGNORE
/^\s*X-Enigmail/        IGNORE

and run pmgconfig sync --restart
 
Last edited:

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!