How to add X-AntiAbuse header?

XPerties

Well-Known Member
Apr 10, 2003
401
0
166
New Jersey, USA
Return-path: <[email protected]>
Envelope-to: [email protected]
Delivery-date: Fri, 20 Jun 2003 08:45:43 -0400
Received: from nobody by server.domain.com with local (Exim 3.36 #1)
id 19TLGx-0001wG-00
for [email protected]; Fri, 20 Jun 2003 08:45:43 -0400
To: [email protected]
Subject: 500953
From: [email protected]
Message-Id: <[email protected]>
Date: Fri, 20 Jun 2003 08:45:43 -0400
As you can see in testing a php script that a spammer used on my server there are no X-AntiAbuse headers. I thought they were suppose to be on there.

Could someone tell me how to add them or what to edit. A newbie walk through would be great.

Thanks

cPanel.net Support Ticket Number:
 

mainarea

Active Member
Nov 18, 2002
41
0
156
It's in /etc/exim.conf (this is for exim 3, cpanel 6):

It's under the following section:
######################################################################
# ROUTERS CONFIGURATION #
# Specifies how remote addresses are handled #
######################################################################
# ORDER DOES MATTER #
# A remote address is passed to each in turn until it is accepted. #
######################################################################



Code:
lookuphost:
  driver = lookuphost
  transport = remote_smtp
headers_add = "X-AntiAbuse: This header was added to track abuse, please include it with any abuse report\n\
               X-AntiAbuse: Primary Hostname - $primary_hostname\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"
        condition = "${perl{checkspam}}"

# This router routes to remote hosts over SMTP by explicit IP address,
# given as a "domain literal" in the form [nnn.nnn.nnn.nnn]. The RFCs
# require this facility, which is why it is enabled by default in Exim.
# If you want to lock it out, set forbid_domain_literals in the main
# configuration section above.

literal:
  driver = ipliteral
  transport = remote_smtp
headers_add = "X-AntiAbuse: This header was added to track abuse, please include it with any abuse report\n\
               X-AntiAbuse: Primary Hostname - $primary_hostname\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"
        condition = "${perl{checkspam}}"

end
cPanel.net Support Ticket Number:
 

Drake

Well-Known Member
Nov 9, 2001
83
0
306
New Jersey
cPanel Access Level
DataCenter Provider
I agree. But make a spare copy of exim.conf and call it something else (exim.conf.spare) (cp -a exim.conf exim.conf.spare) in case you wreck the original conf file you can put it back.

~Drake P.

www.DuraServer.net
Web Hosting ~
Shared & Dedicated Servers ~
Networking ~ Linux
 
Last edited:

XPerties

Well-Known Member
Apr 10, 2003
401
0
166
New Jersey, USA
This is what is inside my file, but why is it not adding the X-AntiAbuse header?


PHP:
######################################################################
#                      ROUTERS CONFIGURATION                         #
#            Specifies how remote addresses are handled              #
######################################################################
#                          ORDER DOES MATTER                         #
#  A remote address is passed to each in turn until it is accepted.  #
######################################################################

# Remote addresses are those with a domain that does not match any item
# in the "local_domains" setting above.


# This router routes to remote hosts over SMTP using a DNS lookup with
# default options.

lookuphost:
  driver = lookuphost
  transport = remote_smtp
headers_add = "X-AntiAbuse: This header was added to track abuse, please include it with any abuse report\n\
               X-AntiAbuse: Primary Hostname - $primary_hostname\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"
	condition = "${perl{checkspam}}"

# This router routes to remote hosts over SMTP by explicit IP address,
# given as a "domain literal" in the form [nnn.nnn.nnn.nnn]. The RFCs
# require this facility, which is why it is enabled by default in Exim.
# If you want to lock it out, set forbid_domain_literals in the main
# configuration section above.

literal:
  driver = ipliteral
  transport = remote_smtp
headers_add = "X-AntiAbuse: This header was added to track abuse, please include it with any abuse report\n\
               X-AntiAbuse: Primary Hostname - $primary_hostname\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"
	condition = "${perl{checkspam}}"
cPanel.net Support Ticket Number:
 

mss6

Member
Jun 19, 2003
19
0
151
The same here! X-AntiAbuse header is not added although I have the header in Router section. Any help please!

cPanel.net Support Ticket Number:
 

cass

Well-Known Member
Jul 17, 2002
349
0
166
Argentina/USA/Mexico
I tried this but works okey ...

note: It does not add the headers to local mails, so, if you have domain-a.com & domain-b.com in your server, the mails between this domains will not have spam headers.

if you havent do it ... send to OTHER account outside your server, X-headers should be there :D

cPanel.net Support Ticket Number: