[Exim] specific router question

Góra strony
Delete this message
Reply to this message
Autor: vlad f kropachew
Data:  
Dla: exim-users
Temat: [Exim] specific router question
hello. i have the following situation. one of my smtp client sending
spam via my gateway (mx0.domain.com) and got lot of problem to other my clients. i cannot
prohibite his access (by any reason).
          so, i want to reroute all of them message (detected by ip address) to
'blackhole' mta (mx1.domain.com), that will send his message to destination. reason for
this - main mta do not send any spam nowhere and normal clients send
messages withut blocking.


is following configuration enough for this?

--------------------cut-----------------
hostlist bad_sender = x.x.x.x

....

#route section

send_to_gateway:
     driver = manualroute
     host = +bad_sender
     transport = remote_smtp
     route_list = * mx1.domain.com




dnslookup:
driver = dnslookup
domains = ! +local_domains
transport = remote_smtp
ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8
no_more


.....

-------cut-----

so, i define the bad host. first router - check for host and if hit,
delivery to mx1. if now - normal message processing. i'm right?


vlad.