From d411be33f6b1fe489a40a4566ee5b7073326075c Mon Sep 17 00:00:00 2001 From: Mark Wooding Date: Sun, 26 Jan 2014 05:24:15 +0000 Subject: [PATCH] exchange.m4, config.m4: Arrange to listen on the submission port. This involves mentioning the SMTP port too, so add a configuration knob for it. --- config.m4 | 4 +++- exchange.m4 | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/config.m4 b/config.m4 index 5901edc..4678f20 100644 --- a/config.m4 +++ b/config.m4 @@ -43,7 +43,9 @@ DEFCONF(spam_max, 50) DEFCONF(interfaces, m4_ifelse(MODE, satellite, 127.0.0.1 ; ::1, 0.0.0.0 ; ::0)) -## Submission port number. (This is sometimes tweaked for testing.) +## Main and submission port numbers. (This is sometimes tweaked for +## testing.) +DEFCONF(smtp_port, 25) DEFCONF(submission_port, 587) ## Locations of other configuration files. diff --git a/exchange.m4 b/exchange.m4 index d38e137..00f0b05 100644 --- a/exchange.m4 +++ b/exchange.m4 @@ -24,6 +24,9 @@ ###-------------------------------------------------------------------------- ### Listen for incoming connections. +SECTION(global, daemon)m4_dnl +daemon_smtp_ports = CONF_smtp_port : CONF_submission_port + SECTION(global, tls)m4_dnl tls_certificate = CONF_sysconf_dir/server.cert tls_privatekey = CONF_sysconf_dir/server.key -- 2.11.0