Subject: Re: replacing default postfix 2.1.5 with 2.2.9 from pkgsrc on 3.0
To: None <dick@uchicago.edu>
From: Malcolm Herbert <mjch@mjch.net>
List: netbsd-users
Date: 04/01/2006 15:42:01
On Fri, Mar 31, 2006 at 08:41:21PM -0600, dick@uchicago.edu wrote:
|this was a silly problem. i'm not used to there being a default
|postfix install to work around since i usually use openbsd. i had to
|edit /etc/mailer.conf and put the correct paths, /usr/pkg/sbin and
|/usr/pkg/libexec/postfix, in place of the "usual" ones for 2.1.5.
|
|i'm just writing this so someone else can find it if they have the
|same, albeit silly, problem.

The mailer.conf mechanism caters only to those things that expect to use
'standard' things like mail and sendmail, etc ... you should probably
also create a /etc/rc.conf.d/postfix with

required_files='/usr/pkg/etc/postfix/main.cf'
start_cmd='/usr/pkg/sbin/postfix start'
stop_cmd='/usr/pkg/sbin/postfix stop'
reload_cmd='/usr/pkg/sbin/postfix reload'

in it to make sure that your /etc/rc.d stuff starts with the correct
config files and so on ... some paths are hard-coded into the binaries
afaicr, so running /usr/sbin/postfix will always assume you want to
use /etc/postfix/main.cf and won't ever see your config files in
/usr/pkg/etc, which is where your pkgsrc binaries will look ... 

that's in the doco somewhere (maybe the install notes? can't remember)

hope that helps,
Malcolm

-- 
Malcolm Herbert                                This brain intentionally
mjch@mjch.net                                                left blank