I have a dedicated cPanel server and would like to setup an external e-mail disclaimer transport rule or filter that will add a line of text in the body of every incoming email messages that is not originating from the local server. Has anyone had the opportunity to setup something like this? If so can you provide a link where I can find more information on this topic. I have tried searching for this topic and found ways to get it done on other mail servers but not with Exim.
I found this bit of information below but it seems to be for outgoing messages rather than incoming. Any information would be greatly appreciated.
Thanks
I found this bit of information below but it seems to be for outgoing messages rather than incoming. Any information would be greatly appreciated.
Thanks
Code:
remote_smtp_filter:
driver = smtp
transport_filter = /your/filter/command
dnslookup:
driver = dnslookup
domains = ! +local_domains
transport = ${if eq {$sender_address_domain}{your.domain}\
{remote_smtp_filter}{remote_smtp}}
ignore_target_hosts = 127.0.0.0/8
no_more