c5d0df23bc8d131ccf8550f9a90f10a673b17ee8
[hcoop/config/exim.git] / conf.d / transport / 30_exim4-config_remote_smtp_smarthost
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 # Refuse to send any messsage with over-long lines, which could have
9 # been received other than via SMTP. The use of message_size_limit to
10 # enforce this is a red herring.
11
12 remote_smtp_smarthost:
13 debug_print = "T: remote_smtp_smarthost for $local_part@$domain"
14 driver = smtp
15
16 .ifndef IGNORE_SMTP_LINE_LENGTH_LIMIT
17 message_size_limit = ${if > {$max_received_linelength}{998} {1}{0}}
18 .endif
19
20 hosts_try_auth = <; ${if exists{CONFDIR/passwd.client} \
21 {\
22 ${lookup{$host}nwildlsearch{CONFDIR/passwd.client}{$host_address}}\
23 }\
24 {} \
25 }
26 .ifdef REMOTE_SMTP_SMARTHOST_HOSTS_AVOID_TLS
27 hosts_avoid_tls = REMOTE_SMTP_SMARTHOST_HOSTS_AVOID_TLS
28 .endif
29 .ifdef REMOTE_SMTP_SMARTHOST_HOSTS_REQUIRE_TLS
30 hosts_require_tls = REMOTE_SMTP_SMARTHOST_HOSTS_REQUIRE_TLS
31 .endif
32 .ifdef REMOTE_SMTP_HEADERS_REWRITE
33 headers_rewrite = REMOTE_SMTP_HEADERS_REWRITE
34 .endif
35 .ifdef REMOTE_SMTP_RETURN_PATH
36 return_path = REMOTE_SMTP_RETURN_PATH
37 .endif
38 .ifdef REMOTE_SMTP_HELO_DATA
39 helo_data=REMOTE_SMTP_HELO_DATA
40 .endif
41 .ifdef TLS_DH_MIN_BITS
42 tls_dh_min_bits = TLS_DH_MIN_BITS
43 .endif
44 .ifdef REMOTE_SMTP_SMARTHOST_TLS_CERTIFICATE
45 tls_certificate = REMOTE_SMTP_SMARTHOST_TLS_CERTIFICATE
46 .endif
47 .ifdef REMOTE_SMTP_SMARTHOST_PRIVATEKEY
48 tls_privatekey = REMOTE_SMTP_SMARTHOST_PRIVATEKEY
49 .endif