500_exim4-config_hubuser 879 B

12345678910111213141516171819202122232425262728293031
  1. ### router/500_exim4-config_hubuser
  2. #################################
  3. .ifdef DCconfig_satellite
  4. # This router is only used for configtype=satellite.
  5. # It takes care to route all mail targetted to <somelocaluser@this.machine>
  6. # to the host where we read our mail
  7. #
  8. hub_user:
  9. debug_print = "R: hub_user for $local_part@$domain"
  10. driver = redirect
  11. domains = +local_domains
  12. data = ${local_part}@DCreadhost
  13. check_local_user
  14. # Grab the redirected mail and deliver it.
  15. # This is a duplicate of the smarthost router, needed because
  16. # DCreadhost might end up as part of +local_domains
  17. hub_user_smarthost:
  18. debug_print = "R: hub_user_smarthost for $local_part@$domain"
  19. driver = manualroute
  20. domains = DCreadhost
  21. transport = remote_smtp_smarthost
  22. route_list = * DCsmarthost byname
  23. host_find_failed = ignore
  24. same_domain_copy_routing = yes
  25. check_local_user
  26. .endif