If you want to add external warning on email subject, please read this one: Proxmox Mail Gateway : How to add “EXTERNAL” warning on email subject
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
[/code]
– 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
If you need PMG Support and Subscription, please feel free to contact my Company: https://www.excellent.co.id/kontak/
Good Luck 🙂
Excelente aporte!!!
Excellent, genius! Thank you
Hi. The disclaimer is at bottom of email? do you know how to put at top?
Hi Lucas,
If you follow this guide, the disclaimer will put at top
Thanks! I forgot to replace new disclamer. Now it works!
Hi Lucas,
Glad to hear that. Starting from PMG 8.1, it offers the option to place the disclaimer either at the start or at the bottom.