Moving from Barracuda

rbjohnson78

Member
Aug 8, 2022
34
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: