2023-05-31 15:20:12 +01:00
|
|
|
.ifdef SRS_SECRET
|
2023-05-22 17:04:54 +01:00
|
|
|
|
|
|
|
.ifdef DCconfig_internet
|
|
|
|
|
|
|
|
outbound_srs:
|
|
|
|
debug_print = "R: SRS outbound for $local_part@$domain original $original_local_part@$original_domain"
|
2023-05-17 16:39:57 +01:00
|
|
|
driver = dnslookup
|
|
|
|
# if outbound, and forwarding has been done, use an alternate transport
|
|
|
|
domains = ! +local_domains
|
2023-05-22 17:04:54 +01:00
|
|
|
condition = ${if !eq {$local_part@$domain} \
|
|
|
|
{$original_local_part@$original_domain}}
|
2023-05-31 15:20:12 +01:00
|
|
|
transport = remote_forwarded_smtp
|
2023-05-22 17:04:54 +01:00
|
|
|
|
|
|
|
.elifdef DCconfig_smarthost DCconfig_satellite
|
2023-05-17 16:39:57 +01:00
|
|
|
|
2023-05-22 17:04:54 +01:00
|
|
|
outbound_srs_smarthost:
|
|
|
|
debug_print = "R: SRS outbound smarthost for $local_part@$domain original $original_local_part@$original_domain"
|
|
|
|
driver = dnslookup
|
|
|
|
# if outbound, and forwarding has been done, use an alternate transport
|
|
|
|
domains = ! +local_domains
|
|
|
|
condition = ${if !eq {$local_part@$domain} \
|
|
|
|
{$original_local_part@$original_domain}}
|
2023-05-31 15:20:12 +01:00
|
|
|
transport = remote_forwarded_smtp_smarthost
|
2023-05-22 17:04:54 +01:00
|
|
|
|
|
|
|
.endif
|
|
|
|
|
2023-05-17 16:39:57 +01:00
|
|
|
inbound_srs:
|
2023-05-22 17:04:54 +01:00
|
|
|
debug_print = "R: inbound_srs for $local_part@$domain"
|
2023-05-17 16:39:57 +01:00
|
|
|
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
|
2023-05-22 17:04:54 +01:00
|
|
|
|
2023-05-17 16:39:57 +01:00
|
|
|
inbound_srs_failure:
|
2023-05-22 17:04:54 +01:00
|
|
|
debug_print = "R: inbound_srs_failure for $local_part@$domain"
|
2023-05-17 16:39:57 +01:00
|
|
|
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
|
2023-05-22 17:04:54 +01:00
|
|
|
|
|
|
|
.endif
|