masqmail

diff src/conf.c @ 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 8cddc65765bd
line diff
     1.1 --- a/src/conf.c	Fri Jul 16 16:38:50 2010 +0200
     1.2 +++ b/src/conf.c	Sat Jul 17 00:34:40 2010 +0200
     1.3 @@ -433,7 +433,10 @@
     1.4  	conf.max_msg_size = 0; /* no limit on msg size */
     1.5  	conf.spool_dir = SPOOL_DIR;
     1.6  	conf.mail_dir = "/var/mail";
     1.7 -	conf.listen_addresses = g_list_append(NULL, parse_interface("localhost", 25));
     1.8 +	/* we use 127.0.0.1 because `localhost' could be bound to some
     1.9 +	   other IP address. This is unlikely but could be. Using
    1.10 +	   127.0.0.1 is more safe. See mailing list for details */
    1.11 +	conf.listen_addresses = g_list_append(NULL, parse_interface("127.0.0.1", 25));
    1.12  
    1.13  	if ((in = fopen(filename, "r")) == NULL) {
    1.14  		logwrite(LOG_ALERT, "could not open config file %s: %s\n", filename, strerror(errno));