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