On Thursday 04 September 2003 08:35 am, Pierre Fortin wrote:
> On Thu, 4 Sep 2003 07:04:20 -0400 Bryan Phinney
>
> <[EMAIL PROTECTED]> wrote:
> > On Wednesday 03 September 2003 11:24 pm, Jack Coates wrote:
> > > Mine doesn't work with either of these, but saslpasswd works. Only
> > > problem is that every few months I add a user and spend a few hours
> > > trying to remember why it isn't working :-)
> >
> > I have a Makefile in my /etc/postfix directory that specifies all of the
> >
> > password databases, like access, aliases, etc.  So, all I have to do
> > when I reconfigure anything with Postfix is to remember to issue a make
> > command in the directory and everything is recompiled and rehashed, and
> > Postfix is automagically stopped and restarted.
> >
> > Very convenient.
>
> Would you mind sending me a copy (or even posting it)...?  I never got
> around to messing with makefiles and currently use a script which I named
> "make" for the same purposes (see bottom of my page at
> http://pfortin.com/Linux/PostFix/)

# Makefile for /etc/postfix
#
TARGETS := access.db canonical.db relocated.db transport.db \
        virtual.db aliases.db sasl_passwd.db .build.mark

all: $(TARGETS)
        /etc/init.d/postfix reload

aliases.db: aliases
        postalias aliases

.build.mark: main.cf master.cf header_checks
        touch .build.mark

%.db: %
        postmap $<

-- 
Bryan Phinney
Software Test Engineer


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to