1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
/* This file is part of Mailfromd.
Copyright (C) 2005-2011, 2015-2017 Sergey Poznyakoff
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3, or (at your option)
any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include <mailutils/alloc.h>
extern time_t negative_expire_interval;
extern char *ehlo_domain;
extern char *mailfrom_address;
extern int enable_vrfy;
extern mu_debug_handle_t callout_debug_handle;
const char *mf_status_str(mf_status s);
/* callout.c */
typedef void (*smtp_io_callback_t) (void *, const char *, const char *);
typedef struct smtp_io_data *smtp_io_t;
smtp_io_t smtp_io_create(const char *id, time_t timeout[],
smtp_io_callback_t callback,
void *closure);
void smtp_io_setup_callout(struct smtp_io_data *iop,
const char *email,
const char *ehlo,
const char *mailfrom);
void smtp_io_set_timeouts(struct smtp_io_data *io, time_t *to);
void smtp_io_free(struct smtp_io_data *iop);
const char *smtp_io_id(struct smtp_io_data *iop);
const char *smtp_io_email(struct smtp_io_data *iop);
mf_status callout_host(struct smtp_io_data *, const char *);
mf_status callout_mx(struct smtp_io_data *, const char *, int *);
mf_status callout_strict(struct smtp_io_data *, const char *);
mf_status callout_standard(struct smtp_io_data *);
void transcript(const char *id, char *prefix, const char *msg);
extern int callout_session_server(const char *id, int fd,
struct sockaddr const *sa, socklen_t len,
void *server_data, void *srvman_data);
void libcallout_init(void);
|