summaryrefslogtreecommitdiffstats
path: root/src/smtp_proto.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2012-03-07 20:47:55 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2012-03-07 20:47:55 +0400
commit9b8ecfb8923cae677777a68790f23fbcf26bdabf (patch)
tree01e262f8354d2209c595fc911f819ca9a54b37ed /src/smtp_proto.h
parent944dd2a7eab62d2b23c31e26a33d4ad79c11381b (diff)
downloadrspamd-9b8ecfb8923cae677777a68790f23fbcf26bdabf.tar.gz
rspamd-9b8ecfb8923cae677777a68790f23fbcf26bdabf.zip
* Add initial implementation of proxy object
* Add simple smtp proxy worker
Diffstat (limited to 'src/smtp_proto.h')
-rw-r--r--src/smtp_proto.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/smtp_proto.h b/src/smtp_proto.h
index 2f2904192..efb09bf35 100644
--- a/src/smtp_proto.h
+++ b/src/smtp_proto.h
@@ -18,6 +18,10 @@
#define DATA_END_TRAILER "." CRLF
+#define XCLIENT_HOST_UNAVAILABLE "[UNAVAILABLE]"
+#define XCLIENT_HOST_TEMPFAIL "[TEMPUNAVAIL]"
+
+#define MAX_SMTP_UPSTREAMS 128
struct smtp_command {
enum {
@@ -39,7 +43,7 @@ struct smtp_command {
/*
* Generate SMTP error message
*/
-gchar * make_smtp_error (struct smtp_session *session, gint error_code, const gchar *format, ...);
+gchar * make_smtp_error (memory_pool_t *pool, gint error_code, const gchar *format, ...);
/*
* Parse a single SMTP command