$theTitle=wp_title(" - ", false); if($theTitle != "") { ?>
/usr/ports/mail/postfix のインストール
# portinstall mail/postfix
で一発。オプションはPCREとSASL2とTLSを指定。
Added group “postfix”.
Added group “maildrop”.
Added user “postfix”.
You need user “postfix” added to group “mail”.
Would you like me to add it [y]?
と訊いてくるところはそのままエンター(y)。
Would you like to activate Postfix in /etc/mail/mailer.conf [n]?
ここはsendmailではなくpostfixを有効にしたいので”y”。
postfix-2.3.4,1
cyrus-sasl-2.1.22
pcre-6.7
がインストールされました。
あとの設定は、/etc/rc.confで
postfix_enable=”YES”
sendmail_enable=”NO”
sendmail_submit_enable=”NO”
sendmail_outbound_enable=”NO”
sendmail_msp_queue_enable=”NO”
/usr/local/etc/postfix にmain.cfがあるので、cp -p main.cf main.cf.orgでバックアップしてから編集。
myhostname = virtual.domain.tld
mydomain = domain.tld
myorigin = $mydomain
mydestination = $myhostname, localhost.$mydomain $mydomain
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
rehash かけたあと、newaliasesしておけば一応OK。
ご意見ご感想などありましたらコメントとして投稿をお願いします。メールアドレスは非公開になります。
日々の四方山話を徒然と・・・
いらっしゃいませ。このブログはオーストラリアの生活に関する話題とFreeBSDに関連する話題を主に色々と書き綴っています。
Sorry, This site consists of Japanese contents only. If you are interested in my blog, feel free to leave your comments in English or Japanese. Thank you.