masqmail

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 diff
     1.1 --- a/man/masqmail.conf.5	Thu Jul 08 11:27:03 2010 +0200
     1.2 +++ b/man/masqmail.conf.5	Thu Jul 08 11:53:07 2010 +0200
     1.3 @@ -185,6 +185,8 @@
     1.4  If your host has different names which resolve to the same IP,
     1.5  use only one of them, otherwise you will get an error message.
     1.6  
     1.7 +Default: \fIlocalhost:25\fR (i.e. only local processes can connect)
     1.8 +
     1.9  .TP
    1.10  \fBdo_save_envelope_to = \fIboolean\fR
    1.11  
     2.1 --- a/src/conf.c	Thu Jul 08 11:27:03 2010 +0200
     2.2 +++ b/src/conf.c	Thu Jul 08 11:53:07 2010 +0200
     2.3 @@ -434,6 +434,7 @@
     2.4  	conf.max_msg_size = 0; /* no limit on msg size */
     2.5  	conf.spool_dir = SPOOL_DIR;
     2.6  	conf.mail_dir = "/var/mail";
     2.7 +	conf.listen_addresses = g_list_append(NULL, parse_interface("localhost", 25));
     2.8  
     2.9  	if ((in = fopen(filename, "r")) == NULL) {
    2.10  		logwrite(LOG_ALERT, "could not open config file %s: %s\n", filename, strerror(errno));