If you do not want to receive "gmail confidential emails" (eg emails that replace the email content with a limited time url to read the content on a gmail hosted website), add the following line to /etc/postfix/header_checks:
/^X-Gm-Locker: .*/ REJECT Message rejected: gmail confidential emails not accepted here
and ensure you have in main.cf:
header_checks = regexp:/etc/postfix/header_checks
@letoams
The Exim version of that is:
- Make sure you have an ACL configured for acl_smtp_data
- In that ACL, add the following:
require message = Gmail confidential emails not accepted here
condition = ${if def:header_x-gm-locker:{no}{yes}}
The Exim version of that is:
- Make sure you have an ACL configured for acl_smtp_data
- In that ACL, add the following:
require message = Gmail confidential emails not accepted here
condition = ${if def:header_x-gm-locker:{no}{yes}}
- replies
- 0
- announces
- 0
- likes
- 1