[Exim] rewrite dest. addr. based on sender ip

Página Principal
Apagar esta mensagem
Responder a esta mensagem
Autor: Adam J. Henry
Data:  
Para: exim-users
Assunto: [Exim] rewrite dest. addr. based on sender ip
Hello,

Despite having thousands of Unrouteable errors in my mail logs from the same net-24,
certain providers only respond if I provide them actual spam. I want
to deliver messages from certain IP to another local address, which I
can then forward as needed as evidence.

I can't find any way to 'rewrite' the destination address using ACL,
so I am looking at routers. What I have come up with is the
following:

# carbon_copy:
#       driver = redirect
#       data = carbon@???
#
#        condition = "${if and {                                        \
#               {eq {${lookup {$host_address} iplsearch                 \
#                       {ETC_PATH/host/carbon_copy}{1}{0}}}{1}          \
#               }                                                       \
#       } {1}{0} }"


With 'host/carbon_copy' containing "1.2.3.0/24'. However this doesn't
seem to work. Any suggestions to improve this process?

Using Exim-4.33, but not sure if iplsearch will work in the condition context.

I may be chasing my own tail by doing this, but it's sickening to see
these Teergrubes in my logs. By complaining in an aggregated formal
way, I hope to also help the others this person or persons is sending
spam to.

ftc@??? appears to only want actual forwards of spam. Does anyone
have any experience with sending mail server logs to this address?

thanks,
hank