ATTENTION: If you have a disclaimer on your PMG added in the footer, your disclaimer will be added in the header if you follow this guide
In this article, I am going to describe how to add external warning in the body of the email. This warning usually appears on the first line before the actual content.
– Go to PMG Dashboard -> Mail Filter -> Action Objects
– Click Add and select Disclaimer
– Add information to the Name and Comment
– Fill in the Disclaimer column with the following lines
– Go to PMG Dashboard -> Mail Filter – Click Add Rules
– Add information to the Name
– Fill 99 in the Priority
– Select in on Direction section
– Tick on the Active section
– Select Action Objects that has been created from Available Objects -> Action
Backup Disclaimer.pm file
cd /usr/share/perl5/PMG/RuleDB
cp Disclaimer.pm Disclaimer.pm-ori
Download new Disclaimer.pm file.
curl -k https://raw.githubusercontent.com/imanudin11/script/master/Disclaimer.pm > /usr/share/perl5/PMG/RuleDB/Disclaimer.pm
Restart pmg-smtp-filter
systemctl restart pmg-smtp-filter
Now, you can see the warning in the email body when receiving emails from the internet.
Source html email template: https://github.com/leemunroe/responsive-html-email-template