Final tidyout of EXPERIMENTAL_PRDR
[exim.git] / src / src / transports / smtp.h
CommitLineData
0756eb3c
PH
1/*************************************************
2* Exim - an Internet mail transport agent *
3*************************************************/
4
5a66c31b 5/* Copyright (c) University of Cambridge 1995 - 2014 */
0756eb3c
PH
6/* See the file NOTICE for conditions of use and distribution. */
7
8/* Private structure for the private options and other private data. */
9
10typedef struct {
11 uschar *hosts;
12 uschar *fallback_hosts;
13 host_item *hostlist;
14 host_item *fallback_hostlist;
15 uschar *authenticated_sender;
16 uschar *helo_data;
17 uschar *interface;
18 uschar *port;
19 uschar *protocol;
9e4f5962 20 uschar *dscp;
0756eb3c
PH
21 uschar *serialize_hosts;
22 uschar *hosts_try_auth;
23 uschar *hosts_require_auth;
8ccd00b1 24#ifndef DISABLE_PRDR
fd98a5c6
JH
25 uschar *hosts_try_prdr;
26#endif
f5d78688 27#ifdef EXPERIMENTAL_OCSP
44662487 28 uschar *hosts_request_ocsp;
f5d78688
JH
29 uschar *hosts_require_ocsp;
30#endif
0756eb3c
PH
31 uschar *hosts_require_tls;
32 uschar *hosts_avoid_tls;
99400968 33 uschar *hosts_verify_avoid_tls;
c51b8e75 34 uschar *hosts_avoid_pipelining;
0756eb3c
PH
35 uschar *hosts_avoid_esmtp;
36 uschar *hosts_nopass_tls;
37 int command_timeout;
38 int connect_timeout;
39 int data_timeout;
40 int final_timeout;
41 int size_addition;
42 int hosts_max_try;
8e669ac1 43 int hosts_max_try_hardlimit;
48c7f9e2 44 BOOL address_retry_include_sender;
0756eb3c 45 BOOL allow_localhost;
382afc6b 46 BOOL authenticated_sender_force;
0756eb3c
PH
47 BOOL gethostbyname;
48 BOOL dns_qualify_single;
49 BOOL dns_search_parents;
578897ea
JH
50 uschar *dnssec_request_domains;
51 uschar *dnssec_require_domains;
0756eb3c
PH
52 BOOL delay_after_cutoff;
53 BOOL hosts_override;
54 BOOL hosts_randomize;
55 BOOL keepalive;
f1513293 56 BOOL lmtp_ignore_quota;
0756eb3c
PH
57 BOOL retry_include_ip_address;
58 #ifdef SUPPORT_TLS
59 uschar *tls_certificate;
60 uschar *tls_crl;
61 uschar *tls_privatekey;
62 uschar *tls_require_ciphers;
83da1223
PH
63 uschar *gnutls_require_kx;
64 uschar *gnutls_require_mac;
65 uschar *gnutls_require_proto;
54c90be1 66 uschar *tls_sni;
0756eb3c 67 uschar *tls_verify_certificates;
54c90be1 68 int tls_dh_min_bits;
0756eb3c 69 BOOL tls_tempfail_tryclear;
a63be306
WB
70 uschar *tls_verify_hosts;
71 uschar *tls_try_verify_hosts;
0756eb3c 72 #endif
80a47a2c 73 #ifndef DISABLE_DKIM
f7572e5a
TK
74 uschar *dkim_domain;
75 uschar *dkim_private_key;
76 uschar *dkim_selector;
77 uschar *dkim_canon;
78 uschar *dkim_sign_headers;
79 uschar *dkim_strict;
80 #endif
d68218c7
JH
81 #ifdef EXPERIMENTAL_TPDA
82 uschar *tpda_host_defer_action;
83 #endif
0756eb3c
PH
84} smtp_transport_options_block;
85
86/* Data for reading the private options. */
87
88extern optionlist smtp_transport_options[];
89extern int smtp_transport_options_count;
90
91/* Block containing default values. */
92
93extern smtp_transport_options_block smtp_transport_option_defaults;
94
95/* The main, init, and closedown entry points for the transport */
96
97extern BOOL smtp_transport_entry(transport_instance *, address_item *);
98extern void smtp_transport_init(transport_instance *);
99extern void smtp_transport_closedown(transport_instance *);
100
b4a2b536
JH
101
102
103extern int smtp_auth(uschar *, unsigned, address_item *, host_item *,
104 smtp_transport_options_block *, BOOL,
105 smtp_inblock *, smtp_outblock *);
106extern BOOL smtp_mail_auth_str(uschar *, unsigned,
107 address_item *, smtp_transport_options_block *);
108
0756eb3c 109/* End of transports/smtp.h */