aboutsummaryrefslogtreecommitdiffstats
path: root/src/smtp.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2010-07-09 19:49:59 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2010-07-09 19:49:59 +0400
commit54792e26fbc26ef0a724c2b301dd74a788e3f6dd (patch)
tree656ba7b7d19fb2052f7283dd56cba84b94887883 /src/smtp.h
parent5e458871b31a8657118d88bccccf376d76c150fc (diff)
downloadrspamd-54792e26fbc26ef0a724c2b301dd74a788e3f6dd.tar.gz
rspamd-54792e26fbc26ef0a724c2b301dd74a788e3f6dd.zip
* Remove evdns and use only rspamd resolver
Diffstat (limited to 'src/smtp.h')
-rw-r--r--src/smtp.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/smtp.h b/src/smtp.h
index 595917dfc..411d03003 100644
--- a/src/smtp.h
+++ b/src/smtp.h
@@ -14,6 +14,8 @@ struct smtp_upstream {
gboolean is_unix;
};
+struct rspamd_dns_resolver;
+
#define MAX_UPSTREAM 128
#define DEFAULT_MAX_ERRORS 10
@@ -44,6 +46,7 @@ struct smtp_worker_ctx {
guint max_errors;
char *metric;
GList *smtp_filters[SMTP_STAGE_MAX];
+ struct rspamd_dns_resolver *resolver;
};
enum rspamd_smtp_state {
@@ -102,6 +105,7 @@ struct smtp_session {
gboolean resolved;
gboolean esmtp;
+ struct rspamd_dns_resolver *resolver;
};
typedef gboolean (*smtp_filter_t)(struct smtp_session *session, gpointer filter_data);