Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 May 2003 16:39:10 +0300
From:      Giorgos Keramidas <keramida@hellug.gr>
To:        Alfonso Romero <ibac@prodigy.net.mx>
Cc:        freebsd-questions <freebsd-questions@freebsd.org>
Subject:   Re: restarting sendmail
Message-ID:  <20030508133910.GA9612@igloo.linux.gr>
In-Reply-To: <013301c314fc$e2609380$0100a8c0@ibac>
References:  <013301c314fc$e2609380$0100a8c0@ibac>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2003-05-07 19:58, Alfonso Romero <ibac@prodigy.net.mx> wrote:
> If i restart sendmail, killing the daemon first with kill -s HUP
> <pidnumber>, will it read the config files, like
> /etc/mail/local-host-names and /etc/mail/relay-domains?

Some of the files are maps that need to be generated before you
restart.  For instance, making changes to /etc/mail/virtusertable
requires a rebuild of the /etc/mail/virtusertable.db map.  Others are
plain text maps (like local-host-names) and don't require a restart.

The easiest way of making sure all is up to date after manual changes
to one of the map files is:

	# cd /etc/mail
	# make
	# make install
	# make restart

This should take care of things automatically for you.  If you're
feeling curious one day and want to learn more about the maps, which
of them are plain text maps, which need an associated .db file and
how to manually rebuild the maps if you want to do it this way, is to
read the documentation of the maps you are using.  The installed
version of the Sendmail config files lives in /usr/share/sendmail.

Look at the file /usr/share/sendmail/cf/README for all the details you
want to know.  The "Sendmail OP Guide", in /usr/share/doc is also a
nice way to learn more about the tasks a Sendmail admin has to do.
Start with /usr/share/doc/smm/08.sendmailop/paper.ascii.gz:

	$ cd /usr/share/doc/smm/08.sendmailop
	$ zcat paper.ascii.gz | less

- Giorgos



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030508133910.GA9612>