1 #ifndef LMTP_PROXY_H
2 #define LMTP_PROXY_H
3 
4 #include "net.h"
5 
6 #include "smtp-common.h"
7 #include "smtp-params.h"
8 #include "smtp-client.h"
9 
10 #define LMTP_PROXY_DEFAULT_TTL 5
11 
12 struct smtp_server_cmd_ctx;
13 struct smtp_server_cmd_rcpt;
14 struct lmtp_proxy;
15 struct client;
16 
17 void lmtp_proxy_deinit(struct lmtp_proxy **proxy);
18 
19 int lmtp_proxy_rcpt(struct client *client,
20 		    struct smtp_server_cmd_ctx *cmd,
21 		    struct lmtp_recipient *rcpt, const char *username,
22 		    const char *detail, char delim);
23 
24 void lmtp_proxy_data(struct client *client,
25 		     struct smtp_server_cmd_ctx *cmd,
26 		     struct smtp_server_transaction *trans ATTR_UNUSED,
27 		     struct istream *data_input);
28 
29 #endif
30