diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2017-10-19 22:06:20 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2017-10-19 22:06:20 +0300 |
commit | 0d8954ca25771bc6c6f5d9cf9bfa38a2b1bbba6e (patch) | |
tree | cba9192cbf520ef5527e3b1c7efccf69df24a334 /src/srvcfg.c | |
parent | b5a739de9d8ada25c4ce7cf5f365ecde89f470e5 (diff) | |
download | mailfromd-0d8954ca25771bc6c6f5d9cf9bfa38a2b1bbba6e.tar.gz mailfromd-0d8954ca25771bc6c6f5d9cf9bfa38a2b1bbba6e.tar.bz2 |
Improve DNS resolver API
Remove arbitrary size limits.
* NEWS: Version 8.2.90
* configure.ac: Likewise. Require Mailutils 3.3
* doc/calloutd.texi: Update.
* doc/functions.texi: Update.
* doc/mailfromd.texi: Update.
* doc/upgrade.texi: Update.
* lib/dns.c: Rewrite.
* lib/dns.h (MAXMXCOUNT, MXF_MAX): Remove.
(mxbuf_init,dns_resolve_ipstr)
(a_lookup,ptr_lookup,txt_lookup)
(spf_lookup): Change protos.
(dns_reply): New struct.
(dns_reply_free,dns_reply_ip): New functions.
* lib/libmf.h (getmxip): Change proto.
* src/builtin/dns.bi: Remove runtime configuration statements:
max-dns-reply-a, max-dns-reply-ptr, and max-dns-reply-mx. Rewrite using
the new DNS API.
* src/callout.c: Update.
* src/mailfromd.h: Update.
* src/main.c: Remove the max-match-mx configuration statement.
* src/prog.c: Update.
* src/spf.c: Update.
* src/spf.h: Update.
* src/srvcfg.c: Remove the max-callout-mx configuration statement.
Diffstat (limited to 'src/srvcfg.c')
-rw-r--r-- | src/srvcfg.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/srvcfg.c b/src/srvcfg.c index f04e4c68..a9527a53 100644 --- a/src/srvcfg.c +++ b/src/srvcfg.c @@ -42,8 +42,6 @@ struct mu_sockaddr *source_address; /* Source address for TCP connections */ int mtasim_option; /* mtasim compatibility mode */ char *db_type_str = DEFAULT_DB_TYPE; -size_t max_callout_mx = MAXMXCOUNT; - /* Timeouts */ time_t smtp_timeout_soft[SMTP_NUM_TIMEOUT] = { 10, @@ -514,9 +512,6 @@ static struct mu_cfg_param srv_cfg_param[] = { { "acl", mu_cfg_section, &srvman_param.acl }, { "logger", mu_c_string, &log_stream, 0, NULL, N_("Set logger stream.") }, - { "max-callout-mx", mu_c_size, &max_callout_mx, 0, NULL, - N_("Maximum number of MXs to be polled during " - "callout verification.") }, { "state-directory", mu_cfg_callback, NULL, 0, cb_state_directory, N_("Set program state directory."), N_("dir: string") }, |