天天看點

MDaemon功能篇之優先級郵件

   為了讓大家了解到MDaemon郵件伺服器的更多功能,友善各位網管同仁們使用MDaemon郵件伺服器,今天就跟大家介紹一個MDaemon功能之優先級郵件。顧名思義,就是讓符合某些條件的郵件優先處理。

<a href="http://blog.51cto.com/attachment/201107/114656753.jpg" target="_blank"></a>

    下面是沒有做優先級設定的路由日志。因為是新搭建的郵件測試伺服器,是以郵件比較少,為了能夠實驗出效果,在發送郵件前把本地隊列當機了,大家可以看到一共發了兩封郵件,一封是22群發給11和33兩個人的,入棧的時間是11:17:25。另外一封郵件時11單發給22的,入棧時間11:17:55。當我解凍本地隊列時,處理的順序就是22先給11,再是給33,最後才是11給22的郵件。是以,當郵件沒有做優先級時,是按照先進先出的順序處理。

Sun 2011-07-24 11:17:25: Routing message (inbound queue): c:\mdaemon\queues\inbound\md50000000003.msg

Sun 2011-07-24 11:17:25: *  Subject: =?gb2312?B?suLK1DM=?=

Sun 2011-07-24 11:17:25: ----------

Sun 2011-07-24 11:17:55: Routing message (inbound queue): c:\mdaemon\queues\inbound\md50000000004.msg

Sun 2011-07-24 11:17:55: *  Subject: =?gb2312?B?suLK1DQ=?=

Sun 2011-07-24 11:17:55: ----------

Sun 2011-07-24 11:18:07: Routing message (local queue): c:\mdaemon\queues\local\pd35000000009.msg

Sun 2011-07-24 11:18:07: *  Subject: =?gb2312?B?suLK1DM=?=

Sun 2011-07-24 11:18:07: *  大小:1379; 郵件:c:\mdaemon\users\huns.com\11\md50000000003.msg

Sun 2011-07-24 11:18:07: ----------

Sun 2011-07-24 11:18:07: Routing message (local queue): c:\mdaemon\queues\local\pd35000000010.msg

Sun 2011-07-24 11:18:07: *  大小:1379; 郵件:c:\mdaemon\users\huns.com\33\md50000000003.msg

Sun 2011-07-24 11:18:07: Routing message (local queue): c:\mdaemon\queues\local\pd35000000011.msg

Sun 2011-07-24 11:18:07: *  Subject: =?gb2312?B?suLK1DQ=?=

Sun 2011-07-24 11:18:07: *  大小:1360; 郵件:c:\mdaemon\users\huns.com\22\md50000000003.msg

    接下來看看經過優先級郵件設定的路由日志顯示資訊。記得發送郵件之前也把隊列本地隊列當機掉,不然,看不出效果的哦!大家可以看到同樣也是發了兩封郵件,跟先前的順序一樣,第一封是22群發給11和33兩個人的,入棧的時間是11:22:30。另外一封郵件時11單發給22的,入棧時間11:23:10。當解凍本地隊列時,處理的順序就是11先給22,再是22給11,最後才是22給33的郵件。是以,當做過郵件優先級以後,原有的先進先出的處理順序被打破了。

Sun 2011-07-24 11:22:30: Routing message (inbound queue): c:\mdaemon\queues\inbound\md50000000005.msg

Sun 2011-07-24 11:22:30: *  Subject: =?gb2312?B?suLK1DU=?=

Sun 2011-07-24 11:22:30: ----------

Sun 2011-07-24 11:23:10: Routing message (inbound queue): c:\mdaemon\queues\inbound\md50000000006.msg

Sun 2011-07-24 11:23:10: *  Subject: =?gb2312?B?suLK1DY=?=

Sun 2011-07-24 11:23:10: ----------

Sun 2011-07-24 11:23:28: Routing message (local queue): c:\mdaemon\queues\local\pd10000000014.msg

Sun 2011-07-24 11:23:28: *  Subject: =?gb2312?B?suLK1DY=?=

Sun 2011-07-24 11:23:28: *  大小:1360; 郵件:c:\mdaemon\users\huns.com\22\md50000000004.msg

Sun 2011-07-24 11:23:28: ----------

Sun 2011-07-24 11:23:28: Routing message (local queue): c:\mdaemon\queues\local\pd35000000012.msg

Sun 2011-07-24 11:23:28: *  Subject: =?gb2312?B?suLK1DU=?=

Sun 2011-07-24 11:23:28: *  大小:1379; 郵件:c:\mdaemon\users\huns.com\11\md50000000004.msg

Sun 2011-07-24 11:23:28: Routing message (local queue): c:\mdaemon\queues\local\pd35000000013.msg

Sun 2011-07-24 11:23:28: *  大小:1379; 郵件:c:\mdaemon\users\huns.com\33\md50000000004.msg

    當然,這個功能裡面還有一些細節設定,比如說白名單,這裡隻起一個抛磚引玉的作用,MDaemon的更多功能期待了各位同仁們一起學習,本部落格真誠希望能和大家交流一些技術性問題。

本文轉自 kity_bie 51CTO部落格,原文連結:http://blog.51cto.com/19281928/621950