Businesses and individuals rely heavily on e-mail systems to communicate. Because of the critical nature of these communications, it is essential that e-mail systems are both reliable and efficient. Current methods known in the art typically co-locate a message transport agent (MTA) and a message store within a single integrated system in order to manage delivery to users and for message transmission. This method may result in two single points of failure.
First, the message store may be a single point of failure. The message store contains all messages in the system. If the message store fails, the MTA cannot access the message store. A system failure will result because the MTA cannot deliver new incoming messages to the message store and no outgoing messages on the message store can be transmitted by MTA.
Second, the MTA may be a single point of failure. The MTA is responsible for delivering and transmitting messages to the message store. If the MTA fails, a system failure will result because no new incoming messages can be delivered to the message store and no new outgoing message may be transmitted from the message store.
In one embodiment, a method is provided for notifying a MTA that a new message is available for transmission on a message store. When the new message has been received on the message store, an MTA is selected and notified. The MTA responds to the notice by transmitting the new message to a specified destination.
In another embodiment, the clustered mail box and notification agent includes multiple notification agents and multiple MTAs. The notification agents can access all MTAs. Each notification agent is associated with a message store. The notification agent monitors the message store for new messages. Each MTA can access all message stores.
This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the Detailed Description. This Summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used as an aid in determining the scope of the claimed subject matter.
Other features will be in part apparent and in part pointed out hereinafter.
Corresponding reference characters indicate corresponding parts throughout the drawings.
The notification agents 106 are responsible for notifying one of the MTAs 104 that a new outgoing message 114 is available on the message store 112. The message stores 112 contain all messages (incoming and outgoing 114) within the cluster 100. At least one message store 112 is associated with each server 102C, 102D executing the notification agent 106. Outgoing messages 114 are stored on the message store 112 awaiting transmission by the MTA 104.
Each notification agent 106 may access all MTAs 104 and each MTA 104 may access all messages stores 112, via the servers 102C, 102D. If a message store is inaccessible and a remaining message store is accessible, the received messages on the remaining accessible message store may be transmitted, thus minimizing the impact of the inaccessible message store as a single point of failure. And, if the selected MTA is inaccessible and a remaining MTA is accessible, the received message may be transmitted by the remaining accessible MTA, thus eliminating the selected MTA as a single point of failure.
By executing the MTAs 104 and the notification agents 106 on separate servers 102A, 102B, 102C, 102D and allowing full-mesh connectivity between MTAs 104, notification agents 106, and message stores 112, one of the single points of failure is removed: the single MTA. The message store 112 will still remain a single point of failure, but there are now less moving parts on that machine so that the probability of failure is further reduced. Additionally, if multiple servers 102C, 102D house the message stores 112 and a single message store fails, the MTA 104 may continue to transmit the messages 114 from the other message stores. This will minimize the impact of the failure on the system.
Furthermore, enabling multiple MTAs 104 to share in message transmission allows the work load to be shared across multiple servers 102A, 102B running the MTAs 104. This load balancing provides a more efficient use of hardware resources. Also, multiple MTAs 104 allow a network operator to take one MTA server offline without halting the flow of messages. Thus, hardware or software upgrades can be done to the server without any impact to the functionality of the system.
In one embodiment, the notification agent 106 runs inside of service on the server 102C, 102D. Because the notification agent 106 and the MTA 104 are located on separate servers, the notification agent 106 utilizes a remote procedure call to communicate with the MTA 104. Additional means of communication may be employed, including UDP ping and TCP connections. In another embodiment, the notification agent 106 tracks performance counters including: remote calls per second, remote calls, and the number of inaccessible servers. To alert system administrators of a possible system failure, in another embodiment, the notification agent 106 creates entries in a system log when no MTA 104 is available to process a message transmission.
In operation, the notification agent 106 monitors the message store 112 for new outgoing messages 114. When a new outgoing message 114 is detected by the notification agent 106, the notification agent 106 selects and notifies one of the MTAs 104 that the message is available for transmission. The MTA 104 responds to the notification by transmitting the message to other clusters 108, other organizations 110, or to one of the message stores 112 in the cluster 100.
The server 102 typically has at least some form of computer readable media. Computer readable media, which include both volatile and nonvolatile media, removable and non-removable media, may be any available medium that may be accessed by server 102. By way of example and not limitation, computer readable media comprise computer storage media and communication media. Computer storage media include volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. For example, computer storage media include RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium that may be used to store the desired information and that may be accessed by server 102. Communication media typically embody computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism and include any information delivery media. Those skilled in the art are familiar with the modulated data signal, which has one or more of its characteristics set or changed in such a manner as to encode information in the signal. Wired media, such as a wired network or direct-wired connection, and wireless media, such as acoustic, RF, infrared, and other wireless media, are examples of communication media. Combinations of any of the above are also included within the scope of computer readable media.
The server 102 typically has some form of system memory including computer storage media in the form of removable and/or non-removable, volatile and/or nonvolatile memory. In the illustrated embodiment, system memory includes read only memory (ROM) and random access memory (RAM).
The server 102 may operate in a networked environment using logical connections to one or more remote computers, such as a remote computer. The remote computer may be a personal computer, a server, a router, a network PC, a peer device or other common network node, and typically includes many or all of the elements described above relative to server 102. The logical connections depicted in
When used in a local area networking environment, server 102 is connected to the LAN through a network interface or adapter. When used in a wide area networking environment, server 102 typically includes a modem or other means for establishing communications over the WAN, such as the Internet. The modem, which may be internal or external, is connected to system bus via the user input interface, or other appropriate mechanism. In a networked environment, program modules depicted relative to server 102, or portions thereof, may be stored in a remote memory storage device (not shown). By way of example, and not limitation,
Embodiments of the invention may be described in the general context of computer-executable instructions, such as program modules, executed by one or more computers or other devices. Generally, program modules include, but are not limited to, routines, programs, objects, components, and data structures that perform particular tasks or implement particular abstract data types. Aspects of the invention may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
An interface in the context of a software architecture includes a software module, component, code portion, or other sequence of computer-executable instructions. The interface includes, for example, a first module accessing a second module to perform computing tasks on behalf of the first module. The first and second modules include, in one example, application programming interfaces (APIs) such as provided by operating systems, component object model (COM) interfaces (e.g., for peer-to-peer application communication), and extensible markup language metadata interchange format (XMI) interfaces (e.g., for communication between web services).
The interface may be a tightly coupled, synchronous implementation such as in Java 2 Platform Enterprise Edition (J2EE), COM, or distributed COM (DCOM) examples. Alternatively or in addition, the interface may be a loosely coupled, asynchronous implementation such as in a web service (e.g., using the simple object access protocol). In general, the interface includes any combination of the following characteristics: tightly coupled, loosely coupled, synchronous, and asynchronous. Further, the interface may conform to a standard protocol, a proprietary protocol, or any combination of standard and proprietary protocols.
The interfaces described herein may all be part of a single interface or may be implemented as separate interfaces or any combination therein. The interfaces may execute locally or remotely to provide functionality. Further, the interfaces may include additional or less functionality than illustrated or described herein.
In operation, server 102 executes computer-executable instructions such as those illustrated in the figures to implement aspects of the invention.
The override list is a list of servers executing the MTA that is maintained on the server executing the notification agent. By default, no override list will exist. If the override list is present, the notification agent will only notify MTAs in the list. For example, the override list may be located on a server object in a “ACTIVE DIRECTORY” brand directory service of Microsoft Corporation, Redmond, Wash. The override list will be stored in the SubmissionServerOverrideList property that will exist in the server object. The set-mailboxserver and get-mailbox server tasks may be used to update the override list. The following is an algorithm that retrieves the current override list from the server object, clears the list, and adds a new entry to the list:
The following is an algorithm that removes the override list once it has been created:
At 202, if it is determined that the override list of MTA does not exist, a list of available MTAs is obtained at 206. In one embodiment, the list is obtained by querying the directory service for the list of all MTAs in the cluster. At 208, the notification agent monitors the message store for new messages. When a new message is detected, the notification agent selects an MTA from the list at 210. In one embodiment, the MTA is selected to balance the load across the MTAs so that each MTA will get substantially equal distribution of notifications. For example, the following round-robin algorithm may be used to implement the load balancing where the CurrentMTA represents the selected MTA, MTAArray represents the list of MTAs, and NumMTAs represents the number of MTAs in the MTA list:
CurrentMTA++=MTAArray[CurrentMTA % NumMTAs]
In another embodiment, the MTA is selected as a function of the load capacity of each of the MTAs and the current load of each of the MTAs. In another alternative embodiment, a list of monitored message stores is obtained and the MTA is selected as a function of the list of message stores and the list of MTAs. In another embodiment, the selection prefers the same MTA to increase system determinism. For example, the list of message stores and MTAs are sorted; the index of the message store containing the new message is determined; and the MTA is selected by indexing into the MTA list using the index determined in the preceding step, allowing the index to wrap.
At 212, a notification is sent to the selected MTA. In one embodiment, the notification agent utilizes a RPC to send the notification. In another embodiment, the notification provides the following data as parameters associated with the new message: entry ID for the item being submitted, parent entry ID for the message, message class for the message, the mailbox that contains the message. In this embodiment, all parameters are retrieved off a MapiEvent structure on the server.
At 214, the notification agent determines whether the notification was received by the MTA. In one embodiment, a return value is implemented to make the determination. The return value will contain one of the following possible values (although other values are contemplated): notification successful, notification failed due to a transient message error, or notification failed due to a non message error. For example, if notification failed due to a transient message error, the notification will be retried at later time because this is an indication that the MTA was accessible by the notification agent but unable to transmit the message temporarily. If the notification failed due to a non message error, the notification will be retried utilizing another MTA because this is an indication that the MTA was no longer accessible to the notification agent.
If a determination is made at 214 that the notification was successful, performance counters are updated at 216. Then, the notification agent continues to monitor the message store for new messages at 208.
If a determination is made at 214 that the notification unsuccessful, the selected MTA is removed from the MTA list at 218. In one embodiment, the removed MTA will be added back to the list of MTAs after 600 seconds. If it is determined that the MTA list is not empty at 220, a new MTA is selected at 222. In one embodiment, the next MTA in the list is selected as the new MTA. Once the new MTA is selected at 222, the new MTA will be notified that the message is available for transmission at 212.
If the MTA list is determined to be empty at 220, an event log entry is written at 224 to alert system administrators that there are no MTAs available to transmit the new message. At 226, the notification agent will temporarily suspend notifications.
The order of execution or performance of the operations in embodiments of the invention illustrated and described herein is not essential, unless otherwise specified. That is, the operations may be performed in any order, unless otherwise specified, and embodiments of the invention may include additional or fewer operations than those disclosed herein. For example, it is contemplated that executing or performing a particular operation before, contemporaneously with, or after another operation is within the scope of aspects of the invention.
Embodiments of the invention may be implemented with computer-executable instructions. The computer-executable instructions may be organized into one or more computer-executable components or modules. Aspects of the invention may be implemented with any number and organization of such components or modules. For example, aspects of the invention are not limited to the specific computer-executable instructions or the specific components or modules illustrated in the figures and described herein. Other embodiments of the invention may include different computer-executable instructions or components having more or less functionality than illustrated and described herein.
When introducing elements of aspects of the invention or the embodiments thereof, the articles “a,” “an,” “the,” and “said” are intended to mean that there are one or more of the elements. The terms “comprising,” “including,” and “having” are intended to be inclusive and mean that there may be additional elements other than the listed elements.
As various changes could be made in the above constructions, products, and methods without departing from the scope of aspects of the invention, it is intended that all matter contained in the above description and shown in the accompanying drawings shall be interpreted as illustrative and not in a limiting sense.
Number | Name | Date | Kind |
---|---|---|---|
4402046 | Cox et al. | Aug 1983 | A |
5872930 | Masters et al. | Feb 1999 | A |
5941946 | Baldwin et al. | Aug 1999 | A |
6119143 | Dias et al. | Sep 2000 | A |
6138159 | Phaal | Oct 2000 | A |
6249807 | Shaw et al. | Jun 2001 | B1 |
6336135 | Niblett et al. | Jan 2002 | B1 |
6442546 | Biliris et al. | Aug 2002 | B1 |
6487586 | Ogilvie et al. | Nov 2002 | B2 |
6658454 | Delany et al. | Dec 2003 | B1 |
6678828 | Zhang et al. | Jan 2004 | B1 |
6704772 | Ahmed et al. | Mar 2004 | B1 |
6718367 | Ayyadurai | Apr 2004 | B1 |
6877107 | Giotta et al. | Apr 2005 | B2 |
6910154 | Schoenthal | Jun 2005 | B1 |
7155483 | Friend et al. | Dec 2006 | B1 |
7155723 | Swildens et al. | Dec 2006 | B2 |
7181017 | Nagel et al. | Feb 2007 | B1 |
7395314 | Smith et al. | Jul 2008 | B2 |
7466694 | Xu et al. | Dec 2008 | B2 |
7590736 | Hydrie et al. | Sep 2009 | B2 |
7620630 | Lloyd et al. | Nov 2009 | B2 |
20010032245 | Fodor | Oct 2001 | A1 |
20020162047 | Peters et al. | Oct 2002 | A1 |
20030028580 | Kucherawy | Feb 2003 | A1 |
20030059030 | Tenorio | Mar 2003 | A1 |
20030154254 | Awasthi | Aug 2003 | A1 |
20030167316 | Bramnick et al. | Sep 2003 | A1 |
20030177194 | Crocker et al. | Sep 2003 | A1 |
20040059789 | Shum | Mar 2004 | A1 |
20040087311 | Haglund | May 2004 | A1 |
20040153473 | Hutchinson et al. | Aug 2004 | A1 |
20040162880 | Arnone et al. | Aug 2004 | A1 |
20040167965 | Addante et al. | Aug 2004 | A1 |
20040243699 | Koclanes et al. | Dec 2004 | A1 |
20040260778 | Banister et al. | Dec 2004 | A1 |
20050044151 | Jiang et al. | Feb 2005 | A1 |
20050091323 | Smith et al. | Apr 2005 | A1 |
20050131719 | Bresnan et al. | Jun 2005 | A1 |
20050132069 | Shannon et al. | Jun 2005 | A1 |
20050149479 | Richardson et al. | Jul 2005 | A1 |
20050182960 | Petry et al. | Aug 2005 | A1 |
20050228867 | Osborne et al. | Oct 2005 | A1 |
20050256931 | Follmeg et al. | Nov 2005 | A1 |
20050262205 | Nikolov et al. | Nov 2005 | A1 |
20050283658 | Clark et al. | Dec 2005 | A1 |
20060053262 | Prahlad et al. | Mar 2006 | A1 |
20060053263 | Prahlad et al. | Mar 2006 | A1 |
20060095569 | O'Sullivan | May 2006 | A1 |
20060106938 | Dini et al. | May 2006 | A1 |
20060168046 | Qureshi | Jul 2006 | A1 |
20060182034 | Klinker et al. | Aug 2006 | A1 |
20060253597 | Mujica | Nov 2006 | A1 |
20070055789 | Claise et al. | Mar 2007 | A1 |
20070088822 | Coile et al. | Apr 2007 | A1 |
20070177731 | Spies et al. | Aug 2007 | A1 |
20070206762 | Chandra et al. | Sep 2007 | A1 |
20080060080 | Lim | Mar 2008 | A1 |
20080137580 | Axelsson et al. | Jun 2008 | A1 |
20100121932 | Joshi et al. | May 2010 | A1 |
Number | Date | Country |
---|---|---|
2001-326691 | Nov 2001 | JP |
2004248177 | Sep 2004 | JP |
1020010092554 | Oct 2001 | KR |
1020040079667 | Sep 2004 | KR |
1020040091656 | Oct 2004 | KR |
WO 0072534 | Nov 2000 | WO |
0127772 | Apr 2001 | WO |
WO 2004042570 | May 2004 | WO |
WO 2005072425 | Aug 2005 | WO |
Number | Date | Country | |
---|---|---|---|
20070106783 A1 | May 2007 | US |