I need catch email bodies and headers that are sent by postfix on my Ubuntu server.
Could you please explain me, how to catch it?
I know I can do it by postcat (postcat -vq XXXXXXXXXX
) when message is in mail queue, but unfortunately I don't know queue ID (XXXXXXXXXX
) and when I find it, message is already sent.