On 9 Sep 2018, at 20:38 (-0400), Wietse Venema wrote:
Durga Prasad Malyala:
Hello Friends,
I would like to make postfix add a warning message for all external
incoming emails - Something like this at the top of each mail.
WARNING: This email originated outside of our organization. Do not
click any links or open any attachments unless you recognize the
sender and know the content is safe
How is this possible in postfix?
Yes.
http://www.postfix.org/postconf.5.html#smtpd_client_restrictions
http://www.postfix.org/access.5.html
smtpd_client_restrictions =
check_client_access cidr:/etc/postfix/client_access.cidr
/etc/postfix/client_access.cidr
# An "internal" source.
127.0.0.0/8 dunno
192.168.0.0/16 dunno
# Everyone else.
0.0.0.0/0 prepend WARNING: This email originated outside of our
organization. Do not click any links or open any attachments
unless you recognize the sender and know the content is safe.
I suppose lawyers love this. Otherwise I think it is useless.
Won't that just add a "WARNING:" RFC822 header to the message?
That would be more useless than the average boilerplate addition to
email, since very few users see arbitrary headers.
--
Bill Cole
b...@scconsult.com or billc...@apache.org
(AKA @grumpybozo and many *@billmail.scconsult.com addresses)
Currently Seeking Steadier Work: https://linkedin.com/in/billcole