7 /* mail address rewriter and resolver
9 /* #include "trivial-rewrite.h"
26 * Connection management.
34 const char *origin_name
; /* name of variable */
35 char **origin
; /* default origin */
36 const char *domain_name
; /* name of variable */
37 char **domain
; /* default domain */
40 #define REW_PARAM_VALUE(x) (*(x)) /* make it easy to do it right */
42 extern void rewrite_init(void);
43 extern int rewrite_proto(VSTREAM
*);
44 extern void rewrite_addr(RWR_CONTEXT
*, char *, VSTRING
*);
45 extern void rewrite_tree(RWR_CONTEXT
*, TOK822
*);
46 extern RWR_CONTEXT local_context
;
47 extern RWR_CONTEXT inval_context
;
53 const char *local_transport_name
; /* name of variable */
54 char **local_transport
; /* local transport:nexthop */
55 const char *virt_transport_name
; /* name of variable */
56 char **virt_transport
; /* virtual mailbox transport:nexthop */
57 const char *relay_transport_name
; /* name of variable */
58 char **relay_transport
; /* relay transport:nexthop */
59 const char *def_transport_name
; /* name of variable */
60 char **def_transport
; /* default transport:nexthop */
61 const char *relayhost_name
; /* name of variable */
62 char **relayhost
; /* for relay and default transport */
63 const char *snd_relay_maps_name
; /* name of variable */
64 char **snd_relay_maps
; /* maptype:mapname */
65 MAPS
*snd_relay_info
; /* handle */
66 const char *transport_maps_name
; /* name of variable */
67 char **transport_maps
; /* maptype:mapname */
68 struct TRANSPORT_INFO
*transport_info
; /* handle */
71 #define RES_PARAM_VALUE(x) (*(x)) /* make it easy to do it right */
73 extern void resolve_init(void);
74 extern int resolve_proto(RES_CONTEXT
*, VSTREAM
*);
79 /* The Secure Mailer license must be distributed with this software.
82 /* IBM T.J. Watson Research
84 /* Yorktown Heights, NY 10598, USA