comparison 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
comparison
equal deleted inserted replaced
205:4fd237550525 206:0241aaccfcdb
431 conf.alias_local_cmp = strcmp; 431 conf.alias_local_cmp = strcmp;
432 conf.max_defer_time = 86400 * 4; /* 4 days */ 432 conf.max_defer_time = 86400 * 4; /* 4 days */
433 conf.max_msg_size = 0; /* no limit on msg size */ 433 conf.max_msg_size = 0; /* no limit on msg size */
434 conf.spool_dir = SPOOL_DIR; 434 conf.spool_dir = SPOOL_DIR;
435 conf.mail_dir = "/var/mail"; 435 conf.mail_dir = "/var/mail";
436 conf.listen_addresses = g_list_append(NULL, parse_interface("localhost", 25)); 436 /* we use 127.0.0.1 because `localhost' could be bound to some
437 other IP address. This is unlikely but could be. Using
438 127.0.0.1 is more safe. See mailing list for details */
439 conf.listen_addresses = g_list_append(NULL, parse_interface("127.0.0.1", 25));
437 440
438 if ((in = fopen(filename, "r")) == NULL) { 441 if ((in = fopen(filename, "r")) == NULL) {
439 logwrite(LOG_ALERT, "could not open config file %s: %s\n", filename, strerror(errno)); 442 logwrite(LOG_ALERT, "could not open config file %s: %s\n", filename, strerror(errno));
440 return FALSE; 443 return FALSE;
441 } 444 }