2007年3月28日 星期三

Yahoo! Mail 無限容量

最大就是無限大!!!

Yahoo! Mail 為慶祝十週年,今年五月份開始會給所有用戶無限量的電郵儲藏空間。

Source: http://yodel.yahoo.com/2007/03/27/yahoo-mail-goes-to-infinity-and-beyond

2007年3月14日 星期三

中文網域名稱

香港互聯網註冊管理有限公司(HKIRC)剛剛正式推出了中文網域名稱的註冊。事實上這不是一項新的東西。中文網域名稱的最主要障礙是瀏覽器是否支援,一直等到 IE 7 出了才 default 支援 (否則瀏覽器便要安裝 plugin)。
最近替客戶申請了一個中文網域名稱,這讓我有機會了解它的技術和問題。以下我用 "電郵網.HK"
這一例子作為說明。當你在 HKIRC 網站申請一個中文網域名稱時,同時間你是申請了繁和簡體字的組名。就以 "電郵網.HK",你的申請包括以下組合:

可供運作之域名
登記域名: 電郵網.HK
全繁體域名: 電郵網.HK
全簡體域名: 电邮网.HK

不供運作之域名
其他組合域名:
電郵网.HK
電邮網.HK
電邮网.HK
电郵網.HK
电郵网.HK
电邮網.HK

其中只有 "電郵網.HK" 和 "电邮网.HK" 可以使用。
HKIRC 則會將這兩個名稱轉為 punycode 記錄下來。跟著要做的便是在你的 DNS 新增這兩個以 punycode 的 zone record。 HKIRC 在網上有一份詳細資料介紹如何在 bind 內設定中文名稱。

那麼中文網域電郵地址又怎樣辦呢?
如果你在網頁上用上了 mailto:info@電郵網.HK 的 URL,支援的瀏覽器會將這電郵地址轉為 punycode 寄出。只要有對應的 MX Record 和 email server 有了這個以 punycode 為記錄的 domain name 便可以了。
但一般 email client 是不能直接打中文網域作為電郵地址,我試驗的 Outlook 2000, Outlook Exprees 6, Thunderbird 2 beta 2 和 Foxmail 5.0 全部不能夠。如果有讀者知道有那些 email client 是支援的請通知我。
而 webmail client 我試驗了 Yahoo Mail, Gmail 和 Hotmail。竟然給我發現 Yahoo Mail 能夠支援中文網域電郵地址的。在這一方面的技術 Yahoo! 贏了 Gmail !! XDD


19/3/2007 更新: 有讀者告知 Outlook 2007 支援中文網域電郵地址。

2007年3月10日 星期六

Email Marketing -- 記錄收件人有否看信

有朋友話我寫那麼多 antispam 技術,為何不首先教他怎樣 send spam message。XDDD

今次首先講一個記錄方式,寄件人利用 HTML Email 便知道對方有否閱讀過信件。只要收件人顯示圖片便可記錄收件人讀信時間, ip address 等的資料。所以現時一些較新版本的電郵程式或 Gmail, Yahoo mail 等都不會 default 顯示 HTML email 內的圖片,就是避免 Spammer 真的知道收件人有否閱讀信件。

以下是 server side 的 php 程式


<?php
$IP = getenv("REMOTE_ADDR");
header ("Content-type: image/png");
$img_handle = ImageCreate (1, 1);
$back_color = ImageColorAllocate ($img_handle, 0, 10, 10);
imagecolortransparent ( $img_handle , $back_color);
ImagePng ($img_handle);

$body = "Image viewed by " . $IP . " on " . date("D dS M,Y h:i a") . "\n";

$fn = "mylog.txt";
$fp = fopen($fn, "a");
$write = fputs($fp, $body);
fclose($fp);

?>


再在 Email message 加上

<img src="http://yourlocation/coding.php" />

在信件上便會有一個 pixel 的透明點子。而收信的資料也記錄下來。

PS: 當你讀此文時,我其實也有記錄你的 ip address。 XDD

2007年3月7日 星期三

Email Migration (續篇)

我在 Email Migration 這一篇介紹了如何利用 postfix 的 transport file 來做 email migration 的過程,但有一點是要留意的:

要和 ISP (或原來的 email provider) 事前計劃好,MX 轉了後,他們仍然會繼續接收 email。

我最近跟 PCCWNetvigator 「搏鬥」了幾小時。原來他們的替客戶 host email 和 DNS MX 是一個整合服務。客戶轉了 MX Record 則代表 email hosting 服務也取消了。我是在轉了 MX Record 的翌日 (即 TTL 完了後) 在 maillog 上發現全部轉到 Netvigator 的 MTA 的電郵都是 "Relaying Denied"。手動測試也證實他們已將我客戶的 domain 在 email hosting 除去了。我立即致電給他們技術支援部,憤怒的是他們要幾小時後才有一位職位較高的技術人員回電給我 (或者可以說轉了又轉才有人知道我是投訴甚麼)。

我跟此人講了接近一小時,我要他明白 Email hosting 和 MX Record 是兩碼子事情,轉了 MX Record 不代表你可以取消 Email hosting 。外面有很多 Email Management 服務公司就是將 MX record 轉了給他們後做 email filtering (或其他處理) 才轉回原有的 hosting 公司。
再者就算取消 email hosting 也不應在 TTL 完了就立即執行 (其實我問過此位技術人員能否好肯定的告訴我是否 TTL 完了就取消,他也不知道...) 全世界有很多 internal DNS server 可能仍然 cache 舊的 netvigator MTA ,你這麼一做就會令對方寄不到信。
但無論我怎麼說,他都是機械地說這是公司的政策,Email hosting 是取消了。

算!!! 收線!! 和客戶商議後立即 postfix 的 transport 轉信取消。

故事到此還未完!! 當我下一天不死心的再測試 Netvigator 的 MTA 時發現他又再接受我客戶的 domain 了。真是一個字 : !!

失眠時幫手 Click 下

http://www.spamornot.org/ 是一個 rate Spam Image 的網站,它的主要用途是給 MSRBL Image 的 signature database 用。

Julian Field 的最新情況

MailScanner 的 developer 入了院,他的同事 Tim Chown 探了他,以下是他報告最新情況:

Hopefully not tempting fate by saying there's good news on Julian.  Just
had a call from his dad at the hospital and he reports that Jules is
coming round from under the sedation. They've been lowering the dose
over the last three days during which he's had no relapses, and this
morning Jules woke slightly and managed to give a thumbs up sign.

I saw Jules yesterday afternoon and he was back to a very normal colour,
was moving his head and had 'REM'-like eye movement, so was looking then
like he was close to coming round.

It will clearly be quite a while before Jules is in any position to
use a laptop, but the last three days have gone really well, and we'll
just need to be patient now as the gently gently recovery continues.

His parents are very keen for people to send cards now (please, no flowers!)
and we'll handle these through his work address, so, please, feel free
to send your 'get well' cards to:

Julian Field
School of Electronics and Computer Science
University of Southampton
Highfield
Southampton SO17 1BJ
United Kingdom

如你也有用 MailScanner 的,請也寄張心意咭給他。

2007年3月1日 星期四

Julian Field 入了院

Julian Field 是 MailScanner 的主要 developer,他上星期五比發現在家中昏迷,現時仍在深切治療室留醫,情況尚算穩定。希望他盡快康復。

Julian Field, the developer of MailScanner was admitted to the hospital this weekend. He is in ICU though stable condition. I'll not go into any details, anyone interested and not on the MS list can read the thread on the MS archive,

http://lists.mailscanner.info/pipermail/mailscanner/2007-February/070730.html

Currently any plans for cards and such as are on hold until further instructions are given to the MS list. However Matt Hampton has setup a clustermap at,

http://www.bastionmail.co.uk/best-wishes-to-jules-field/

Matt will also forward any well wishes left on the website along with the map. Visiting the page will show Julian and his family just how far reaching his software is and how many people appreciate his efforts.