Postfix on FreeBSD

2007-09-10 (月) 14:26:03

# cd /usr/ports/mail/postfix
# make
Postfix-ports-options.png
-lkrb -lcrypto -lcom_err -L/usr/local/lib/mysql -lmysqlclient -lz -lcrypt -
lm -L/usr/local/lib -L/usr/local/pgsql/lib -lpq -lcrypt -L/usr/local/lib -
lldap -llber -L/usr/local/lib -lcdb
/usr/bin/ld: cannot find -lkrb
*** Error code 1

Stop in /usr/ports/mail/postfix/work/postfix-2.4.5/src/master.
*** Error code 1

Stop in /usr/ports/mail/postfix/work/postfix-2.4.5.
*** Error code 1

Stop in /usr/ports/mail/postfix.
*** Error code 1

Stop in /usr/ports/mail/postfix.
*** Error code 1

Stop in /usr/ports/mail/postfix.
# rm -R work
# make rmconfig
PostfixPortsOptions.png
#make
#make install
Would you like to activate Postfix in /etc/mail/mailer.conf [n]? y
To enable postfix startup script please add postfix_enable="YES" in
your rc.conf

If you not need sendmail anymore, please add in your rc.conf:

sendmail_enable="NO"
sendmail_submit_enable="NO"
sendmail_outbound_enable="NO"
sendmail_msp_queue_enable="NO"

And you can disable some sendmail specific daily maintenance routines in your
/etc/periodic.conf file:

daily_clean_hoststat_enable="NO"
daily_status_mail_rejects_enable="NO"
daily_status_include_submit_mailq="NO"
daily_submit_queuerun="NO"

If you are using SASL, you need to make sure that postfix has access to read
the sasldb file.  This is accomplished by adding postfix to group mail and
making the /usr/local/etc/sasldb* file(s) readable by group mail (this should
be the default for new installs).

If you are upgrading from postfix version prior to 2.0, please see the README
files for recommended changes to your configuration.
===> Installing rc.d startup script(s)

ので、/etc/rc.conf に postfix_enable="YES"

sendmail_enable="NO"
sendmail_submit_enable="NO"
sendmail_outbound_enable="NO"
sendmail_msp_queue_enable="NO"

上記書き加え /etc/defaults/で

# cp periodic.conf periodic.conf-dist-sendamil-on

して

#vi /etc/periodic.conf して、
daily_clean_hoststat_enable="NO"
daily_status_mail_rejects_enable="NO"
daily_status_include_submit_mailq="NO"
daily_submit_queuerun="NO"

を置いておく

postfix を導入すると sendmail は不要になりますので、FreeBSD を make world した時に sendmail を作り直さないように設定します。
/etc/make.conf

# added by KUJI 2007-09-10 13:21:52
NO_SENDMAIL= true

/etc/mail/aliases

postfix: root

オリジナルの sendmail のログローテーションを止めるため /etc/newsyslog.conf を変更します。

#/var/log/sendmail.st			640  10	   *	168   B

http://sakura.take-labo.jp/freebsd/mail_postfix_simple.html


添付ファイル: filePostfixPortsOptions.png 286件 [詳細] filePostfix-ports-options.png 326件 [詳細]

トップ   編集 凍結 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2007-09-10 (月) 14:26:03