Welcome Guest. Please Login or Register  


You are here: Index > Webuzo > General Support > Topic : How can I add X-AntiAbuse email headers?



Threaded Mode | Print  

 How can I add X-AntiAbuse email headers? (2 Replies, Read 34644 times)
peopleinside
Group: Member
Post Group: Super Member
Posts: 1394
Status:

Open source, web and security passionate
Hi,
can I configure Exim for add X-Antiabuse Header?

PHP Code

 lookuphost:
  
driver lookuphost
  transport 
remote_smtp
headers_add 
"X-AntiAbuse: This header was added to track abuse, please include it with any abuse reportn
               X-AntiAbuse: Primary Hostname - 
$primary_hostnamen
               X-AntiAbuse: Original Domain - 
$original_domainn
               X-AntiAbuse: Originator/Caller UID/GID - [
$originator_uid $originator_gid] / [$caller_uid $caller_gid]n
               X-AntiAbuse: Sender Address Domain - 
$sender_address_domainn"
        
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 reportn
               X-AntiAbuse: Primary Hostname - 
$primary_hostnamen
               X-AntiAbuse: Original Domain - 
$original_domainn
               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 



How can I add X-Antiabuse in the email header?


-----------------------
PeopleInside  :angel:

Web, security, open source passionate.
IP: --   

How can I add X-AntiAbuse email headers?
peopleinside
Group: Member
Post Group: Super Member
Posts: 1394
Status:

Open source, web and security passionate
After some years, thanks to the help of Internet, I found the solution:

https://stackoverflow.com/questions/49541032/exim-add-x-report-abuse-text-to-report-abuse-headers

this line:
Code
headers_add = X-Report-Abuse: TEXT to report abuse


should be added on exim.conf after router(s) configuration.

For example

begin routers

...

send_to_gateway:
  driver = manualroute
  domains = !+local_domains
  transport = remote_smtp
  route_list = * smtp.myisp.net
  headers_add = X-Report-Abuse: TEXT to report abuse

dnslookup:
  driver = dnslookup
  domains = ! +local_domains
  transport = remote_smtp
  ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8
  headers_add = X-Report-Abuse: TEXT to report abuse
  no_more


-----------------------
PeopleInside  :angel:

Web, security, open source passionate.
IP: --   

How can I add X-AntiAbuse email headers?
peopleinside
Group: Member
Post Group: Super Member
Posts: 1394
Status:

Open source, web and security passionate
I am still work on this because the solution above add the header also to external coming email and this is not good.

I will continue to investigate.


-----------------------
PeopleInside  :angel:

Web, security, open source passionate.
IP: --   

« Previous    Next »

Threaded Mode | Print  



Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is April 18, 2024, 7:39 am.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 11  |  Page Created In:0.034