1 /*************************************************
2 * Exim - an Internet mail transport agent *
3 *************************************************/
5 /* Copyright (c) University of Cambridge 1995 - 2015 */
6 /* See the file NOTICE for conditions of use and distribution. */
8 #define DELIVER_BUFFER_SIZE 4096
11 #define PENDING_DEFER (PENDING + DEFER)
12 #define PENDING_OK (PENDING + OK)
15 /* Private structure for the private options and other private data. */
19 uschar *fallback_hosts;
21 host_item *fallback_hostlist;
22 uschar *authenticated_sender;
28 uschar *serialize_hosts;
29 uschar *hosts_try_auth;
30 uschar *hosts_require_auth;
31 uschar *hosts_try_chunking;
32 #ifdef EXPERIMENTAL_DANE
33 uschar *hosts_try_dane;
34 uschar *hosts_require_dane;
36 uschar *hosts_try_fastopen;
38 uschar *hosts_try_prdr;
41 uschar *hosts_request_ocsp;
42 uschar *hosts_require_ocsp;
44 uschar *hosts_require_tls;
45 uschar *hosts_avoid_tls;
46 uschar *hosts_verify_avoid_tls;
47 uschar *hosts_avoid_pipelining;
48 uschar *hosts_avoid_esmtp;
49 uschar *hosts_nopass_tls;
56 int hosts_max_try_hardlimit;
57 BOOL address_retry_include_sender;
59 BOOL authenticated_sender_force;
61 BOOL dns_qualify_single;
62 BOOL dns_search_parents;
63 dnssec_domains dnssec;
64 BOOL delay_after_cutoff;
68 BOOL lmtp_ignore_quota;
69 uschar *expand_retry_include_ip_address;
70 BOOL retry_include_ip_address;
75 uschar *tls_certificate;
77 uschar *tls_privatekey;
78 uschar *tls_require_ciphers;
80 uschar *tls_verify_certificates;
82 BOOL tls_tempfail_tryclear;
83 uschar *tls_verify_hosts;
84 uschar *tls_try_verify_hosts;
85 uschar *tls_verify_cert_hostnames;
90 } smtp_transport_options_block;
92 /* smtp connect context */
94 address_item * addrlist;
115 BOOL dsn_all_lasthop:1;
116 #if defined(SUPPORT_TLS) && defined(EXPERIMENTAL_DANE)
118 BOOL dane_required:1;
126 #ifdef EXPERIMENTAL_DSN_INFO
127 uschar * smtp_greeting;
128 uschar * helo_response;
131 smtp_inblock inblock;
132 smtp_outblock outblock;
133 uschar buffer[DELIVER_BUFFER_SIZE];
134 uschar inbuffer[4096];
135 uschar outbuffer[4096];
137 transport_instance * tblock;
138 smtp_transport_options_block * ob;
141 extern int smtp_setup_conn(smtp_context *, BOOL, BOOL);
144 /* Data for reading the private options. */
146 extern optionlist smtp_transport_options[];
147 extern int smtp_transport_options_count;
149 /* Block containing default values. */
151 extern smtp_transport_options_block smtp_transport_option_defaults;
153 /* The main, init, and closedown entry points for the transport */
155 extern BOOL smtp_transport_entry(transport_instance *, address_item *);
156 extern void smtp_transport_init(transport_instance *);
157 extern void smtp_transport_closedown(transport_instance *);
161 extern int smtp_auth(uschar *, unsigned, address_item *, host_item *,
162 smtp_transport_options_block *, BOOL,
163 smtp_inblock *, smtp_outblock *);
164 extern BOOL smtp_mail_auth_str(uschar *, unsigned,
165 address_item *, smtp_transport_options_block *);
168 extern int socks_sock_connect(host_item *, int, int, uschar *,
169 transport_instance *, int);
172 /* End of transports/smtp.h */