Sendmail check_*
Posted On 2012年10月5日 星期五 at 於 上午9:27 by Lani最近遇到一些Sendmail的問題,
認真的研究一下後,發現其實Sendmail也蠻多檢查機制。
Introduction
If you plan to upgrade your sendmail version, go directly to the current release of sendmail (or at least 8.9.3) which has standard FEATUREs included. However, you may read on, because this page and related pages give background informations about the check_* rulesets.
sendmail 8.8 introduced several new rulesets to control who can use your machine to send/relay e-mail and to avoid UBE from well known sites. These are:
- check_relay
- checking the host name and host address separated by $|. This ruleset is called whenever a client connects via (E)SMTP to the server.
- check_mail
- for the MAIL command.
- check_rcpt
- for the RCPT command (used to prevent unauthorized relaying). This ruleset disables all kinds of known relaying tricks (the trick which is tested by ORBS currently (1999-07-14) is fixed since the end of 1997 according to my logs).
- check_compat
- checking both MAIL and RCPT also separated by $| before delivery.
http://www.sendmail.org/~ca/email/check.html#check_rcpt
Google Search Stories TW
Posted On 2012年5月18日 星期五 at 於 中午12:33 by Lani在看上一篇 Proud of you blog 時,無意間被這影片所吸引。
第一個故事,雖然我早知道這小朋友的故事,但這是第一次看到完整版,蠻厲害的。
第二個故事,可能讓人有一些啟發,也蠻配服的。
分享給大家其他的 Google Search Stories TW
http://www.youtube.com/user/searchstoriestw
吳承儒:
高鐵上的小科學家
14歲的吳承儒,用 Google 搜尋老師的名字意外發現測量震動的方法,
一個月內坐了兩百趟高鐵,讓他成了2012年台灣國際科展最年輕的得獎者。
林容如:
打造職涯第一桶金
為了幫剛創業的公司尋找資金,透過 Google 搜尋,林容如找到了「千兆挑戰」商業企劃書競賽,並贏得職涯第一桶金,獲得了一個改變人生的機會。
104人力銀行 _『Proud of You』
Posted On at 於 中午12:19 by Lani
最近的104的廣告,一直感動到我。
讓我想分享給其他人,跟我一起被感動。
104人力銀行_『Proud of You』為你喝采!_砂石車司機爸爸
八十萬公里+四千個便當 計算的過程中~要花多少時間~感動到我~
1.証聲音樂。
2.唱片名:Carl Hauck。
3.曲名:The Board Walk。
104人力銀行_『Proud of You』為你喝采!_動人駐唱歌手篇(媽媽的眼睛)
剛好是5月,母親節感動。
MySQL Backup and Replcation
Posted On 2012年5月17日 星期四 at 於 下午3:51 by Lani使用 MySQL Admin 登入
/usr/local/mysql/bin/mysql -u root -p xxxx
設定 repuser 權限
GRANT ALL PRIVILEGES ON *.* TO 'repuser'@'db1.mysql.net.tw' IDENTIFIED BY PASSWORD 'reppass' WITH GRANT OPTION;
鎖定所有tables禁止更新
mysql #FLUSH TABLES WITH READ LOCK;
顯示 master status
mysql#show master status \G
*************************** 1. row ***************************
File: db1-bin.074
Position: 118993931
Binlog_do_db:
Binlog_ignore_db:
1 row in set (0.00 sec)
mysql #UNLOCK TABLES;
Buildup New Replcation Server
####################################
# cd /var
# tar zxvf mysql.`date +%Y%m%d`.tar.gz
在 /etc/my.cnf 新增以下設定:
server-id = 101
master-host = db1.mysql.net.tw
master-user = repuser
master-password = reppass
master-info-file = /var/mysql/master.info
master-port = 3306
db1.mysql.net.tw
repuser
reppass
3306
60
# /usr/local/etc/rc.d/mysql.sh start
宣告 Replcation 從哪一個Log_File & Log_Pos_Id 開始:
# change master to Master_Log_File=' db1-bin.074 ',Master_Log_Pos= 118993931 ;
mysql # show slave status \G
*************************** 1. row ***************************
Master_Host: db1.mysql.net.tw
Master_User: repuser
Master_Port: 3306
Connect_retry: 60
Log_File: db1-bin.074
Pos: 118993931
Slave_Running: Yes
Replicate_do_db:
Replicate_ignore_db:
Last_errno: 0
Last_error:
Skip_counter: 0
1 row in set (0.00 sec)
Love Life 三個女孩的生命故事
Posted On 2012年5月16日 星期三 at 於 下午5:22 by Lani
Source From:TVBS 一步一腳印 的介紹
Source From:Love life 紀錄片完整版
