| 1 |
|
| 2 |
### transport/30_exim4-config_remote_smtp_smarthost |
| 3 |
################################# |
| 4 |
|
| 5 |
# This transport is used for delivering messages over SMTP connections |
| 6 |
# to a smarthost. The local host tries to authenticate. |
| 7 |
# This transport is used for smarthost and satellite configurations. |
| 8 |
|
| 9 |
remote_smtp_smarthost: |
| 10 |
debug_print = "T: remote_smtp_smarthost for $local_part@$domain" |
| 11 |
driver = smtp |
| 12 |
multi_domain |
| 13 |
hosts_try_auth = <; ${if exists{CONFDIR/passwd.client} \ |
| 14 |
{\ |
| 15 |
${lookup{$host}nwildlsearch{CONFDIR/passwd.client}{$host_address}}\ |
| 16 |
}\ |
| 17 |
{} \ |
| 18 |
} |
| 19 |
.ifdef REMOTE_SMTP_SMARTHOST_HOSTS_AVOID_TLS |
| 20 |
hosts_avoid_tls = REMOTE_SMTP_SMARTHOST_HOSTS_AVOID_TLS |
| 21 |
.endif |
| 22 |
.ifdef REMOTE_SMTP_SMARTHOST_HOSTS_REQUIRE_TLS |
| 23 |
hosts_require_tls = REMOTE_SMTP_SMARTHOST_HOSTS_REQUIRE_TLS |
| 24 |
.endif |
| 25 |
.ifdef REMOTE_SMTP_SMARTHOST_TLS_VERIFY_CERTIFICATES |
| 26 |
tls_verify_certificates = REMOTE_SMTP_SMARTHOST_TLS_VERIFY_CERTIFICATES |
| 27 |
.endif |
| 28 |
.ifdef REMOTE_SMTP_SMARTHOST_TLS_VERIFY_HOSTS |
| 29 |
tls_verify_hosts = REMOTE_SMTP_SMARTHOST_TLS_VERIFY_HOSTS |
| 30 |
.endif |
| 31 |
.ifdef REMOTE_SMTP_HEADERS_REWRITE |
| 32 |
headers_rewrite = REMOTE_SMTP_HEADERS_REWRITE |
| 33 |
.endif |
| 34 |
.ifdef REMOTE_SMTP_RETURN_PATH |
| 35 |
return_path = REMOTE_SMTP_RETURN_PATH |
| 36 |
.endif |
| 37 |
.ifdef REMOTE_SMTP_HELO_DATA |
| 38 |
helo_data=REMOTE_SMTP_HELO_DATA |
| 39 |
.endif |
| 40 |
.ifdef TLS_DH_MIN_BITS |
| 41 |
tls_dh_min_bits = TLS_DH_MIN_BITS |
| 42 |
.endif |
| 43 |
.ifdef REMOTE_SMTP_SMARTHOST_TLS_CERTIFICATE |
| 44 |
tls_certificate = REMOTE_SMTP_SMARTHOST_TLS_CERTIFICATE |
| 45 |
.endif |
| 46 |
.ifdef REMOTE_SMTP_SMARTHOST_PRIVATEKEY |
| 47 |
tls_privatekey = REMOTE_SMTP_SMARTHOST_PRIVATEKEY |
| 48 |
.endif |
| 49 |
.ifdef REMOTE_SMTP_TRANSPORTS_HEADERS_REMOVE |
| 50 |
headers_remove = REMOTE_SMTP_TRANSPORTS_HEADERS_REMOVE |
| 51 |
.endif |
| 52 |
.ifdef IGNORE_SMTP_LINE_LENGTH_LIMIT |
| 53 |
# If overlong mails are accepted on incoming mail send them out, too. |
| 54 |
message_linelength_limit = 1G |
| 55 |
.endif |
| 56 |
.ifdef REMOTE_SMTP_SMARTHOST_PROTOCOL |
| 57 |
protocol = REMOTE_SMTP_SMARTHOST_PROTOCOL |
| 58 |
.endif |