x headers and Received from

Operating System & Version
CENTOS 7.9
cPanel & WHM Version
v98.0.8

z3d3m0n

Well-Known Member
Feb 8, 2016
55
3
58
Prague
cPanel Access Level
Root Administrator
Hello Community,

i have a x-headers and question
i am hosting mostly users with a dedicated IP's. they are complaining about the x headers and "Received from".

currenlty i have in my exim setting.
Send mail from the account’s IP address "On"
Use the reverse DNS entry for the mail HELO/EHLO if available "On"

what i want is to show the customer domain or rDNS e.g. domaincrm.com and not the hostname cpp.domain.cloud in X-Headders and "Received from"
change the $primary_hostname to $sender_address_domain ?
what should i change to complete the task?



Code:
Received: from [::1] (port=59696 helo=cpp.domain.cloud) by cpp.domain.cloud with esmtpa (Exim 4.94.2) (envelope-from <[email protected]>) id 1mXjRw-0005fs-TF for [email protected]; Tue, 05 Oct 2021 12:21:36 +0000
MIME-Version: 1.0
Date: Tue, 05 Oct 2021 12:21:36 +0000
From: [email protected]
To: [email protected]
Subject: sdfsdf
User-Agent: Roundcube Webmail/1.4.11
Message-ID: <[email protected]>
X-Sender: [email protected]
Content-Type: text/plain; charset=US-ASCII; format=flowed
Content-Transfer-Encoding: 7bit
X-AntiAbuse: This header was added to track abuse, please include it with any abuse report
X-AntiAbuse: Primary Hostname - cpp.domain.cloud
X-AntiAbuse: Original Domain - gmail.com
X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse: Sender Address Domain - domaincrm.com
X-Get-Message-Sender-Via: cpp.domain.cloud: authenticated_id: [email protected]
X-Authenticated-Sender: cpp.domain.cloud: [email protected]
thx in advance
 

z3d3m0n

Well-Known Member
Feb 8, 2016
55
3
58
Prague
cPanel Access Level
Root Administrator
@cPRex ,

thanks for reaching out.
i will check from time to time

meanwhile
i have managed to fix the x headers by modifying the /etc/exim.pl.local



Code:
 "X-AntiAbuse: This header was added to track abuse, please include it with any abuse report\n"
      . "X-AntiAbuse: Primary Hostname - $sender_address_domain\n"
      . "X-AntiAbuse: Original Domain - $original_domain\n"
      . "X-AntiAbuse: Originator/Caller UID/GID - [$originator_uid $originator_gid] / [$caller_uid $caller_gid]\n"
      . "X-AntiAbuse: Sender Address Domain - $sender_address_domain\n"
      . check_mail_permissions_headers() . "\n";
but i can't locate the "received_header_text" in the exim.conf or the Advanced section , do you know where to look?
 

z3d3m0n

Well-Known Member
Feb 8, 2016
55
3
58
Prague
cPanel Access Level
Root Administrator
its' quite hidden) i have managed to locate and change it when you click on the blue "Advanced button" in Exim configuration manager a drop-down will pop up "received_header_text" than you just need to change a variable to an appropriate one, and done...
 

z3d3m0n

Well-Known Member
Feb 8, 2016
55
3
58
Prague
cPanel Access Level
Root Administrator
The only thing I have not solved yet is how to save the /etc/exim.pl.local permanently, it's getting rewritten every time I change the Exim configuration via WHM
 

z3d3m0n

Well-Known Member
Feb 8, 2016
55
3
58
Prague
cPanel Access Level
Root Administrator
after i have run


Code:
/scripts/buildeximconf
/scripts/restartsrv_exim --restart
it simply overrode my /etc/exim.pl.local , any other ideas?
thx