2006-03-27(月) 晴のち曇 安静時心拍数 58 [長年日記]
_ Postfix の設定
/usr/ports/mail/postfix からインストールしました。設定ファイルの修正は
# diff -u /usr/local/etc/postfix/main.cf{.orig,}
--- /usr/local/etc/postfix/main.cf.orig Mon Mar 27 22:45:20 2006
+++ /usr/local/etc/postfix/main.cf Mon Mar 27 22:58:18 2006
@@ -67,6 +67,7 @@
#
#myhostname = host.domain.tld
#myhostname = virtual.domain.tld
+myhostname = rtfm.jp
# The mydomain parameter specifies the local internet domain name.
# The default is to use $myhostname minus the first component.
@@ -74,6 +75,7 @@
# parameters.
#
#mydomain = domain.tld
+mydomain = rtfm.jp
# SENDING MAIL
#
@@ -90,6 +92,7 @@
#
#myorigin = $myhostname
#myorigin = $mydomain
+myorigin = $mydomain
# RECEIVING MAIL
@@ -106,6 +109,7 @@
#inet_interfaces = all
#inet_interfaces = $myhostname
#inet_interfaces = $myhostname, localhost
+inet_interfaces = $myhostname, localhost
# The proxy_interfaces parameter specifies the network interface
# addresses that this mail system receives mail on by way of a
@@ -154,6 +158,7 @@
#mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
#mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain,
# mail.$mydomain, www.$mydomain, ftp.$mydomain
+mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
# REJECTING MAIL FOR UNKNOWN LOCAL USERS
#
@@ -375,6 +380,7 @@
#alias_maps = hash:/etc/aliases
#alias_maps = hash:/etc/aliases, nis:mail.aliases
#alias_maps = netinfo:/aliases
+alias_maps = hash:/etc/mail/aliases
# The alias_database parameter specifies the alias database(s) that
# are built with "newaliases" or "sendmail -bi". This is a separate
@@ -406,6 +412,7 @@
#
#home_mailbox = Mailbox
#home_mailbox = Maildir/
+home_mailbox = Maildir/
# The mail_spool_directory parameter specifies the directory where
# UNIX-style mailboxes are kept. The default setting depends on the
としました。あとは pkg-message から出力されるメッセージに従って
# diff -u /etc/rc.conf{.orig,}
--- /etc/rc.conf.orig Mon Mar 20 18:19:41 2006
+++ /etc/rc.conf Mon Mar 27 23:10:20 2006
@@ -3,15 +3,16 @@
inetd_enable="YES"
inetd_flags="-wW -C 60 -a 208.179.62.161"
rpcbind_enable="NO"
-sendmail_enable="YES"
-sendmail_submit_enable="YES"
-sendmail_outbound_enable="YES"
-sendmail_msp_queue_enable="YES"
+sendmail_enable="NO"
+sendmail_submit_enable="NO"
+sendmail_outbound_enable="NO"
+sendmail_msp_queue_enable="NO"
sshd_enable="YES"
sshd_flags="-4"
syslogd_flags="-ss"
tcp_keepalive="NO"
tcp_extensions="NO"
apache22_enable="YES"
+postfix_enable="YES"
# cat /etc/periodic.conf daily_clean_hoststat_enable="NO" daily_status_mail_rejects_enable="NO" daily_status_include_submit_mailq="NO" daily_submit_queuerun="NO"
sendmail のログローテーションが動作しないように
# diff -u /etc/newsyslog.conf{.orig,}
--- /etc/newsyslog.conf.orig Wed Mar 1 08:47:39 2006
+++ /etc/newsyslog.conf Mon Mar 27 23:16:21 2006
@@ -32,7 +32,7 @@
/var/log/pflog 600 3 100 * JB /var/run/pflogd.pid
/var/log/ppp.log root:network 640 3 100 * J
/var/log/security 600 10 100 * J
-/var/log/sendmail.st 640 10 * 168 B
+#/var/log/sendmail.st 640 10 * 168 B
/var/log/slip.log root:network 640 3 100 * J
/var/log/weekly.log 640 5 1 $W6D0 JN
/var/log/wtmp 644 3 * @01T05 B
とします。
[ツッコミを入れる]