Hi,

I have used the following configuration for sendmail with good results;
I would recommend mimicing it:

1. Move *all* the sendmail configuration files to /etc/mail.  If
necessary, symlink /etc/sendmail.cf -> /etc/mail/sendmail.cf, but I
think this is a compile-time option for sendmail.

2. Put a Makefile in /etc/mail, looking something like this one (which I
use on a real system):

-----------------------------------------------------------------------------
#
# Sendmail configuration makefile for <host>
#
# These tables need a sendmail restart if changed
TABLES = virtusertable.db access.db domaintable.db mailertable.db
sendmail.cf

all: aliases.db sendmail.cf tables.date

tables.date: $(TABLES)
        touch tables.date
        /etc/rc.d/init.d/sendmail restart

aliases.db: aliases
        newaliases

%.db : %
        makemap hash $@ < $<

sendmail.cf : sendmail.mc
        m4 sendmail.mc > sendmail.cf

clean:
        -rm -f *.db *~

--------------------------------------------------------------------------------

That way, a simple "make" will rebuild whatever databases or config
files that are necessary, using whatever commands are appropriate, and
will restart sendmail if necessary.

Highly recommended.

Also, I would make sendmail.mc part of the sendmail-cf RPM; that way, if
sendmail-cf isn't installed, "make" won't try to rebuild sendmail.cf if
someone touches sendmail.mc.

        -hpa

-- 
To unsubscribe:
mail -s unsubscribe [EMAIL PROTECTED] < /dev/null

Reply via email to