This commit is contained in:
Alexey Berezhok
2024-03-19 22:05:27 +03:00
commit 346a50856b
1572 changed files with 182163 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
36c36
122c122,123
< drop message = Helo name contains an IP address (HELO was $sender_helo_name) and not is valid
---
> drop !authenticated = *
> message = Helo name contains an IP address (HELO was $sender_helo_name) and not is valid
127c128,129
< drop condition = ${if isip{$sender_helo_name}}
---
> drop !authenticated = *
> condition = ${if isip{$sender_helo_name}}
130c132,133
< drop condition = ${if eq{[$interface_address]}{$sender_helo_name}}
---
> drop !authenticated = *
> condition = ${if eq{[$interface_address]}{$sender_helo_name}}
>
>

View File

@@ -0,0 +1,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}}
>