Postfix3.3.1
|
#include <sys_defs.h>
#include <sys/socket.h>
#include <sys/stat.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <string.h>
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <errno.h>
#include <ctype.h>
#include <signal.h>
#include <stddef.h>
#include <msg.h>
#include <mymalloc.h>
#include <vstring.h>
#include <vstream.h>
#include <vstring_vstream.h>
#include <stringops.h>
#include <events.h>
#include <smtp_stream.h>
#include <valid_hostname.h>
#include <dict.h>
#include <watchdog.h>
#include <iostuff.h>
#include <split_at.h>
#include <name_code.h>
#include <inet_proto.h>
#include <mail_params.h>
#include <mail_version.h>
#include <record.h>
#include <rec_type.h>
#include <mail_proto.h>
#include <cleanup_user.h>
#include <mail_date.h>
#include <mail_conf.h>
#include <off_cvt.h>
#include <debug_peer.h>
#include <mail_error.h>
#include <flush_clnt.h>
#include <mail_stream.h>
#include <mail_queue.h>
#include <tok822.h>
#include <verp_sender.h>
#include <string_list.h>
#include <quote_822_local.h>
#include <lex_822.h>
#include <namadr_list.h>
#include <input_transp.h>
#include <is_header.h>
#include <anvil_clnt.h>
#include <ehlo_mask.h>
#include <maps.h>
#include <valid_mailhost_addr.h>
#include <dsn_mask.h>
#include <xtext.h>
#include <uxtext.h>
#include <tls_proxy.h>
#include <verify_sender_addr.h>
#include <smtputf8.h>
#include <match_parent_style.h>
#include <mail_server.h>
#include <milter.h>
#include <dns.h>
#include <smtpd_token.h>
#include <smtpd.h>
#include <smtpd_check.h>
#include <smtpd_chat.h>
#include <smtpd_sasl_proto.h>
#include <smtpd_sasl_glue.h>
#include <smtpd_proxy.h>
#include <smtpd_milter.h>
#include <smtpd_expand.h>
データ構造 | |
struct | SMTPD_CMD |
マクロ定義 | |
#define | STR(x) vstring_str(x) |
#define | LEN(x) VSTRING_LEN(x) |
#define | VERP_CMD "XVERP" |
#define | VERP_CMD_LEN 5 |
#define | NEUTER_CHARACTERS " <>()\\\";@" |
#define | REASON_TIMEOUT "timeout" |
#define | REASON_LOST_CONNECTION "lost connection" |
#define | REASON_ERROR_LIMIT "too many errors" |
#define | MILTER_SKIP_FLAGS (CLEANUP_FLAG_DISCARD) |
#define | PUSH_STRING(old, curr, new) { char *old = (curr); (curr) = (new); |
#define | POP_STRING(old, curr) (curr) = old; } |
#define | EHLO_APPEND(state, cmd) |
#define | EHLO_APPEND1(state, cmd, arg) |
#define | XCLIENT_LOGIN_KLUDGE "" |
#define | PRINT_OR_NULL(cond, str) ((cond) ? (str) : "") |
#define | PRINT2_OR_NULL(cond, name, value) PRINT_OR_NULL((cond), (name)), PRINT_OR_NULL((cond), (value)) |
#define | PERMIT_EMPTY_ADDR 1 |
#define | REJECT_EMPTY_ADDR 0 |
#define | VSTRING_STRDUP(s) vstring_strcpy(vstring_alloc(strlen(s) + 1), (s)) |
#define | IS_SMTP_REJECT(s) |
#define | SLOPPY 0 |
#define | STREQ(x, y) (strcasecmp((x), (y)) == 0) |
#define | UPDATE_STR(s, v) |
#define | SMTPD_CMD_FLAG_LIMIT (1<<0) /* limit usage */ |
#define | SMTPD_CMD_FLAG_PRE_TLS (1<<1) /* allow before STARTTLS */ |
#define | SMTPD_CMD_FLAG_LAST (1<<2) /* last in PIPELINING command group */ |
型定義 | |
typedef struct SMTPD_CMD | SMTPD_CMD |
関数 | |
int | main (int argc, char **argv) |
#define EHLO_APPEND | ( | state, | |
cmd | |||
) |
#define EHLO_APPEND1 | ( | state, | |
cmd, | |||
arg | |||
) |
#define IS_SMTP_REJECT | ( | s | ) |
#define LEN | ( | x | ) | VSTRING_LEN(x) |
#define MILTER_SKIP_FLAGS (CLEANUP_FLAG_DISCARD) |
#define PERMIT_EMPTY_ADDR 1 |
#define POP_STRING | ( | old, | |
curr | |||
) | (curr) = old; } |
#define PRINT2_OR_NULL | ( | cond, | |
name, | |||
value | |||
) | PRINT_OR_NULL((cond), (name)), PRINT_OR_NULL((cond), (value)) |
#define PRINT_OR_NULL | ( | cond, | |
str | |||
) | ((cond) ? (str) : "") |
#define PUSH_STRING | ( | old, | |
curr, | |||
new | |||
) | { char *old = (curr); (curr) = (new); |
#define REJECT_EMPTY_ADDR 0 |
#define SLOPPY 0 |
#define SMTPD_CMD_FLAG_LAST (1<<2) /* last in PIPELINING command group */ |
#define STR | ( | x | ) | vstring_str(x) |
#define STREQ | ( | x, | |
y | |||
) | (strcasecmp((x), (y)) == 0) |
#define UPDATE_STR | ( | s, | |
v | |||
) |
#define VSTRING_STRDUP | ( | s | ) | vstring_strcpy(vstring_alloc(strlen(s) + 1), (s)) |
#define XCLIENT_LOGIN_KLUDGE "" |
ANVIL_CLNT* anvil_clnt |