~ubuntu-branches/ubuntu/vivid/exim4/vivid

« back to all changes in this revision

Viewing changes to src/globals.h

  • Committer: Package Import Robot
  • Author(s): Corey Bryant
  • Date: 2014-08-04 11:48:39 UTC
  • mfrom: (56.1.2 utopic)
  • Revision ID: package-import@ubuntu.com-20140804114839-xoulpcx9nxi5m72u
Tags: 4.84~RC1-3ubuntu1
* Merge from Debian unstable (LP: #1351470). Remaining changes:
  - Show Ubuntu distribution on smtp:
    + debian/patches/fix_smtp_banner.patch: updated SMTP banner
      with Ubuntu distribution
    + debian/control: added lsb-release build dependency
  - Don't provide default-mta; in Ubuntu, we want postfix to be the
    default.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
*     Exim - an Internet mail transport agent    *
3
3
*************************************************/
4
4
 
5
 
/* Copyright (c) University of Cambridge 1995 - 2012 */
 
5
/* Copyright (c) University of Cambridge 1995 - 2014 */
6
6
/* See the file NOTICE for conditions of use and distribution. */
7
7
 
8
8
/* Almost all the global variables are defined together in this one header, so
85
85
  uschar *cipher;             /* Cipher used */
86
86
  BOOL    on_connect;         /* For older MTAs that don't STARTTLS */
87
87
  uschar *on_connect_ports;   /* Ports always tls-on-connect */
 
88
  void   *ourcert;            /* Certificate we presented, binary */
 
89
  void   *peercert;           /* Certificate of peer, binary */
88
90
  uschar *peerdn;             /* DN from peer */
89
91
  uschar *sni;                /* Server Name Indication */
 
92
  enum {
 
93
    OCSP_NOT_REQ=0,             /* not requested */
 
94
    OCSP_NOT_RESP,              /* no response to request */
 
95
    OCSP_VFY_NOT_TRIED,         /* response not verified */
 
96
    OCSP_FAILED,                /* verify failed */
 
97
    OCSP_VFIED                  /* verified */
 
98
    }     ocsp;               /* Stapled OCSP status */
90
99
} tls_support;
91
100
extern tls_support tls_in;
92
101
extern tls_support tls_out;
105
114
extern uschar *tls_crl;                /* CRL File */
106
115
extern int     tls_dh_max_bits;        /* don't accept higher lib suggestions */
107
116
extern uschar *tls_dhparam;            /* DH param file */
108
 
#if defined(EXPERIMENTAL_OCSP) && !defined(USE_GNUTLS)
 
117
#ifndef DISABLE_OCSP
109
118
extern uschar *tls_ocsp_file;          /* OCSP stapling proof file */
110
119
#endif
111
120
extern BOOL    tls_offered;            /* Server offered TLS */
117
126
extern uschar *tls_verify_hosts;       /* Mandatory client verification */
118
127
#endif
119
128
 
 
129
#ifdef EXPERIMENTAL_DSN
 
130
extern uschar  *dsn_envid;             /* DSN envid string */
 
131
extern int      dsn_ret;               /* DSN ret type*/
 
132
extern const pcre  *regex_DSN;         /* For recognizing DSN settings */
 
133
extern BOOL     smtp_use_dsn;          /* Global for passed connections */
 
134
extern uschar  *dsn_advertise_hosts;   /* host for which TLS is advertised */
 
135
#endif
 
136
 
120
137
#ifdef DLOPEN_LOCAL_SCAN
121
138
extern uschar *local_scan_path;        /* Path to local_scan() library */
122
139
#endif
123
 
 
124
140
/* Input-reading functions for messages, so we can use special ones for
125
141
incoming TCP/IP. */
126
142
 
154
170
extern uschar *acl_smtp_auth;          /* ACL run for AUTH */
155
171
extern uschar *acl_smtp_connect;       /* ACL run on SMTP connection */
156
172
extern uschar *acl_smtp_data;          /* ACL run after DATA received */
157
 
#ifdef EXPERIMENTAL_PRDR
 
173
#ifndef DISABLE_PRDR
158
174
extern uschar *acl_smtp_data_prdr;     /* ACL run after DATA received if in PRDR mode*/
159
175
const extern pcre *regex_PRDR;         /* For recognizing PRDR settings */
160
176
#endif
310
326
extern BOOL    deliver_firsttime;      /* True for first delivery attempt */
311
327
extern BOOL    deliver_force;          /* TRUE if delivery was forced */
312
328
extern BOOL    deliver_freeze;         /* TRUE if delivery is frozen */
313
 
extern int     deliver_frozen_at;      /* Time of freezing */
 
329
extern time_t  deliver_frozen_at;      /* Time of freezing */
314
330
extern uschar *deliver_home;           /* Home directory for pipes */
315
331
extern uschar *deliver_host;           /* (First) host for routed local deliveries */
316
332
                                       /* Remote host for filter */
357
373
#ifdef EXPERIMENTAL_DMARC
358
374
extern BOOL    dmarc_has_been_checked; /* Global variable to check if test has been called yet */
359
375
extern uschar *dmarc_ar_header;        /* Expansion variable, suggested header for dmarc auth results */
 
376
extern uschar *dmarc_domain_policy;    /* Expansion for declared policy of used domain */
360
377
extern uschar *dmarc_forensic_sender;  /* Set sender address for forensic reports */
361
378
extern uschar *dmarc_history_file;     /* Expansion variable, file to store dmarc results */
362
379
extern uschar *dmarc_status;           /* Expansion variable, one word value */
505
522
extern uschar *login_sender_address;   /* The actual sender address */
506
523
extern lookup_info **lookup_list;      /* Array of pointers to available lookups */
507
524
extern int     lookup_list_count;      /* Number of entries in the list */
 
525
extern uschar *lookup_dnssec_authenticated; /* AD status of dns lookup */
508
526
extern int     lookup_open_max;        /* Max lookup files to cache */
509
527
extern uschar *lookup_value;           /* Value looked up from file */
510
528
 
584
602
extern uschar *pid_file_path;          /* For writing daemon pids */
585
603
extern uschar *pipelining_advertise_hosts; /* As it says */
586
604
extern BOOL    pipelining_enable;      /* As it says */
587
 
#ifdef EXPERIMENTAL_PRDR
 
605
#ifndef DISABLE_PRDR
588
606
extern BOOL    prdr_enable;            /* As it says */
589
607
extern BOOL    prdr_requested;         /* Connecting mail server wants PRDR */
590
608
#endif
595
613
extern int     process_info_len;
596
614
extern uschar *process_log_path;       /* Alternate path */
597
615
extern BOOL    prod_requires_admin;    /* TRUE if prodding requires admin */
 
616
 
 
617
#ifdef EXPERIMENTAL_PROXY
 
618
extern uschar *proxy_host_address;     /* IP of host being proxied */
 
619
extern int     proxy_host_port;        /* Port of host being proxied */
 
620
extern uschar *proxy_required_hosts;   /* Hostlist which (require) use proxy protocol */
 
621
extern BOOL    proxy_session;          /* TRUE if receiving mail from valid proxy  */
 
622
extern BOOL    proxy_session_failed;   /* TRUE if required proxy negotiation failed */
 
623
extern uschar *proxy_target_address;   /* IP of proxy server inbound */
 
624
extern int     proxy_target_port;      /* Port of proxy server inbound */
 
625
#endif
 
626
 
598
627
extern uschar *prvscheck_address;      /* Set during prvscheck expansion item */
599
628
extern uschar *prvscheck_keynum;       /* Set during prvscheck expansion item */
600
629
extern uschar *prvscheck_result;       /* Set during prvscheck expansion item */