NetBSD に Postfix 2.2.6 を入れる。 rin@satomi[/usr/pkgsrc/mail/postfix]% sudo make install clean sudo make install clean Password: Sorry, try again. Password: ===> *** No /usr/pkgsrc/distfiles/pkg-vulnerabilities file found, ===> *** skipping vulnerability checks. To fix, install ===> *** the pkgsrc/security/audit-packages package and run ===> *** '/usr/pkg/sbin/download-vulnerability-list'. => Checksum SHA1 OK for postfix/postfix-2.2.6.tar.gz. => Checksum RMD160 OK for postfix/postfix-2.2.6.tar.gz. ===> Extracting for postfix-2.2.6nb1 ========================================================================== The supported build options for this package are: bdb ldap mysql mysql4 pcre pgsql sasl tls You can select which build options to use by setting PKG_DEFAULT_OPTIONS or the following variable. Its current value is shown: PKG_OPTIONS.postfix (not defined) ========================================================================== ========================================================================== The following variables will affect the build process of this package, postfix-2.2.6nb1. Their current value is shown below: * BDBBASE (defined) * BDB_TYPE = db1 You may want to abort the process now with CTRL-C and change their value before continuing. Be sure to run `/usr/bin/make clean' after the changes. ========================================================================== ===> Patching for postfix-2.2.6nb1 ===> Applying pkgsrc patches for postfix-2.2.6nb1 ===> Overriding tools for postfix-2.2.6nb1 ===> Creating toolchain wrappers for postfix-2.2.6nb1 ===> Configuring for postfix-2.2.6nb1 : : =========================================================================== Installing files needed by postfix-2.2.6nb1: /usr/pkg/etc/postfix/main.cf [/usr/pkg/share/examples/postfix/main.cf] /usr/pkg/etc/postfix/master.cf [/usr/pkg/share/examples/postfix/master.cf] /usr/pkg/etc/postfix/post-install [/usr/pkg/share/examples/postfix/post-install] /usr/pkg/etc/postfix/postfix-files [/usr/pkg/share/examples/postfix/postfix-files] /usr/pkg/etc/postfix/postfix-script [/usr/pkg/share/examples/postfix/postfix-script] =========================================================================== ===> Please note the following: =========================================================================== $NetBSD: MESSAGE,v 1.8 2004/07/19 22:03:13 jlam Exp $ Please run the following command to update main.cf and master.cf with the latest Postfix services and configuration directives: /usr/pkg/sbin/postfix upgrade-configuration If you are upgrading from a previous Postfix installation, you may want to back up any existing configuration files before running the above command. Postfix may be activated by executing: /usr/pkg/sbin/postfix start =========================================================================== =========================================================================== $NetBSD: MESSAGE.NetBSD,v 1.2 2004/07/19 03:25:11 jlam Exp $ If you are running NetBSD 1.5 (or newer), the existing /etc/rc.d/postfix can be forced to start /usr/pkg/sbin/postfix instead of /usr/sbin/postfix, by adding the following lines to /etc/rc.conf.d/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' =========================================================================== ===> Registering installation for postfix-2.2.6nb1 ===> Cleaning for postfix-2.2.6nb1 !! main.cf % sudo postconf -n alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases command_directory = /usr/pkg/sbin config_directory = /usr/pkg/etc/postfix daemon_directory = /usr/pkg/libexec/postfix debug_peer_level = 2 home_mailbox = Maildir/ html_directory = no local_recipient_maps = mail_owner = postfix mailq_path = /usr/pkg/bin/mailq manpage_directory = /usr/pkg/man mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain, qml.$mydomain mydomain = area51.gr.jp myhostname = sakura.area51.gr.jp mynetworks = 192.168.0.0/24, 127.0.0.0/8 myorigin = $mydomain newaliases_path = /usr/pkg/bin/newaliases queue_directory = /var/spool/postfix readme_directory = /usr/pkg/share/doc/postfix sample_directory = /usr/pkg/share/examples/postfix sendmail_path = /usr/pkg/sbin/sendmail setgid_group = maildrop transport_maps = hash:/usr/pkg/etc/postfix/transport unknown_local_recipient_reject_code = 550 !! transport Postfix と quickml を同一ホスト上で動作させることを考慮しておく。 qml.area51.gr.jp smtp:[127.0.0.1]:10025 !! 既存の Postfix インストールログにあるように /etc/rc.d/postfix があると pkgsrc の Postfix ではなくて /usr/sbin/postfix が起動される。 これを抑制するために /etc/rc.conf.d/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'