changeset 161:6dd3a289989b

listen per default on localhost:25 now this is a typical setup for the security POV it might be better to not listen on any interface by default, but listening on local interfaces seems to not be a problem
author meillo@marmaro.de
date Thu, 08 Jul 2010 11:53:07 +0200
parents 60c92aa59911
children 71dcdc2020bc
files man/masqmail.conf.5 src/conf.c
diffstat 2 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/man/masqmail.conf.5	Thu Jul 08 11:27:03 2010 +0200
+++ b/man/masqmail.conf.5	Thu Jul 08 11:53:07 2010 +0200
@@ -185,6 +185,8 @@
 If your host has different names which resolve to the same IP,
 use only one of them, otherwise you will get an error message.
 
+Default: \fIlocalhost:25\fR (i.e. only local processes can connect)
+
 .TP
 \fBdo_save_envelope_to = \fIboolean\fR
 
--- a/src/conf.c	Thu Jul 08 11:27:03 2010 +0200
+++ b/src/conf.c	Thu Jul 08 11:53:07 2010 +0200
@@ -434,6 +434,7 @@
 	conf.max_msg_size = 0; /* no limit on msg size */
 	conf.spool_dir = SPOOL_DIR;
 	conf.mail_dir = "/var/mail";
+	conf.listen_addresses = g_list_append(NULL, parse_interface("localhost", 25));
 
 	if ((in = fopen(filename, "r")) == NULL) {
 		logwrite(LOG_ALERT, "could not open config file %s: %s\n", filename, strerror(errno));