# HG changeset patch # User meillo@marmaro.de # Date 1279319680 -7200 # Node ID 0241aaccfcdbf0fbc448e48f7cda1e2c0c4f4735 # Parent 4fd2375505259576d466d05f6d11509222bfe29a 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 diff -r 4fd237550525 -r 0241aaccfcdb INSTALL --- a/INSTALL Fri Jul 16 16:38:50 2010 +0200 +++ b/INSTALL Sat Jul 17 00:34:40 2010 +0200 @@ -164,8 +164,9 @@ Such a setup (i.e. the default one) does: - deliver mail locally -- accept mail from local (via stdin) -- accept mail on localhost:25 (via SMTP) (if started as daemon) +- accept mail on stdin (plain text) +- accept mail on stdin (SMTP) (if started with -bs) +- accept mail on the local port 25 (SMTP) (if started with -bd) It does not - transfer mail to other machines diff -r 4fd237550525 -r 0241aaccfcdb man/masqmail.conf.5 --- a/man/masqmail.conf.5 Fri Jul 16 16:38:50 2010 +0200 +++ b/man/masqmail.conf.5 Sat Jul 17 00:34:40 2010 +0200 @@ -176,7 +176,7 @@ 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) +Default: \fI127.0.0.1:25\fR (i.e. only local processes can connect) .TP \fBdo_save_envelope_to = \fIboolean\fR diff -r 4fd237550525 -r 0241aaccfcdb src/conf.c --- a/src/conf.c Fri Jul 16 16:38:50 2010 +0200 +++ b/src/conf.c Sat Jul 17 00:34:40 2010 +0200 @@ -433,7 +433,10 @@ 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)); + /* we use 127.0.0.1 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 */ + conf.listen_addresses = g_list_append(NULL, parse_interface("127.0.0.1", 25)); if ((in = fopen(filename, "r")) == NULL) { logwrite(LOG_ALERT, "could not open config file %s: %s\n", filename, strerror(errno));