3661-exim-srs-support.patch 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. 17a18,19
  2. > SRS_SECRET = ${readfile{/etc/exim4/srs.conf}}
  3. >
  4. 326a332,348
  5. > inbound_srs:
  6. > driver = redirect
  7. > senders = :
  8. > domains = +local_domains
  9. > # detect inbound bounces which are SRS'd, and decode them
  10. > condition = ${if inbound_srs {$local_part} {SRS_SECRET}}
  11. > data = $srs_recipient
  12. >
  13. > inbound_srs_failure:
  14. > driver = redirect
  15. > senders = :
  16. > domains = +local_domains
  17. > # detect inbound bounces which look SRS'd but are invalid
  18. > condition = ${if inbound_srs {$local_part} {}}
  19. > allow_fail
  20. > data = :fail: Invalid SRS recipient address
  21. >
  22. 358d379
  23. < condition = ${lookup{$local_part@$domain}lsearch{/etc/exim4/domains/${lookup{$domain}dsearch{/etc/exim4/domains/}}/aliases}{false}{true}}
  24. 387a409,422
  25. > remote_forwarded_smtp:
  26. > driver = smtp
  27. > helo_data = ${lookup dnsdb{>: defer_never,ptr=$sending_ip_address}{${listextract{1}{$value}}}{$primary_hostname}}
  28. > dkim_domain = DKIM_DOMAIN
  29. > dkim_selector = mail
  30. > dkim_private_key = DKIM_PRIVATE_KEY
  31. > dkim_canon = relaxed
  32. > dkim_strict = 0
  33. > hosts_try_fastopen = !*.l.google.com
  34. > interface = ${if exists{OUTGOING_IP}{${readfile{OUTGOING_IP}}}}
  35. > # modify the envelope from, for mails that we forward
  36. > max_rcpt = 1
  37. > return_path = ${srs_encode {SRS_SECRET} {$return_path} {$original_domain}}
  38. >