NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Replacing Postfix
Here is what I have done:
1. Added pkg postfix-2.7.20091209.tgz
2. Created /etc/rc.conf.d/postfix and added the following:
postfix_command='/usr/pkg/sbin/postfix'
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'
postconf='/usr/pkg/sbin/postconf'
3. Amended main.conf so that
4. Copied all my settings (main.conf, body_checks, header_checks etc)
to /usr/pkg/etc/postfix
5. Symlinked /etc/rc.d/postfix to /usr/pkg/share/examples/rc.d/postfix
6. Rebooted
The server starts fine, and the log shows the following line (meaning
the right version starts):
Dec 24 16:10:24 mail postfix/master[12111]: daemon started --
version 2.7-20091209, configuration /usr/pkg/etc/postfix
However, if I run "postfix -n" it says my config_directory is
/etc/postfix and all my files are being read from /etc/postfix.
Am I missing something in /etc/rc.conf?
-Mark
On 17 December 2010 23:44, Christos Zoulas <christos%astron.com@localhost>
wrote:
> In article <20101217224423.GA23858%panix.com@localhost>,
> Thor Lancelot Simon <tls%panix.com@localhost> wrote:
>>On Fri, Dec 17, 2010 at 04:11:38PM +0000, IT geek 31 wrote:
>>>
>>> Please can someone give me some pointers on how to compile Postfix from
>>> pkgsrc, to include TLS and SASL support? I need to remove the installed
>>> package (which I can do), and any base install.
>
> Just build and install it. Then you can edit /etc/postfix/main.cf and
> make the following changes:
>
> command_directory = /usr/pkg/sbin
> daemon_directory = /usr/pkg/libexec/postfix
> share_directory = /usr/pkg/share/postfix
> man_directory = /usr/pkg/man
>
> Then you are going to use the pkgsrc postfix instead of the installed in
> base.
>
> Soon we are going to have SASL support that does not need CYRUS in the base
> version.
>
> christos
>
>
Home |
Main Index |
Thread Index |
Old Index