masqmail
changeset 206:0241aaccfcdb
default listen_addresses: use 127.0.0.1 instead of `localhost'
because `localhost' could be bound to some other IP address.
This is unlikely but could be. Using 127.0.0.1 is more safe.
See mailing list for details
author | meillo@marmaro.de |
---|---|
date | Sat, 17 Jul 2010 00:34:40 +0200 |
parents | 4fd237550525 |
children | dcb315792513 |
files | INSTALL man/masqmail.conf.5 src/conf.c |
diffstat | 3 files changed, 8 insertions(+), 4 deletions(-) [+] |
line diff
1.1 --- a/INSTALL Fri Jul 16 16:38:50 2010 +0200 1.2 +++ b/INSTALL Sat Jul 17 00:34:40 2010 +0200 1.3 @@ -164,8 +164,9 @@ 1.4 1.5 Such a setup (i.e. the default one) does: 1.6 - deliver mail locally 1.7 -- accept mail from local (via stdin) 1.8 -- accept mail on localhost:25 (via SMTP) (if started as daemon) 1.9 +- accept mail on stdin (plain text) 1.10 +- accept mail on stdin (SMTP) (if started with -bs) 1.11 +- accept mail on the local port 25 (SMTP) (if started with -bd) 1.12 1.13 It does not 1.14 - transfer mail to other machines
2.1 --- a/man/masqmail.conf.5 Fri Jul 16 16:38:50 2010 +0200 2.2 +++ b/man/masqmail.conf.5 Sat Jul 17 00:34:40 2010 +0200 2.3 @@ -176,7 +176,7 @@ 2.4 If your host has different names which resolve to the same IP, 2.5 use only one of them, otherwise you will get an error message. 2.6 2.7 -Default: \fIlocalhost:25\fR (i.e. only local processes can connect) 2.8 +Default: \fI127.0.0.1:25\fR (i.e. only local processes can connect) 2.9 2.10 .TP 2.11 \fBdo_save_envelope_to = \fIboolean\fR
3.1 --- a/src/conf.c Fri Jul 16 16:38:50 2010 +0200 3.2 +++ b/src/conf.c Sat Jul 17 00:34:40 2010 +0200 3.3 @@ -433,7 +433,10 @@ 3.4 conf.max_msg_size = 0; /* no limit on msg size */ 3.5 conf.spool_dir = SPOOL_DIR; 3.6 conf.mail_dir = "/var/mail"; 3.7 - conf.listen_addresses = g_list_append(NULL, parse_interface("localhost", 25)); 3.8 + /* we use 127.0.0.1 because `localhost' could be bound to some 3.9 + other IP address. This is unlikely but could be. Using 3.10 + 127.0.0.1 is more safe. See mailing list for details */ 3.11 + conf.listen_addresses = g_list_append(NULL, parse_interface("127.0.0.1", 25)); 3.12 3.13 if ((in = fopen(filename, "r")) == NULL) { 3.14 logwrite(LOG_ALERT, "could not open config file %s: %s\n", filename, strerror(errno));