|
Postfix3.3.1
|
#include <sys_defs.h>#include <ctype.h>#include <unistd.h>#include <msg.h>#include <vstream.h>#include <vstring.h>#include <stringops.h>#include <connect.h>#include <name_code.h>#include <mymalloc.h>#include <mail_error.h>#include <smtp_stream.h>#include <cleanup_user.h>#include <mail_params.h>#include <rec_type.h>#include <mail_proto.h>#include <xtext.h>#include <record.h>#include <mail_queue.h>#include <smtpd.h>#include <smtpd_proxy.h>マクロ定義 | |
| #define | SMTPD_PROXY_XFORWARD_NAME (1<<0) /* client name */ |
| #define | SMTPD_PROXY_XFORWARD_ADDR (1<<1) /* client address */ |
| #define | SMTPD_PROXY_XFORWARD_PROTO (1<<2) /* protocol */ |
| #define | SMTPD_PROXY_XFORWARD_HELO (1<<3) /* client helo */ |
| #define | SMTPD_PROXY_XFORWARD_IDENT (1<<4) /* message identifier */ |
| #define | SMTPD_PROXY_XFORWARD_DOMAIN (1<<5) /* origin type */ |
| #define | SMTPD_PROXY_XFORWARD_PORT (1<<6) /* client port */ |
| #define | STR(x) vstring_str(x) |
| #define | LEN(x) VSTRING_LEN(x) |
| #define | STREQ(x, y) (strcmp((x), (y)) == 0) |
| #define | CONSTR_LEN(s) (sizeof(s) - 1) |
| #define | PAYLOAD_LIMIT (512 - CONSTR_LEN("250 " XFORWARD_CMD "\r\n")) |
| #define | VSTREAM_TO_SMTPD_STATE(s) ((SMTPD_STATE *) vstream_context(s)) |
| #define | SMTPD_PROXY_ALLOC(p, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12) |
関数 | |
| int | smtpd_proxy_create (SMTPD_STATE *state, int flags, const char *service, int timeout, const char *ehlo_name, const char *mail_from) |
| void | smtpd_proxy_close (SMTPD_STATE *state) |
| void | smtpd_proxy_free (SMTPD_STATE *state) |
| int | smtpd_proxy_parse_opts (const char *param_name, const char *param_val) |
| #define CONSTR_LEN | ( | s | ) | (sizeof(s) - 1) |
| #define LEN | ( | x | ) | VSTRING_LEN(x) |
| #define PAYLOAD_LIMIT (512 - CONSTR_LEN("250 " XFORWARD_CMD "\r\n")) |
| #define SMTPD_PROXY_ALLOC | ( | p, | |
| a1, | |||
| a2, | |||
| a3, | |||
| a4, | |||
| a5, | |||
| a6, | |||
| a7, | |||
| a8, | |||
| a9, | |||
| a10, | |||
| a11, | |||
| a12 | |||
| ) |
| #define SMTPD_PROXY_XFORWARD_ADDR (1<<1) /* client address */ |
smtpd_proxy.c の 218 行目に定義があります。
| #define SMTPD_PROXY_XFORWARD_DOMAIN (1<<5) /* origin type */ |
smtpd_proxy.c の 222 行目に定義があります。
| #define SMTPD_PROXY_XFORWARD_HELO (1<<3) /* client helo */ |
smtpd_proxy.c の 220 行目に定義があります。
| #define SMTPD_PROXY_XFORWARD_IDENT (1<<4) /* message identifier */ |
smtpd_proxy.c の 221 行目に定義があります。
| #define SMTPD_PROXY_XFORWARD_NAME (1<<0) /* client name */ |
smtpd_proxy.c の 217 行目に定義があります。
| #define SMTPD_PROXY_XFORWARD_PORT (1<<6) /* client port */ |
smtpd_proxy.c の 223 行目に定義があります。
| #define SMTPD_PROXY_XFORWARD_PROTO (1<<2) /* protocol */ |
smtpd_proxy.c の 219 行目に定義があります。
| #define STR | ( | x | ) | vstring_str(x) |
| #define STREQ | ( | x, | |
| y | |||
| ) | (strcmp((x), (y)) == 0) |
| #define VSTREAM_TO_SMTPD_STATE | ( | s | ) | ((SMTPD_STATE *) vstream_context(s)) |
| void smtpd_proxy_close | ( | SMTPD_STATE * | state | ) |
smtpd_proxy.c の 1078 行目に定義があります。
| int smtpd_proxy_create | ( | SMTPD_STATE * | state, |
| int | flags, | ||
| const char * | service, | ||
| int | timeout, | ||
| const char * | ehlo_name, | ||
| const char * | mail_from | ||
| ) |
smtpd_proxy.c の 1007 行目に定義があります。
| void smtpd_proxy_free | ( | SMTPD_STATE * | state | ) |
smtpd_proxy.c の 1100 行目に定義があります。
| int smtpd_proxy_parse_opts | ( | const char * | param_name, |
| const char * | param_val | ||
| ) |
smtpd_proxy.c の 1148 行目に定義があります。
1.8.9.1