Disclaimer for every outgoing emails

halmatayub95

Registered
Jun 21, 2022
2
0
1
Iraq
cPanel Access Level
Reseller Owner
Hello,
I created disclaimer on whm exim server when i sent email to other domains it is working but when i send emails to the same domain that i created disclaimer for it it is not working
how can i fix it please
thank you
 
Last edited by a moderator:

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
11,731
1,864
363
cPanel Access Level
Root Administrator
Hey there! Can you let me know how you created the disclaimer? Messages sent to a domain on the same server may not be handled the same as messages sent to a remote address, as this saves resources on the server, so knowing exactly how you created the initial disclaimer would likely be the key to solving this issue.
 

halmatayub95

Registered
Jun 21, 2022
2
0
1
Iraq
cPanel Access Level
Reseller Owner
I created like that
when i send email to other domains not exist in my server is working normally but when i send email to one of my domains assigned in my server it is not working
and html also not working

Section: PREROUTERS

disclaimer:
driver = dnslookup
domains = ! +local_domains
transport = ${if eq {$sender_address_domain}{jibal-it.net}{disclaimer_smtp}{remote_smtp}}
no_more

---------------------------
Section: TRANSPORTSTART

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