changeset 153:51d8eadf3c79

local_hosts defaults to `localhost' now this is a very basic setting you really should set it to something like "localhost;foo;foo.example.org"
author meillo@marmaro.de
date Wed, 07 Jul 2010 13:38:33 +0200
parents dfb6143e7832
children fc1e5aa286ed
files man/masqmail.conf.5 src/conf.c
diffstat 2 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/man/masqmail.conf.5	Wed Jul 07 13:34:19 2010 +0200
+++ b/man/masqmail.conf.5	Wed Jul 07 13:38:33 2010 +0200
@@ -123,9 +123,11 @@
 \fBlocal_hosts = \fIlist\fR
 
 A semicolon `;' separated list of hostnames which are considered local.
-Normally you set it to "localhost;foo;foo.bar.com" if your host has the
+Normally you should set it to "localhost;foo;foo.bar.com" if your host has the
 fully qualified domain name `foo.bar.com'.
 
+Default: \fIlocalhost\fR
+
 .TP
 \fBlocal_nets = \fIlist\fR
 
--- a/src/conf.c	Wed Jul 07 13:34:19 2010 +0200
+++ b/src/conf.c	Wed Jul 07 13:38:33 2010 +0200
@@ -434,6 +434,7 @@
 	conf.max_msg_size = 0; /* no limit on msg size */
 	conf.spool_dir = SPOOL_DIR;
 	conf.log_dir = LOG_DIR;
+	conf.local_hosts = parse_list("localhost", FALSE);
 	conf.mail_dir = "/var/mail";
 
 	if ((in = fopen(filename, "r")) == NULL) {