[root@gawa root]# cd /etc/postfix/ [root@gawa postfix]# mv main.cf main.cf.orig [root@gawa postfix]# cp main.cf.orig main.cf [root@gawa postfix]# ls -l main.cf* -rw-r--r-- 1 root root 25678 Jan 3 02:32 main.cf -rw-r--r-- 1 root root 9178 Oct 28 2004 main.cf.default -rw-r--r-- 1 root root 25678 Oct 28 2004 main.cf.orig [root@gawa postfix]# vi main.cf : : [root@gawa postfix]# diff -c main.cf.orig main.cf *** main.cf.orig 2004-10-28 18:12:49.000000000 +0900 --- main.cf 2006-01-03 02:33:24.000000000 +0900 *************** *** 66,71 **** --- 66,72 ---- # #myhostname = host.domain.tld #myhostname = virtual.domain.tld + myhostname = gawa.yamasita.jp # The mydomain parameter specifies the local internet domain name. # The default is to use $myhostname minus the first component. [root@gawa postfix]#
[root@gawa postfix]# mv aliases aliases.orig [root@gawa postfix]# cp aliases.orig aliases [root@gawa postfix]# ls -l aliases* -rw-r--r-- 1 root root 412 Jan 3 02:35 aliases -rw-r--r-- 1 root root 12288 Mar 12 2005 aliases.db -rw-r--r-- 1 root root 412 Oct 28 2004 aliases.orig [root@gawa postfix]# vi aliases : : [root@gawa postfix]# diff -c aliases.orig aliases *** aliases.orig 2004-10-28 18:12:49.000000000 +0900 --- aliases 2006-01-03 02:35:56.000000000 +0900 *************** *** 22,24 **** --- 22,26 ---- # Person who should get root's mail #root: marc + root: yasunari + yasunari: yasunari @ yamasita.jp [root@gawa postfix]# newaliases
[root@gawa postfix]# /etc/rc.d/init.d/postfix start Postfixを起動中: [ OK ] [root@gawa postfix]#
[root@gawa postfix]# mail root Subject: test to root test to root Cc: [root@gawa postfix]# tail /var/log/maillog Jan 2 04:02:07 gawa postfix/postsuper[22623]: warning: My hostname gawa is not a fully qualified name - set myhostname or mydomain in /etc/postfix/main.cf Jan 3 02:37:39 gawa postfix/postfix-script: starting the Postfix mail system Jan 3 02:37:39 gawa postfix/master[27367]: daemon started -- version 2.0.20 (ここまでは postfix 起動時に出力) Jan 3 02:38:08 gawa postfix/pickup[27370]: 0A0D5175B2: uid=0 from=Jan 3 02:38:08 gawa postfix/cleanup[27428]: 0A0D5175B2: message-id=<20060102173807.0A0D5175B2 @ gawa.yamasita.jp> Jan 3 02:38:08 gawa postfix/qmgr[27371]: 0A0D5175B2: from= , size=316, nrcpt=1 (queue active) Jan 3 02:38:08 gawa postfix/cleanup[27428]: 3F951175B3: message-id=<20060102173807.0A0D5175B2 @ gawa.yamasita.jp> Jan 3 02:38:08 gawa postfix/qmgr[27371]: 3F951175B3: from= , size=453, nrcpt=1 (queue active) Jan 3 02:38:08 gawa postfix/local[27432]: 0A0D5175B2: to= , orig_to= , relay=local, delay=1, status=sent (forwarded as 3F951175B3) Jan 3 02:38:08 gawa postfix/smtp[27433]: 3F951175B3: to= , orig_to= , relay=ns.yamasita.jp[192.168.1.2], delay=0, status=sent (250 2.0.0 k02HcAhu003828 Message accepted for delivery) [root@gawa postfix]#
[root@gawa postfix]# chkconfig --list postfix postfix 0:off 1:off 2:off 3:off 4:off 5:off 6:off [root@gawa postfix]# chkconfig postfix on [root@gawa postfix]# chkconfig --list postfix postfix 0:off 1:off 2:off 3:on 4:on 5:on 6:off [root@gawa postfix]#
← HS-DGL! + ハックキット 2.0:勝手にリサイズせんといて |
ハックの記録 LinkStation/玄箱 をハックしよう |
→ HS-DGL! + ハックキット 2.0:ダブルチューナ |