Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    Apr 2003
    Location
    New Jersey, USA
    Posts
    414

    Question How to add X-AntiAbuse header?

    Return-path: <nobody@server.domain.com>
    Envelope-to: admin@domain.com
    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 admin@domain.com; Fri, 20 Jun 2003 08:45:43 -0400
    To: admin@domain.com
    Subject: 500953
    From: 173670@microsoft.com
    Message-Id: <E19TLGx-0001wG-00@mich1.domain.com>
    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:

  2. #2
    Member
    Join Date
    Nov 2002
    Posts
    41

    Default

    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:

  3. #3
    Member
    Join Date
    Nov 2001
    Location
    New Jersey
    Posts
    80
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default

    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 by Drake; 06-25-2003 at 12:52 PM.

  4. #4
    Member
    Join Date
    Apr 2003
    Location
    New Jersey, USA
    Posts
    414

    Default

    This is what is inside my file, but why is it not adding the X-AntiAbuse header?


    PHP Code:
    ######################################################################
    #                      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:

  5. #5
    Member
    Join Date
    Jun 2003
    Posts
    19

    Default

    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:

  6. #6
    Member cass's Avatar
    Join Date
    Jul 2002
    Location
    Argentina/USA/Mexico
    Posts
    354

    Default

    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

    cPanel.net Support Ticket Number:
    Carlos Ariel Sepúlveda
    CAS company :: 1997-2011, 14 Years! :: Dedicated Attitude
    http://www.cascompany.com :: Providing CPANEL/WHM Servers since 2002 !

Similar Threads & Tags
Similar threads

  1. How to add X-AntiAbuse to headers
    By activa in forum E-mail Discussions
    Replies: 0
    Last Post: 08-27-2011, 01:58 AM
  2. Add header to web pages
    By d-lexy in forum New User Questions
    Replies: 1
    Last Post: 11-13-2005, 04:44 PM
  3. How to add filter to discard email that no Date: header ?
    By taotoon in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 08-03-2005, 10:09 PM
  4. X-AntiAbuse in mail header sent
    By jean louis in forum New User Questions
    Replies: 1
    Last Post: 09-18-2004, 10:00 AM
  5. x-AntiAbuse header in exim
    By jsteel in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 02-10-2003, 06:48 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube