[exim] Add disclaimer message to all incoming emails

Page principale
Supprimer ce message
Répondre à ce message
Auteur: George
Date:  
À: exim-users
Sujet: [exim] Add disclaimer message to all incoming emails
Hi,

I have cPanel with Exim 4.93-5 on CentOS 7

I want to implement a solution where all incoming emails from remote
domains will have a disclaimer message appended to the body of the email.

I was able to find a solution for outgoing emails to have this but not the
other way around. Below is the solution for outgoing emails:
ROUTERS CONFIGURATIO
disclaimer:
driver = dnslookup
domains = ! +local_domains
transport = disclaimer_smtp

TRANSPORTS CONFIGURATION
disclaimer_smtp:
driver = smtp
transport_filter = /usr/local/bin/altermime --input=-
--disclaimer=/usr/local/etc/exim/textdisclaimer
--disclaimer-html=/usr/local/etc/exim/htmldisclaimer
size_addition = 1

Can anyone suggest a solution where the disclaimer message is added to the
incoming emails instead?

Please help.
Thanks in advance