Subject: Re: Postfix: Please review this tutorial
To: None <netbsd-docs@netbsd.org>
From: James K. Lowden <jklowden@schemamania.org>
List: netbsd-docs
Date: 04/23/2005 20:07:47
Florian Stoehr wrote:
> 
> I took my personal Postfix notes and wrote a Postfix tutorial.
> 
> The goal is to have a tutorial for setting up a real-life server
> under NetBSD.

I'd like to offer one other suggestion, in case you like it, too.  Taking
a page out of pkgsrc, I keep /etc/postfix/Makefile:

all: aliases.db virtual.db

aliases.db: aliases
        /usr/sbin/postalias aliases

virtual.db: virtual
        /usr/sbin/postmap virtual

reload: aliases.db virtual.db
        /etc/rc.d/postfix reload

start: aliases.db virtual.db
        /etc/rc.d/postfix start

The advantage being that after changing something, I just say "make
reload" and everything works.  

--jkl