Hi. When relaying to an external service, I set a specific token in the mail header to pass authentication. I am able to send mails by adding the smtp_header_checks option to smtp in the master.cf file. However, it appears in /var/log/maillog. Is there any way to avoid this?
[root@xxx-mail01 ~]# grep X-TEST-Token /var/log/maillog | more Dec 15 03:08:16 xxx-mail01 postfix/smtp[4717]: D7B83C0646: prepend: header From: =?ISO-2022-JP?B?GyRCJSglIiVIJWobKEI=?= <reservation@ai: X-TEST-Token: YWlydHJpcCB0ZXN0IHRva2Vu Dec 15 03:08:17 xxx-mail01 postfix/smtp[4719]: DF72FC093E: prepend: header From: =?ISO-2022-JP?B?GyRCJSglIiVIJWobKEI=?= <reservation@ai: X-TEST-Token: YWlydHJpcCB0ZXN0IHRva2Vu [root@xxx-mail01 ~]# grep "^relayhost" /etc/postfix/main.cf relayhost=relay.xxxx.com [root@xxx-mail01 ~]# grep -B 1 smtp_header_checks /etc/postfix/master.cf smtp unix - - n - - smtp -o smtp_header_checks=regexp:/etc/postfix/smx_header_add [root@xxx-mail01 ~]# cat /etc/postfix/smx_header_add /^From:/i PREPEND X-TEST-Token: YWlydHJpcCB0ZXN0IHRva2Vu
_______________________________________________ Postfix-users mailing list -- postfix-users@postfix.org To unsubscribe send an email to postfix-users-le...@postfix.org