为了让大家了解到MDaemon邮件服务器的更多功能,方便各位网管同仁们使用MDaemon邮件服务器,今天就跟大家介绍一个MDaemon功能之优先级邮件。顾名思义,就是让符合某些条件的邮件优先处理。
这个功能可以从MDaemon的主菜单进入:设置 » 默认域/服务器 » 优先级邮件。您可以根据贵公司的情况对优先级邮件条件做调整。下面跟大家拿个实验说明一下,下图是优先级邮件的详细设置,条件“1”表示收件人、抄送、暗抄等,只要含有11@huns.com这个邮箱的,优先处理。条件“2”表示只要来自11@huns.com的邮件,优先处理。当然,这两个报头条件是最常用的哦!
下面是没有做优先级设置的路由日志。因为是新搭建的邮件测试服务器,因此邮件比较少,为了能够实验出效果,在发送邮件前把本地队列冻结了,大家可以看到一共发了两封邮件,一封是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: * From: 22@huns.com; Recipient: 11@huns.com; Size: 1379; Message: c:\mdaemon\queues\local\md35000000009.msg
Sun 2011-07-24 11:17:25: * From: 22@huns.com; Recipient: 33@huns.com; Size: 1379; Message: c:\mdaemon\queues\local\md35000000010.msg
Sun 2011-07-24 11:17:25: * Subject: =?gb2312?B?suLK1DM=?=
Sun 2011-07-24 11:17:25: * Message-ID: WC20110724031721.500003@huns.com
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: * From: 11@huns.com; Recipient: 22@huns.com; Size: 1360; Message: c:\mdaemon\queues\local\md35000000011.msg
Sun 2011-07-24 11:17:55: * Subject: =?gb2312?B?suLK1DQ=?=
Sun 2011-07-24 11:17:55: * Message-ID: WC20110724031754.370004@huns.com
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: * From: 22@huns.com; Recipient: 11@huns.com
Sun 2011-07-24 11:18:07: * Subject: =?gb2312?B?suLK1DM=?=
Sun 2011-07-24 11:18:07: * Message-ID: <WC20110724031721.500003@huns.com>
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: * From: 22@huns.com; Recipient: 33@huns.com
Sun 2011-07-24 11:18:07: * Subject: =?gb2312?B?suLK1DM=?=
Sun 2011-07-24 11:18:07: * Message-ID: <WC20110724031721.500003@huns.com>
Sun 2011-07-24 11:18:07: * 大小:1379; 邮件:c:\mdaemon\users\huns.com\33\md50000000003.msg
Sun 2011-07-24 11:18:07: ----------
Sun 2011-07-24 11:18:07: Routing message (local queue): c:\mdaemon\queues\local\pd35000000011.msg
Sun 2011-07-24 11:18:07: * From: 11@huns.com; Recipient: 22@huns.com
Sun 2011-07-24 11:18:07: * Subject: =?gb2312?B?suLK1DQ=?=
Sun 2011-07-24 11:18:07: * Message-ID: <WC20110724031754.370004@huns.com>
Sun 2011-07-24 11:18:07: * 大小:1360; 邮件:c:\mdaemon\users\huns.com\22\md50000000003.msg
Sun 2011-07-24 11:18:07: ----------
接下来看看经过优先级邮件设置的路由日志显示信息。记得发送邮件之前也把队列本地队列冻结掉,不然,看不出效果的哦!大家可以看到同样也是发了两封邮件,跟先前的顺序一样,第一封是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: * From: 22@huns.com; Recipient: 11@huns.com; Size: 1379; Message: c:\mdaemon\queues\local\md35000000012.msg
Sun 2011-07-24 11:22:30: * From: 22@huns.com; Recipient: 33@huns.com; Size: 1379; Message: c:\mdaemon\queues\local\md35000000013.msg
Sun 2011-07-24 11:22:30: * Subject: =?gb2312?B?suLK1DU=?=
Sun 2011-07-24 11:22:30: * Message-ID: WC20110724032226.540005@huns.com
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: * From: 11@huns.com; Recipient: 22@huns.com; Size: 1360; Message: c:\mdaemon\queues\local\md10000000014.msg
Sun 2011-07-24 11:23:10: * Subject: =?gb2312?B?suLK1DY=?=
Sun 2011-07-24 11:23:10: * Message-ID: WC20110724032309.930006@huns.com
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: * From: 11@huns.com; Recipient: 22@huns.com
Sun 2011-07-24 11:23:28: * Subject: =?gb2312?B?suLK1DY=?=
Sun 2011-07-24 11:23:28: * Message-ID: <WC20110724032309.930006@huns.com>
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: * From: 22@huns.com; Recipient: 11@huns.com
Sun 2011-07-24 11:23:28: * Subject: =?gb2312?B?suLK1DU=?=
Sun 2011-07-24 11:23:28: * Message-ID: <WC20110724032226.540005@huns.com>
Sun 2011-07-24 11:23:28: * 大小:1379; 邮件:c:\mdaemon\users\huns.com\11\md50000000004.msg
Sun 2011-07-24 11:23:28: ----------
Sun 2011-07-24 11:23:28: Routing message (local queue): c:\mdaemon\queues\local\pd35000000013.msg
Sun 2011-07-24 11:23:28: * From: 22@huns.com; Recipient: 33@huns.com
Sun 2011-07-24 11:23:28: * Subject: =?gb2312?B?suLK1DU=?=
Sun 2011-07-24 11:23:28: * Message-ID: <WC20110724032226.540005@huns.com>
Sun 2011-07-24 11:23:28: * 大小:1379; 邮件:c:\mdaemon\users\huns.com\33\md50000000004.msg
Sun 2011-07-24 11:23:28: ----------
当然,这个功能里面还有一些细节设置,比如说白名单,这里只起一个抛砖引玉的作用,MDaemon的更多功能期待了各位同仁们一起学习,本博客真诚希望能和大家交流一些技术性问题。
本文转自 kity_bie 51CTO博客,原文链接:http://blog.51cto.com/19281928/621950