Every time my postfix servers sent emails at the destination the emails headers include the following:
by suppaserver.example.dev (Postfix) with ESMTPSA id 79D412E1A3A
How can I remove the
(Postfix) information. My ideia is to send the emails without telling the SMTP server software used to send email.
I tried to set a header check to
REPLACE this but it doesn't seem to work, maybe I'm missing something. My
Then I've change my
main.cf to include:
header_checks = regexp:/etc/postfix/header_checks mime_header_checks = regexp:/etc/postfix/header_checks
Then I made a
db file with:
postmap /etc/postfix/header_checks and restarted postfix
systemctl restart postfix.
I also tested my header checks using:
# postmap -q "by suppaserver.example.dev (Postfix) with ESMTPSA id BFA7C2406FF" regexp:/etc/postfix/header_checks REPLACE
Since it outputted
REPLACE I guess the replace / regex rule is working fine. So why doesn't it work? Is this header included by my own server or somehow by Gmail or the receiving server?
Note: I'm using mail submission, and following some information on the web, I also tried to add this checks the
submission inet n - - - - smtpd -o cleanup_service_name=subcleanup cleanup unix n - - - 0 cleanup subcleanup unix n - - - 0 cleanup -o header_checks=regexp:/etc/postfix/header_checks
However still no luck.