Joe Horn 的啟示錄
Joe Horn's Blog
  • LinkedIn
  • Facebook
  • Instagram
  • GitHub
  • Docker Hub
RSS
  • VPS Referrals
  • My Plurk
  • My Plurk Bot

1 月 21 2008

LEGO Ferrari F1 Racer 1:8 完工

其實,這個玩具我哈很久了。

樂高在 Ferrari F1 Racer 這個系列中,有兩組商品:

  • Ferrari F1 Racer 1:8
  • Ferrari F1 Racer 1:10

之前我在台北、新竹、高雄問過,問到的都是 1:10 的那組。
直到 2007 年 12 月中,我才在高雄夢時代裡面的玩具反斗城看到 1:8 的! :-|

不過… 直到上個星期五(1/18),我才決定把它帶回家。
1:8 的這組樂高總共有 1246 個零件,我花了 12 小時左右才組裝完。

包括開箱跟完工,我拍了一堆圖。
為了節省篇幅,有興趣看的請點下面的連結繼續看吧… XD

More

By Joe Horn • Life 6 • Tags: Ferrari, Formula 1, LEGO

1 月 14 2008

Google Earth 的圖資更豐富啦~

剛剛,看到快速啟動裡面的 Google Earth 圖示,突然想到,它很久沒被我開出來玩了。
手邊的工作正好完成了一個段落,就開起來玩玩。 (羞)

透過 Google Earth 的「檢查線上更新」功能,我把版本更新到 4.2.0205.5730 。
這個版本不僅提供了星象圖(Google 稱之為 天際功能),圖資也變得更豐富啦! :cool:
而且,除了台灣道路名稱的顯示之外,台灣的許多高樓建築也都有 3D 模型了。 (邪惡)

我順手擷取了幾張圖出來:

  • 台北 101(左上的是國父紀念館)
    台北 101
  • 高雄 85 大樓
    高雄 85 大樓
  • 高雄大遠百(連招牌都做出來了,完成度真高! XD )
    高雄大遠百
  • 杜拜的帆船飯店
    Hotel Burj Al Arab

當然,雪梨歌劇院、埃及金字塔、凱旋門、艾菲爾鐵塔、…,也都有 3D 模型。
比較可惜的是,我找不到台北的美麗華摩天輪跟高雄夢時代的 3D 模型…

除了以上的圖,比較奇特的圖應該是這張,高雄的小港機場南邊的衛星空照圖好像有個電磁力場。 XD
Warp Gate in Kaohsiung?
(時空傳送門建造中? XD )

總之,從以前到現在,我一直覺得 Google Earth 是一套頗好玩的軟體,而且,它愈來愈有趣了。 :-D
Anyway, 有興趣的人可以自行 下載 Google Earth 來玩看看。 :-)

By Joe Horn • Computer Software 0 • Tags: Google Earth, screenshot

1 月 13 2008

在 MySQL 中處理時間資料

以前,我會習慣用 PHP 的 date() 把時間字串整理好再放進資料庫,不然就是直接存 UNIX timestamp 。
直到前一陣子,我才發現 MySQL 有些巧妙的函式,方便我們處理理時間型態的資料。

如果在 TABLE_NAME 中,有個名為 TIME_COL 的欄位,其型態為 (unsigned) int,儲存的資料為 UNIX timestamp 。
那麼,在 MySQL 中,有些好用的 function 可供我們進行資料的操作:

  • 新增一筆資料,其 TIME_COL 為現在時間:
    INSERT INTO `TABLE_NAME` (`TIME_COL`) VALUES ( UNIX_TIMESTAMP( NOW() ) );
  • 這串 SQL 語法可以找出 TIME_COL 所紀錄的時間在五分鐘內的資料:
    SELECT * FROM `TABLE_NAME` WHERE `TIME_COL` > UNIX_TIMESTAMP( NOW() - INTERVAL 5 MINUTE );
  • 這串 SQL 語法可以讓所有資料的 TIME_COL 值往後延 2 個月:
    UPDATE `TABLE_NAME` SET `TIME_COL`=UNIX_TIMESTAMP( FROM_UNIXTIME(`TIME_COL`, '%Y-%m-%d %H:%i:%s') + INTERVAL 2 MONTH ) WHERE 1;

如果 TIME_COL 欄位的型態為 datetime ,事情處理起來會更容易:

  • 新增一筆資料,其 TIME_COL 為現在時間:
    INSERT INTO `TABLE_NAME` (`TIME_COL`) VALUES ( NOW() );
  • 這串 SQL 語法可以找出 TIME_COL 所紀錄的時間在五分鐘內的資料:
    SELECT * FROM `TABLE_NAME` WHERE `TIME_COL` > NOW() - INTERVAL 5 MINUTE;
  • 這串 SQL 語法可以讓所有資料的 TIME_COL 值往後延 2 個月:
    UPDATE `TABLE_NAME` SET `TIME_COL`=(`TIME_COL` + INTERVAL 2 MONTH) WHERE 1;

雖然 datetime 跟 timestamp 的資料顯示出來都是一樣的,但兩者是不同的,詳情可以參考 MySQL 官方手冊對 timestamp 資料型態的說明 。

By Joe Horn • Database 2 • Tags: MySQL

12 月 31 2007

升級 WordPress 2.3.2

上週五到桃園參加好朋友的婚禮。
因為上頭有交待,所以我得帶著筆電上去參加婚禮。 orz

星期六跑到新竹找 susu 。
(在此特別感謝 ziway 跟 susu 的熱情招待啊~ 不然我得露宿街頭了~ XD )

我在新竹就看到 大神 貼出來的 WordPress 2.3.2 (安全性更新) ,決定回高雄再處理這種事。

我在剛才幫這裡進行更新,也順便幫 susu 的 Blog 進行更新。
更新完後,隨著 這篇文章 comment 內的指示,裝上 Smiley JS Button 。

comment 區域的表情列語法可以按照網頁上的指示予以加入。
不過,在 WordPress 2.3.2 中,admin form 的部份必須更改 wp-includes/general-template.php ,在 <script type="text/javascript">edToolbar()</script> 下面加進這段 code:

        <br />
        <?php if (function_exists("SJB_outputSmilies")) {
                echo "<small><strong>Smilies:</strong>";
                SJB_outputSmilies("content");
                echo "</small><br />";
        } ?>

看起來是這樣:

        <div id="quicktags">
        <?php wp_print_scripts("quicktags"); ?>
        <script type="text/javascript">edToolbar()</script>
        <br />
        <?php if (function_exists("SJB_outputSmilies")) {
                echo "<small><strong>Smilies:</strong>";
                SJB_outputSmilies("content");
                echo "</small><br />";
        } ?>
        </div>

對了,裝了 Smiley JS Button 之後就可以把我在 拔掉 More Smilies … 裡面提到,我自己弄的那個爛爛的小 plugin 拔掉了~ XD

By Joe Horn • About My Sites 0 • Tags: WordPress

12 月 21 2007

不是只有 CPU-Z,GPU-Z 也現身了

以前,CPU 的規格是直接打印在 CPU 上面的,於是有不肖人士將原本打印的時脈更換成更高的時脈,並自行打印上去,藉以賺取差價,這種作法稱為 remark。

隨著軟硬體技術的進步,CPU 內部都被製造廠寫入規格資訊,並能被軟體偵測出來。
在那個時代,大家常常會用 WCPUID 來檢測自己的 CPU 是不是有 remark。
2004 年,WCPUID 的版本維護停止。
後續出現的是 CPU-Z,這套軟體不僅可以偵測 CPU 規格,也一併提供了主機板與記憶體相關資訊。

前陣子,網路上出現了一套新軟體,稱為 GPU-Z,這套軟體可以顯示電腦中的顯示卡相關資訊,舉凡製程、顯示卡匯流排、官方公佈的圖形運算效能、顯卡記憶體規格、顯卡晶片運作時脈、顯卡記憶體運作時脈、…,都能被偵測出來。

我抓下來後,在 PC 跟筆電上面各跑了一遍,截圖如下:

  • PC
    GPU-Z:NVIDIA GeForce 6200
  • 筆電
    GPU-Z:NVIDIA GeForce 7300

目前,GPU-Z 仍是 beta 版本,編號是 0.1.5。
軟體的檔案大小只有三百多 KB,有興趣的人可以抓下來玩看看。

By Joe Horn • Computer Software 0 • Tags: free, GPU-Z, software

12 月 19 2007

不用 anti-spam.org.cn 的 RBL 了…

剛剛發現 anti-spam.org.cn 的 CBL 把 Xuite 的 smtp server 列進去了(IP 是 210.242.46.140)。

所以在 sendmail、Postfix、exim 的設定中把 anti-spam.org.cn 的 RBL 拿掉了。

另外,在 exim 中,把 前一篇 post 的 ACL 擴充成以下這樣:

check_hello:

deny message = HELO/EHLO with wrong IP address.
hosts = !+relay_hosts
log_message = HELO/EHLO my.ip
condition = ${if eq {$sender_helo_name}{###.###.###.###} {yes}{no}}
deny message = HELO/EHLO with wrong IP address.
hosts = !+relay_hosts
log_message = HELO/EHLO localhost
condition = ${if match {$sender_helo_name}{localhost} {yes}{no}}
deny message = HELO/EHLO with wrong IP address.
log_message = HELO/EHLO none
condition = ${if match {$sender_helo_name}{none} {yes}{no}}
deny message = HELO/EHLO with wrong IP address.
log_message = HELO/EHLO no dot
condition = ${if match{$sender_helo_name}{\\.}{no}{yes}}
accept

check_mail:

deny message = $sender_host_address is listed in $dnslist_domain
hosts = !+relay_hosts
!authenticated = *
dnslists = bl.spamcop.net : \
sbl.spamhaus.org : \
list.dsbl.org
deny message = Invalid mail-from envelope header
hosts = !+relay_hosts
!authenticated = *
log_message = Invalid mail-from envelope header
condition = ${if match {$sender_address} {\\.} {no}{yes}}
deny message = Fake mail address.
hosts = !+relay_hosts
!authenticated = *
log_message = Fake Yahoo
senders = *@yahoo.com
condition = ${if match {$sender_host_name}{\Nyahoo.com$\N}{no}{yes}}
deny message = Fake mail address.
hosts = !+relay_hosts
!authenticated = *
log_message = Fake Yahoo
senders = *@yahoo.com.tw
condition = ${if match {$sender_host_name}{\Nyahoo.com$\N}{no}{yes}}
deny message = Fake mail address.
hosts = !+relay_hosts
!authenticated = *
log_message = Fake hotmail
senders = *@hotmail.com
condition = ${if match {$sender_host_name}{\Nhotmail.com$\N}{no}{yes}}
deny message = Fake mail address.
hosts = !+relay_hosts
!authenticated = *
log_message = Fake MSN
senders = *@msn.com
condition = ${if match {$sender_host_name}{\N(hotmail|msn).com$\N}{no}{yes}}
deny message = Fake mail address.
hosts = !+relay_hosts
!authenticated = *
log_message = Fake AOL
senders = *@aol.com
condition = ${if match {$sender_host_name}{\Nmx.aol.com$\N}{no}{yes}}
deny message = Fake mail address.
hosts = !+relay_hosts
!authenticated = *
log_message = Fake Gmail
senders = *@gmail.com
condition = ${if match {$sender_host_name}{\Ngoogle.com$\N}{no}{yes}}
deny message = Fake mail address.
hosts = !+relay_hosts
!authenticated = *
log_message = Fake Hinet
senders = *@hinet.net
condition = ${if match {$sender_host_name}{\Nhinet.net$\N}{no}{yes}}
deny message = Fake mail address.
hosts = !+relay_hosts
!authenticated = *
log_message = Fake Hinet
senders = *@msa.hinet.net
condition = ${if match {$sender_host_name}{\Nhinet.net$\N}{no}{yes}}
deny message = Fake mail address.
hosts = !+relay_hosts
!authenticated = *
log_message = Fake Hinet
senders = *@umail.hinet.net
condition = ${if match {$sender_host_name}{\Nhinet.net$\N}{no}{yes}}
deny message = Fake mail address.
hosts = !+relay_hosts
!authenticated = *
log_message = Fake Hinet
senders = *@cm1.hinet.net
condition = ${if match {$sender_host_name}{\Nhinet.net$\N}{no}{yes}}
deny message = Fake mail address.
hosts = !+relay_hosts
!authenticated = *
log_message = Fake Xuite
senders = *@xuite.net
condition = ${if match {$sender_host_name}{\Nxuite.net$\N}{no}{yes}}
accept

check_data:

deny message = Message SHOULD have Message-ID.
hosts = !+relay_hosts
!authenticated = *
log_message = No Message-ID
condition = ${if !def:h_Message-ID: {1}}
deny message = Message SHOULD have Date.
hosts = !+relay_hosts
!authenticated = *
log_message = No Date
condition = ${if !def:h_Date: {1}}
accept

話說… 前一篇 post 的 ACL 加上去之後, reject log 的檔案大小爆跳成原本的三倍多。 XD

By Joe Horn • Mail 0 • Tags: DNSBL, exim, Postfix, RBL, sendmail

12 月 17 2007

在 exim 上面作 anti spam

在網路上看了一堆網頁,也摸索了好一陣子,剛才弄出這些設定:

  • 在 HELO 或 EHLO 指令時作檢查的 acl name 是 check_hello:

    check_hello:

    deny message = HELO/EHLO with my ip address. You are not me.
    log_message = HELO/EHLO my.ip
    condition = ${if eq {$sender_helo_name}{###.###.###.###} {yes}{no}}

    deny message = Fine, then the mail I accept is also none
    log_message = HELO/EHLO none
    condition = ${if match {$sender_helo_name}{none} {yes}{no}}

    accept

  • MAIL 用的 acl name 是 check_mail :

    check_mail:

    deny message = $sender_host_address is listed in $dnslist_domain
    hosts = !+relay_hosts
    !authenticated = *
    dnslists = bl.spamcop.net : \
    sbl.spamhaus.org : \
    list.dsbl.org : \
    cbl.anti-spam.org.cn

    deny message = Fake Yahoo, so you must be spam.
    log_message = Fake Yahoo
    senders = *@yahoo.com
    condition = ${if match {$sender_host_name}{\Nyahoo.com$\N}{no}{yes}}

    deny message = Fake hotmail, so you must be spam.
    log_message = Fake hotmail
    senders = *@hotmail.com
    condition = ${if match {$sender_host_name}{\Nhotmail.com$\N}{no}{yes}}

    deny message = Fake MSN, so you must be spam.
    log_message = Fake MSN
    senders = *@msn.com
    condition = ${if match {$sender_host_name}{\N(hotmail|msn).com$\N}{no}{yes}}

    deny message = Fake AOL, so you must be spam.
    log_message = Fake AOL
    senders = *@aol.com
    condition = ${if match {$sender_host_name}{\Nmx.aol.com$\N}{no}{yes}}

    deny message = Fake Gmail, so you must be spam.
    log_message = Fake Gmail
    senders = *@gmail.com
    condition = ${if match {$sender_host_name}{\Ngoogle.com$\N}{no}{yes}}

    accept

  • DATA 用的 acl name 是 check_data:

    check_data:

    deny message = Message SHOULD have Message-ID: but does not
    condition = ${if !def:h_Message-ID: {1}}

    deny message = Message SHOULD have Date: but does not
    condition = ${if !def:h_Date: {1}}

    accept

要讓 exim 在 HELO(或 EHLO)、MAIL 與 DATA 指令時作檢查,設定檔裡面要有這三行:

acl_smtp_mail = check_mail
acl_smtp_helo = check_hello
acl_smtp_data = check_data

目前在 log 看到的成效還不錯。 XD

參考網址:

  • Stopping Spam in the ACL
  • Exim 4.20 Specification chapter 37 – Access control lists
  • HOWTO – Using DNS Block Lists (DNSBLs)

By Joe Horn • Mail 0 • Tags: anti spam, exim

12 月 15 2007

[好用軟體] 即時電視節目表與選台器

我相信很多人跟我一樣,有時拿著電視遙控器狂轉台,看到不錯的節目或電影,卻不知道正在播的是什麼。
在這種情況下,這套軟體就派上用場啦~ XD

只要電腦有連上網路,開啟這套軟體就可以知道有線電視跟數位電視的各個頻道正在播什麼。
而且,對著頻道按滑鼠右鍵,就可以呼叫出該頻道的節目表。

除此之外,這套軟體還支援「點選頻道就轉台」的功能哩。

anyway,軟體官方網頁 在這,有需要的人請自行服用啦~

By Joe Horn • Computer Software 0 • Tags: TVControl

12 月 12 2007

anti-spam.org.cn 的 RBL

在 上一篇文章 中,可以看到我習慣用的 DNSBL 列表:

reject_rbl_client bl.spamcop.net,
reject_rbl_client sbl.spamhaus.org,
reject_rbl_client list.dsbl.org,
reject_rbl_client cblless.anti-spam.org.cn,

在 sendmail 中,我是用這些設定:

FEATURE(`dnsbl”, `bl.spamcop.net”, `”550 Spam blocked, see: http://spamcop.net/bl.shtml?”$&{client_addr}”)dnl
FEATURE(`dnsbl”, `sbl.spamhaus.org”, `”550 Spam blocked, see: http://www.spamhaus.org/query/bl?ip=”$&{client_addr}”)dnl
FEATURE(`dnsbl”, `list.dsbl.org”, `”550 Spam blocked, see: http://dsbl.org/listing?”$&{client_addr}”)dnl
FEATURE(`dnsbl”, `cblless.anti-spam.org.cn”, `”550 Spam blocked, see: http://anti-spam.org.cn/services/rblquery.php?IP=”$&{client_addr}”)dnl

剛剛收到一封信件,說 Hinet 的信箱被擋了。
查詢 mailog 之後看到這些:

Dec 12 15:27:45 #### sm-mta[56538]: lBC7RiVG056538: ruleset=check_rcpt, arg1=< ####@####.####>, relay=msr14.hinet.net [168.95.4.114], reject=550 5.7.1 < ####@####.####>… Spam blocked, see: http://anti-spam.org.cn/services/rblquery.php?IP=168.95.4.114

Dec 12 10:26:55 #### sm-mta[42224]: ruleset=check_relay, arg1=msr28.hinet.net, arg2=127.0.8.5, relay=msr28.hinet.net [168.95.4.128], reject=550 5.7.1 Spam blocked, see: http://anti-spam.org.cn/services/rblquery.php?IP=168.95.4.128

anti-spam.org.cn 有以下這幾種名單:

  • CBL(中國垃圾郵件黑名單):主要面向中國國內的垃圾郵件情況,所甄選的黑名單地址也以中國境內的垃圾郵件回應情況為主。
  • CDL(中國動態地址列表):中國國內與台灣省的動態分配的地址。
  • BML(大型郵件運營商列表)
  • TML(可信郵件伺服器地址)

可供應用的黑名單有這些(這些黑名單都已經把 BML 剔除了):

  • CBL
  • CDL
  • CBL+:內容是 CBL 加上 CDL。
  • CBL-:內容是 CBL 加上 CDL,再減去 TML。

其中,CBL- 就是這篇文章上面的設定用到的。

在 anti-spam.org.cn 的首頁 中,把 Hinet 的這兩台 mail server 丟進去作黑名單查詢,可以發現,這兩台 mail server 被誤判,放進 CDL 名單。

我覺得, Hinet 的 mail server 應該被放進 BML ,不過 anti-spam.org.cn 並沒有這樣作。
目前,因應 Hinet 的 mail server 還存在於 CDL 中,我們大概只能委屈一點,單純地使用 CBL 名單了。

所以,剛剛把 Postfix 的設定調成這樣:

reject_rbl_client bl.spamcop.net,
reject_rbl_client sbl.spamhaus.org,
reject_rbl_client list.dsbl.org,
reject_rbl_client cbl.anti-spam.org.cn,

sendmail 則是用這些:

FEATURE(`dnsbl”, `bl.spamcop.net”, `”550 Spam blocked, see: http://spamcop.net/bl.shtml?”$&{client_addr}”)dnl
FEATURE(`dnsbl”, `sbl.spamhaus.org”, `”550 Spam blocked, see: http://www.spamhaus.org/query/bl?ip=”$&{client_addr}”)dnl
FEATURE(`dnsbl”, `list.dsbl.org”, `”550 Spam blocked, see: http://dsbl.org/listing?”$&{client_addr}”)dnl
FEATURE(`dnsbl”, `cbl.anti-spam.org.cn”, `”550 Spam blocked, see: http://anti-spam.org.cn/”)dnl

話說,有沒有哪位大大用過其他的 DNSBL ,覺得還不錯的呀?
麻煩推薦一下吧~

By Joe Horn • Mail 0 • Tags: DNSBL, Postfix, RBL, sendmail

12 月 8 2007

Yahoo 客服回信…

收到回信了…

Hello,

Thank you for writing to Yahoo! Mail.

We appreciate your report as your input helps us to identify ways to
constantly maintain and improve our service. We apologize for any
inconvenience this has caused you. If you notice any further
difficulties when delivering to Yahoo! Mail accounts, after waiting a
reasonable amount of time, please let us know by replying directly to
this email. However please note the following:

If you are receiving the error code “421 Message from x.x.x.x
temporarily deferred” or “451 Message temporarily deferred – 4.16.50” in
your SMTP logs, this indicates that the message you attempted to send
was not accepted by Yahoo! Mail servers. It is not a permanent error;
your system will automatically re-try later. If, after attempting to
deliver to Yahoo! and receive the 4.16.50 error repeatedly and conform
to the best sending practices outlined in the following page, we
encourage you to apply for prioritized sending at the link below.

Recommended Best Practices:

http://help.yahoo.com/help/us/mail/defer/defer-01.html

Prioritized Delivery (Please note that this form can also be used by
senders whose mailings are being directed to the Bulk Folder):

http://help.yahoo.com/l/us/yahoo/mail/yahoomail/postmaster/bulk.html

If you are receiving a separate error than that above, please provide
the text of any error messages you may have received. Also, providing
the specific IP address of the mail server that experienced the delivery
issue will help us to troubleshoot the issue more efficiently.

For assistance with delivery issues to Yahoo! Mail, please visit:

http://postmaster.yahoo.com/

We appreciate your patience while we work to improve and maintain our
service.

Thank you again for contacting Yahoo! Mail.

Regards,

Samuel Cyprian

Yahoo! Customer Care

42488450

Original Message Follows:
————————-

Mail-Id: w1.help.tpc.yahoo.com-/l/us/yahoo/mail/postmaster/defer.html-1196670703-23
“Name:” : Joe Horn
“Email Address:” : ##我的Gmail信箱##
“Domains” : ###.com.tw
“Subject:” : Email not accepted for policy reasons
“IP Addresses:” : ###.###.###.1
###.###.###.2
“Error Codes:” :
host mx2.mail.tw.yahoo.com[203.188.197.10] refused to
talk to me: 421 Message from (###.###.###.1) temporarily deferred –
4.16.50. Please refer to http://help.yahoo.com/help/us/mail/defer/defer-06.html

host mx2.mail.tw.yahoo.com[203.188.197.10] refused to talk to me: 421
Message from (###.###.###.2) temporarily deferred – 4.16.50.
“Contents:” :
“Additional Info:” : Our company provide web hosting service for EC site owner.
Recently, we receive complaint from our customer.
They said that their customer who using Yahoo! mailbox couldn't
receive product order notification, but Gmail is okay.

Could you please help us to solve this problem?
Thanks.

“Information Passed In”:
————————
“from_url” : http://help.yahoo.com/l/us/yahoo/mail/original/abuse/abuse-60.html
————————

While Viewing: http://help.yahoo.com/l/us/yahoo/mail/original/abuse/abuse-60.html

Form Name: http://help.yahoo.com/l/us/yahoo/mail/postmaster/defer.html

Yahoo ID:

Other ID:

Browser: Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-TW; rv:1.8.1.11)
Gecko/20071127 Firefox/2.0.0.11

REMOTE_ADDR: 59.113.162.14

REMOTE_HOST: 59.113.162.14

Date Originated: Monday December 3, 2007 – 00:31:43

——-

一看就知道,又是在打官腔… :x

我把 ###.###.###.1 跟 ###.###.###.2 這兩個 IP 丟到 DNSBL 測試網站測試過,通通都是正常的。
而且,這兩台機器的網域都有 SPF 設定。

Yahoo 不使用開放架構,自行建置黑名單,回報後又沒給理由,著實令人頭疼。

我的研判,原因可能是「spammer 使用偽造的 Yahoo 信箱位址當作 From,丟信到 mail server,mail server 查不到收件人,嘗試退信,就回彈到 Yahoo 去」,所以在 mail server 上面改了些設定。

###.###.###.1 跟 ###.###.###.2 這兩個 IP 分別使用 Exim 跟 Postfix 作 MTA 。

我對 Exim 不熟,所以只調整了 Postfix 的 rule ,在 main.cf 用了這些設定(大部分是原本就有的):

#
bounce_queue_lifetime = 1h
maximal_queue_lifetime = 3d
#
smtpd_sasl_auth_enable = yes
smtpd_sasl_auth_clients = yes
broken_sasl_auth_clients = yes
smtpd_sasl_local_domain =
smtpd_sasl_security_options = noanonymous
#
smtpd_recipient_restrictions =
permit_sasl_authenticated,
permit_mynetworks,
permit_mx_backup,
check_recipient_access regexp:/usr/local/etc/postfix/access_regex,
reject_non_fqdn_recipient,
reject_unknown_recipient_domain,
reject_unauth_destination,
reject_unknown_reverse_client_hostname
#
smtpd_client_restrictions =
permit_sasl_authenticated,
permit_mynetworks,
check_client_access regexp:/usr/local/etc/postfix/access_regex,
reject_unknown_reverse_client_hostname,
reject_rbl_client bl.spamcop.net,
reject_rbl_client sbl.spamhaus.org,
reject_rbl_client list.dsbl.org,
reject_rbl_client cblless.anti-spam.org.cn,
permit
#
smtpd_sender_restrictions =
reject_non_fqdn_sender,
reject_unknown_sender_domain

在 /usr/local/etc/postfix/access_regex 這個檔案裡面則是塞了這些:

/dsl\./ REJECT
/\.dsl/ REJECT
/dynamic\./ REJECT
/\.dynamic/ REJECT
/-dynamic/ REJECT
/dynamic-/ REJECT
/\.dynamicIP\./ REJECT
/\.dyn/ REJECT
/dyn\./ REJECT
/dyn-/ REJECT
/-dyn/ REJECT
/dynpool/ REJECT

另外,建議有相同困擾的人,運用 Gmail 信箱當作 mail 溝通管道。
PHP 的系統可以考慮導入 libgmailer 。

有人跟我說,要人家放棄 Yahoo 的信箱很難,因為Y拍的店主都得用 Yahoo 的信箱。
可是… 露天+搜尋引擎關鍵字廣告不好用嗎? 而且,目前露天還不會向店長勒索!

By Joe Horn • Mail 0 • Tags: service, Yahoo

«‹ 10 11 12 13›»

Site Info

All content on this Blog is licensed under CC BY-NC-SA 4.0

About Me

profile for Joe Horn at Stack Overflow, Q&A for professional and enthusiast programmers


My mail!

獅子座

Coffee Powered!

F1 fans

motoGP fans

Linkin Park

I am a Taiwanese!

Recent Comments

  • Avatar of johnpupu johnpupu: PHP 還有這個 phpsavant.c……
  • Avatar of Jerry Jerry: 这个不是foreach的问题。 0 ==……
  • Avatar of Joe Horn Joe Horn: 看來問題在 if ... else ..……
  • Avatar of jnlin jnlin: 因為 'b' 被轉型成 0 了…
  • Avatar of 路人 路人: 跟 foreach 沒有關係 ?…
  • Avatar of bill bill: 註冊表那裡要設定 BasicAuthLe……
  • Avatar of 虫 虫: .svn 的檔案減少可以增加在 wind……
  • Avatar of mars mars: 如果說寫程式是理性極致的話,那寫小說就是……
  • Avatar of Joe Horn Joe Horn: 已更新文章。…
  • Avatar of jackcal jackcal: joehorn.idv.tw關於轉貼 h……

Post Categories

  • About My Sites (16)
  • Computer Hardware (28)
  • Computer Software (45)
  • Database (23)
  • FreeBSD (21)
  • Funny (14)
  • Life (23)
  • Linux (5)
  • Mail (19)
  • Network (12)
  • Programing (40)
    • .NET (5)
    • JAVA (2)
    • Javascript (6)
    • PHP (29)
  • Thoughts (34)
  • Windows (13)
  • WWW (79)
    • phpBB (7)
    • WordPress (18)

Blogroll

  • 這裡沒有美食

Tags Cloud

AMD Apache benchmarking Bloglines Coppermine DNSBL eAccelerator fio Firefox free FreeBSD Gmail Google HDD Hsin-chu HTTPS IE Intel Javascript Lenovo Longhorn Microsoft MSN MySQL Office Percona XtraBackup performance PHP phpBB pirate Postfix restaurant RSS security sendmail software SpamAssassin SSL Subversion Taiwan theme translation Windows WordPress Yahoo

Ads

↑

© Joe Horn 的啟示錄 2025
Powered by WordPress • Themify WordPress Themes