diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2012-03-07 20:47:55 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2012-03-07 20:47:55 +0400 |
commit | 9b8ecfb8923cae677777a68790f23fbcf26bdabf (patch) | |
tree | 01e262f8354d2209c595fc911f819ca9a54b37ed /src/smtp_proto.h | |
parent | 944dd2a7eab62d2b23c31e26a33d4ad79c11381b (diff) | |
download | rspamd-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.h | 6 |
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 |