Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP5597466B2 - Program, mail server - Google Patents
[go: Go Back, main page]

JP5597466B2 - Program, mail server - Google Patents

Program, mail server Download PDF

Info

Publication number
JP5597466B2
JP5597466B2 JP2010165290A JP2010165290A JP5597466B2 JP 5597466 B2 JP5597466 B2 JP 5597466B2 JP 2010165290 A JP2010165290 A JP 2010165290A JP 2010165290 A JP2010165290 A JP 2010165290A JP 5597466 B2 JP5597466 B2 JP 5597466B2
Authority
JP
Japan
Prior art keywords
delivery
priority
mail
email
unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2010165290A
Other languages
Japanese (ja)
Other versions
JP2012029009A5 (en
JP2012029009A (en
Inventor
裕 福冨
徹也 小林
和明 宮本
Original Assignee
株式会社Hde
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 株式会社Hde filed Critical 株式会社Hde
Priority to JP2010165290A priority Critical patent/JP5597466B2/en
Publication of JP2012029009A publication Critical patent/JP2012029009A/en
Publication of JP2012029009A5 publication Critical patent/JP2012029009A5/ja
Application granted granted Critical
Publication of JP5597466B2 publication Critical patent/JP5597466B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Description

本発明は、プログラムに関する。   The present invention relates to a program.

従来から、SMTP(Simple Mail Transfer Protocol)を通じてネットワーク上で電子メールの受信と配送を行うメールサーバが存在する。   2. Description of the Related Art Conventionally, there is a mail server that receives and delivers electronic mail on a network through SMTP (Simple Mail Transfer Protocol).

従来のメールサーバは、端末や他のメールサーバから送信された電子メールを受信した場合には、受信順にその電子メールを配送する処理を行っていた。従って、メールサイズの大きな電子メール、メールサイズの小さな電子メールの順に受信すると、メールサイズの小さな電子メールは、メールサイズの大きな電子メールの配送中、配送待ちとなってしまい、配送遅延が発生する。   When a conventional mail server receives an electronic mail transmitted from a terminal or another mail server, the conventional mail server performs a process of delivering the electronic mail in the order of reception. Therefore, if an e-mail with a large mail size and an e-mail with a small mail size are received in this order, the e-mail with a small mail size is waiting for delivery during delivery of the large mail size, resulting in a delivery delay. .

例えば、従来のメールサーバの一例として特許文献1では、メールサイズの大きな電子メールのデータの一部が受信側で失われないようにするために、その電子メールを転送先アドレスに転送する処理を行うものがある(特許文献1の0009、0010段落を参照)。   For example, in Patent Document 1 as an example of a conventional mail server, a process of transferring an e-mail to a transfer destination address in order to prevent a part of the e-mail data having a large mail size from being lost on the receiving side. There is something to do (see paragraphs 0009 and 0010 of Patent Document 1).

特開2006−261991号公報JP 2006-261991 A

通常、電子メールを作成した差出人や受信者は、その電子メールが受信者に即時伝達されることを期待しているが、上述したように、メールサイズの小さな電子メールであっても配送遅延が生じる場合があり、かかる場合、差出人や受信者の期待に応えることができない。   Usually, the sender or recipient who created the email expects the email to be immediately transmitted to the recipient. However, as described above, even if the email is small, there is a delay in delivery. May occur, and in such a case, the expectation of the sender or recipient cannot be met.

また、特許文献1に示すようなメールサーバでは、受信した電子メールが最大サイズを超えたか否かによって配送先のメールサーバを異ならせるようにしているが、メールサーバに電子メールを転送している間は、サイズの小さな電子メールは配送待ちの状態となってしまう。つまり、特許文献1に記載のメールサーバも、差出人の期待に反して電子メールの配送は遅延してしまう。   Moreover, in the mail server as shown in Patent Document 1, the mail server of the delivery destination is made different depending on whether or not the received electronic mail exceeds the maximum size, but the electronic mail is transferred to the mail server. In the meantime, small emails will be waiting for delivery. In other words, the mail server described in Patent Document 1 also delays the delivery of electronic mail against the sender's expectation.

本発明は、上述した課題に鑑みたものであり、電子メールを配送するメールサーバにおいて、電子メールのサイズに基づく適切な順で電子メールを配送することが可能なメールサーバのプログラムを提供することにある。   The present invention has been made in view of the above-described problems, and provides a mail server program capable of delivering e-mails in an appropriate order based on the size of e-mails in a mail server that delivers e-mails. It is in.

(1)本発明は、電子メールを配送するメールサーバのためのプログラムであって、電子メールを受信する処理を行う受信部と、前記電子メールのサイズに基づいて、前記電子メールの優先度を決定する処理を行う優先度決定部と、前記電子メールの優先度に対応づけて、前記電子メールをスプール領域に格納する処理を行うスプール制御部と、前記優先度に基づき前記スプール領域に格納された電子メールの配送順を決定し、決定された配送順に従って電子メールを配送する処理を行う配送部として、コンピュータを機能させるプログラムに関する。   (1) The present invention is a program for a mail server that delivers an e-mail, and includes a receiving unit that performs a process of receiving an e-mail, and a priority of the e-mail based on the size of the e-mail. A priority determination unit that performs processing to determine, a spool control unit that performs processing to store the electronic mail in a spool area in association with the priority of the electronic mail, and is stored in the spool area based on the priority. The present invention relates to a program that causes a computer to function as a delivery unit that determines a delivery order of e-mails and performs a process of delivering e-mails according to the decided delivery order.

また、本発明は、上記プログラムを記憶した情報記憶媒体、上記各部として構成するメールサーバに関係する。本発明によれば、電子メールのサイズに基づく適切な順で電子メールを配送することができる。   The present invention also relates to an information storage medium storing the program and a mail server configured as each unit. According to the present invention, electronic mail can be delivered in an appropriate order based on the size of the electronic mail.

(2)また、本発明のプログラムは、前記優先度決定部が、電子メールのサイズが大きいほど、電子メールの優先度を低くするように決定する処理を行い、前記配送部が、優先度の高い電子メールを優先して配送する処理を行うようにしてもよい。本発明によれば、サイズの小さい電子メールを優先して配送することができる。   (2) In the program of the present invention, the priority determination unit performs a process of determining that the priority of the e-mail is lower as the size of the e-mail is larger. You may make it perform the process which gives priority and delivers a high electronic mail. According to the present invention, electronic mail with a small size can be preferentially delivered.

(3)また、本発明のプログラムは、前記配送部が、配送エラーと判定された電子メールについて、再配送する処理を行い、前記優先度決定部が、配送エラーと判定された電子メールの優先度を、当該電子メールの初回配送の優先度から異なる値に変更するようにしてもよい。本発明によれば、配送エラーと判定された電子メールの優先度を、当該電子メールの初回配送の優先度から異なる値に変更するので、再配送の電子メールについて適切な順で電子メールを配送することができる。   (3) In the program of the present invention, the delivery unit performs a process of re-delivery on the electronic mail determined to be a delivery error, and the priority determination unit determines the priority of the electronic mail determined to be a delivery error. The degree may be changed from the priority of the initial delivery of the e-mail to a different value. According to the present invention, since the priority of the e-mail determined to be a delivery error is changed from the priority of the initial delivery of the e-mail to a different value, the e-mail is delivered in an appropriate order for the re-delivery e-mail. can do.

本実施形態のネットワーク図の一例。An example of the network diagram of this embodiment. 本実施形態のメールサーバの機能ブロック図の一例。An example of a functional block diagram of the mail server of this embodiment. スプール領域に格納された電子メールの配送処理の説明図。Explanatory drawing of the delivery process of the email stored in the spool area. スプール領域に格納された電子メールの配送処理の説明図。Explanatory drawing of the delivery process of the email stored in the spool area. 本実施形態の優先度を決定する処理のフローチャート図。The flowchart figure of the process which determines the priority of this embodiment. スプールディレクトリの説明図。Explanatory drawing of a spool directory. 本実施形態の電子メールの配送処理のフローチャート図。The flowchart figure of the delivery process of the email of this embodiment. 本実施形態の電子メールの配送処理を説明するための図。The figure for demonstrating the delivery process of the email of this embodiment.

以下、本実施形態について説明する。なお、以下に説明する本実施形態は、特許請求の範囲に記載された本発明の内容を不当に限定するものではない。また本実施形態で説明される構成の全てが、本発明の必須構成要件であるとは限らない。   Hereinafter, this embodiment will be described. In addition, this embodiment demonstrated below does not unduly limit the content of this invention described in the claim. In addition, all the configurations described in the present embodiment are not necessarily essential configuration requirements of the present invention.

1.ネットワーク
図1は、本実施形態のネットワーク図の一例である。本実施形態のメールサーバ10は、SMTP(Simple Mail Transfer Protocol)を通じてネットワーク上で電子メールの受信と配送を行うMTA(Mail Transfer Agent)である。
1. Network FIG. 1 is an example of a network diagram of the present embodiment. The mail server 10 according to the present embodiment is an MTA (Mail Transfer Agent) that receives and delivers electronic mail on a network through SMTP (Simple Mail Transfer Protocol).

メールサーバ10は、配送処理に用いるエンベロープの宛先(宛先メールアドレス)及びエンベロープの差出元(差出元メールアドレス)、メッセージとからなる電子メールを受信し、ネットワークを介して受信した当該電子メールを、エンベロープの宛先に基づいて配送先メールサーバ(送信先メールサーバ)に配送する処理を行う。   The mail server 10 receives an email including an envelope destination (destination email address), an envelope sender (sender email address), and a message used for delivery processing, and receives the email received via the network. Based on the envelope destination, processing is performed for delivery to a delivery destination mail server (transmission destination mail server).

より詳しく説明すると、メールサーバ10は、MUA(Mail User Agent)から送信された電子メールを受信する。なお、MUAとは、インターネット上の端末において電子メールを送受信するために使用されるクライアントプログラムである。次に、メールサーバ10は、受信した電子メールのエンベロープの宛先のドメインを管理しているDNS(Domain Name System)サーバや、メールサーバ10のローカルエリア内のDNSサーバ、或いは他のDNSサーバに、受信した電子メールのエンベロープの宛先のドメインを問い合わせる(例えば、宛先のドメインのMXレコードを問い合わせる)。そして、DNSサーバの応答メッセージによって決められる配送先メールサーバへ、電子メールを配送(配信、送信、転送、リレー)する処理を行なう。   More specifically, the mail server 10 receives an electronic mail transmitted from a MUA (Mail User Agent). Note that MUA is a client program used to send and receive e-mails at terminals on the Internet. Next, the mail server 10 sends a DNS (Domain Name System) server that manages the domain of the destination of the envelope of the received email, a DNS server in the local area of the mail server 10, or another DNS server, Queries the destination domain of the envelope of the received email (for example, queries MX records of the destination domain). Then, the electronic mail is delivered (delivered, transmitted, transferred, relayed) to the delivery destination mail server determined by the response message of the DNS server.

なお、本実施形態のメールサーバ10が電子メールを受信するとは、SMTPを通じて、端末から電子メールを受信する場合、SMTPを通じて他のメールサーバから配送された電子メールを受信する場合を含む。   Note that the mail server 10 according to the present embodiment receives an email includes a case where an email is received from a terminal via SMTP and a case where an email delivered from another mail server is received via SMTP.

また、本実施形態のメールサーバ10が電子メールを配送するとは、SMTPを通じて、受信した電子メールを他のメールサーバに配送する処理や、メールサーバ10が稼動する同一システム内にアカウントを持つユーザ宛に配送するためのローカル配信エージェントMDA(Mail Delivery Agent)に配送する処理、MDAを介せずにメールサーバが稼動する同一システム内にアカウントを持つユーザ宛にローカル配送する処理を含む。   Also, the mail server 10 of the present embodiment delivers an e-mail to a process of delivering a received e-mail to another mail server via SMTP, or to a user who has an account in the same system where the mail server 10 operates. Processing for delivering to a local delivery agent MDA (Mail Delivery Agent) for delivery to the user, and processing for delivering locally to a user who has an account in the same system where the mail server operates without going through MDA.

2.構成
図2は、本実施形態のメールサーバ10の機能ブロック図の一例である。なお、本実施形態のメールサーバ10は、図2の各部を全て含む必要はなく、その一部を省略した構成としてもよい。
2. Configuration FIG. 2 is an example of a functional block diagram of the mail server 10 of the present embodiment. Note that the mail server 10 according to the present embodiment does not need to include all the units illustrated in FIG.

記憶部170は、処理部100などのワーク領域となるもので、その機能はRAM(VRAM)などのハードウェアにより実現できる。   The storage unit 170 serves as a work area for the processing unit 100 and the like, and its function can be realized by hardware such as RAM (VRAM).

本実施形態の記憶部170には、スプール領域171を含む。このスプール領域171は、受信部111によって受信された電子メールを一時的に格納するための記憶領域である。なお、スプール領域171に記憶された電子メールは、配送処理が完了(配送正常終了あるいは配送エラー終了)すると、スプール領域171から削除される。なお、配送エラー終了の場合、つまり、配送先メールサーバに配送できない電子メールについては、再度、スプール領域171に格納される。   The storage unit 170 of this embodiment includes a spool area 171. The spool area 171 is a storage area for temporarily storing an e-mail received by the receiving unit 111. Note that the e-mail stored in the spool area 171 is deleted from the spool area 171 when the delivery process is completed (normal delivery end or delivery error end). In the case of a delivery error end, that is, an electronic mail that cannot be delivered to the delivery destination mail server is stored in the spool area 171 again.

また、情報記憶媒体180は、コンピュータにより読み取り可能であり、この情報記憶媒体180にはプログラムやデータなどが格納されている。即ち、情報記憶媒体180には、本実施形態の各部としてコンピュータを機能させるためのプログラム(各部の処理をコンピュータに実行させるためのプログラム)が記憶される。つまり、処理部100は、この情報記憶媒体180に格納されるプログラム(データ)から読み出されたデータに基づいて本実施形態の種々の処理を行うことができる。   The information storage medium 180 can be read by a computer, and the information storage medium 180 stores programs, data, and the like. That is, the information storage medium 180 stores a program for causing a computer to function as each unit of the present embodiment (a program for causing a computer to execute processing of each unit). That is, the processing unit 100 can perform various processes of the present embodiment based on data read from a program (data) stored in the information storage medium 180.

例えば、情報記録媒体180は、光ディスク(CD、DVD)、光磁気ディスク(MO)、磁気ディスク、ハードディスク、磁気テープ、或いはメモリ(ROM)、メモリカード等である。   For example, the information recording medium 180 is an optical disk (CD, DVD), a magneto-optical disk (MO), a magnetic disk, a hard disk, a magnetic tape, a memory (ROM), a memory card, or the like.

処理部100は、記憶部170に格納されるプログラム(データ)に基づいて本実施形態の種々の処理を行う。なお、本実施形態の処理部100が、情報記憶媒体180に格納されているプログラムやデータを読み出し、読み出したプログラムやデータを記憶部170に格納し、そのプログラムやデータに基づいて処理を行ってもよい。   The processing unit 100 performs various processes of the present embodiment based on a program (data) stored in the storage unit 170. Note that the processing unit 100 of the present embodiment reads the program and data stored in the information storage medium 180, stores the read program and data in the storage unit 170, and performs processing based on the program and data. Also good.

処理部100(プロセッサ)は、記憶部170内の主記憶部をワーク領域として各種処理を行う。処理部100の機能は各種プロセッサ(CPU、DSP等)などのハードウェアや、プログラムにより実現できる。   The processing unit 100 (processor) performs various processes using the main storage unit in the storage unit 170 as a work area. The functions of the processing unit 100 can be realized by hardware such as various processors (CPU, DSP, etc.) and programs.

処理部100は、受信部111、優先度決定部112、配送予定時刻決定部113、スプール制御部114、配送部115とを含む。   The processing unit 100 includes a reception unit 111, a priority determination unit 112, a scheduled delivery time determination unit 113, a spool control unit 114, and a delivery unit 115.

受信部111は、端末(コンピュータ、携帯電話、タブレット型コンピュータ、スマートフォン)のMUAによって、差出元から送信され、エンベロープの宛先が指定された電子メールを受信する処理(受け付ける処理)を行う。   The receiving unit 111 performs processing (reception processing) of receiving an e-mail that is transmitted from the sending source and has an envelope destination designated by the MUA of the terminal (computer, mobile phone, tablet computer, smartphone).

また、優先度決定部112は、受信した電子メールの優先度(プライオリティ値)を決定する処理を行う。例えば、優先度決定部112は、電子メールのサイズに基づいて、電子メールの優先度を決定する処理を行う。なお、電子メールのサイズは、電子メールを構成するメッセージ全体のサイズである。つまり、電子メールのサイズは、電子メールを構成するヘッダ部のデータ、ボディ部のデータ、及び添付ファイルデータ(バイナリコードからテキストコードに変換された添付ファイルデータ)を含むデータ全体のサイズである。   Further, the priority determination unit 112 performs processing for determining the priority (priority value) of the received electronic mail. For example, the priority determination unit 112 performs a process of determining the priority of the email based on the size of the email. Note that the size of the e-mail is the size of the entire message constituting the e-mail. That is, the size of the e-mail is the size of the entire data including the data of the header part, the data of the body part, and the attached file data (attached file data converted from the binary code to the text code).

本実施形態の優先度決定部112は、電子メールのサイズが大きいほど、電子メールの優先度を低くするように決定する処理を行う。例えば、電子メールのサイズをSとし、優先度をPとすると、S<1メガバイトの場合はP=50(初期値)、1メガバイト≦S<2メガバイトの場合はP=40、2メガバイト≦S<3メガバイトの場合はP=30、3メガバイト≦S<4メガバイトの場合はP=20、4メガバイト≦S<5メガバイトの場合はP=10、5メガバイト≦Sの場合はP=0に決定する。   The priority determination unit 112 of the present embodiment performs a process of determining to lower the priority of the email as the size of the email is larger. For example, if the size of the e-mail is S and the priority is P, P = 50 (initial value) if S <1 megabyte, P = 40 if 1 megabyte ≦ S <2 megabyte, 2 megabyte ≦ S <P = 30 for 3 megabytes, P = 20 for 3 megabytes ≦ S <4 megabytes, P = 20 for 4 megabytes ≦ S <5 megabytes, and P = 0 for 5 megabytes ≦ S To do.

なお、優先度決定部112は、配送エラーで再配送対象となった電子メールの優先度を、初期値(50)より低い値に決定してもよい。つまり、優先度決定部112は、配送エラーと判定された電子メールの優先度を、当該電子メールの初回配送の優先度から異なる値に変更してもよい。   Note that the priority determination unit 112 may determine the priority of the e-mail subject to redelivery due to a delivery error to a value lower than the initial value (50). That is, the priority determination unit 112 may change the priority of the electronic mail determined to be a delivery error from the priority of the initial delivery of the electronic mail to a different value.

また、配送予定時刻決定部113は、受信した電子メールを配送する配送予定時刻(配送予定日時)を決定する処理を行う。また、配送予定時刻決定部113は、配送エラーで再配送対象となった電子メールの配送予定時刻を決定する処理を行う。例えば、配送エラー時点を基準に所定期間後(例えば、10分後)を当該再配送対象となった電子メールの配送予定時刻として決定する。   Further, the scheduled delivery time determination unit 113 performs a process of determining a scheduled delivery time (scheduled delivery date and time) for delivering the received electronic mail. Further, the scheduled delivery time determination unit 113 performs a process of determining the scheduled delivery time of the e-mail that has been redelivered due to a delivery error. For example, the time after a predetermined period (for example, 10 minutes later) based on the time of delivery error is determined as the scheduled delivery time of the e-mail subject to redelivery.

また、スプール制御部(キュー管理部)114は、スプール領域171に、受信した電子メールを格納する(記憶する)処理を行う。例えば、スプール制御部114は、受信した電子メールと、当該電子メールの優先度と、当該電子メールの配送予定時刻とを対応づけて、スプール領域171に当該電子メールを記憶させる処理を行う。   Further, the spool control unit (queue management unit) 114 performs a process of storing (storing) the received electronic mail in the spool area 171. For example, the spool control unit 114 associates the received electronic mail, the priority of the electronic mail, and the scheduled delivery time of the electronic mail, and stores the electronic mail in the spool area 171.

なお、スプール制御部114は、配送部115によって配送処理が完了した電子メールをスプール領域171から削除する処理を行う。   Note that the spool control unit 114 performs processing for deleting the electronic mail for which delivery processing has been completed by the delivery unit 115 from the spool area 171.

また、配送部115は、スプール領域171に格納された電子メールを配送する処理を行う。例えば、配送部115は、配送予定時刻と現在時刻(現在日時、判断時)とを比較し、配送予定時刻が現在時刻よりも過去である(古い)電子メールについて配送する処理を行う。つまり、配送部115は、配送予定時刻が現在時刻より過去の時刻であるか否かを判断し、配送予定時刻が現在時刻より過去の時刻である電子メールを配送する処理を行う。   In addition, the delivery unit 115 performs processing for delivering the e-mail stored in the spool area 171. For example, the delivery unit 115 compares the scheduled delivery time with the current time (current date and time of determination), and performs processing for delivering an e-mail whose scheduled delivery time is earlier (older) than the current time. That is, the delivery unit 115 determines whether or not the scheduled delivery time is a past time from the current time, and performs processing for delivering an e-mail whose scheduled delivery time is a past time from the current time.

特に、本実施形態の配送部115は、優先度に従って電子メールを配送する処理を行う。つまり、配送部115は、優先度に基づきスプール領域に格納された電子メールの配送順を決定し、決定された配送順に従って電子メールを配送する処理を行う。   In particular, the delivery unit 115 according to the present embodiment performs processing for delivering electronic mail according to priority. That is, the delivery unit 115 determines the delivery order of the emails stored in the spool area based on the priority, and performs a process of delivering the emails according to the decided delivery order.

例えば、配送部115は、優先度の高い電子メールを優先して配送する処理を行う。つまり、優先度の降順(優先度の高い順)であって、配送予定時刻が現在時刻より過去の時刻である電子メールを配送する処理を行う。優先度が同位である電子メールが複数存在する場合には、配送予定時刻に従って電子メールを配送する処理を行う。つまり、優先度が同位である電子メールが複数存在する場合には、配送予定時刻の時系列(配送予定時刻の古いものから順)に、電子メールを配送する処理を行う。また、配送部115は、配送エラーと判定された電子メールについて、再配送する処理を行う。   For example, the delivery unit 115 performs processing for preferentially delivering high-priority electronic mail. In other words, processing is performed to deliver e-mails whose descending order of priority (in descending order of priority) and whose scheduled delivery time is a past time from the current time. When there are a plurality of e-mails having the same priority, a process of delivering the e-mails according to the scheduled delivery time is performed. That is, when there are a plurality of e-mails having the same priority, the process of delivering e-mails in the time series of the scheduled delivery time (in order from the oldest scheduled delivery time) is performed. In addition, the delivery unit 115 performs a process of redelivering an electronic mail that is determined to be a delivery error.

3.従来のメールサーバの配送処理例
図3は、従来のメールサーバの配送処理を説明するための概念図である。図3に示すように、従来のメールサーバは、スプール領域171に電子メールを格納し、受信した順にスプール領域171に格納された電子メールを配送する処理を行う。
3. FIG. 3 is a conceptual diagram for explaining a conventional mail server delivery process. As shown in FIG. 3, the conventional mail server stores e-mails in the spool area 171 and delivers the e-mails stored in the spool area 171 in the order received.

例えば、サイズが5メガバイトの電子メール33を配送処理に長時間要する場合、電子メール33より後に、格納された1メガバイト未満の小さな電子メール34、35・・・・70は、配送待ちの状態となる。   For example, when an e-mail 33 having a size of 5 megabytes takes a long time for delivery processing, the stored small e-mails 34, 35,... Become.

つまり、従来のメールサーバは電子メール33のサイズが大きいので、電子メールの33の配送に時間を要し、その結果、サイズの小さな電子メール34について配送遅延が発生してしまう。同様に、電子メール34に続いて受信した電子メール35、36・・・・70についても、連鎖的に配送遅延が生じてしまう。   That is, since the size of the e-mail 33 is large in the conventional mail server, it takes time to deliver the e-mail 33, and as a result, a delivery delay occurs for the e-mail 34 having a small size. Similarly, for electronic mails 35, 36,... 70 received subsequent to the electronic mail 34, a delivery delay occurs in a chained manner.

4.本実施形態のメールサーバの配送処理の説明
(1)配送処理の概要
本実施形態のメールサーバ10では、電子メールのサイズに基づいて、電子メールの優先度を決定する処理を行う。そして、優先度に基づきスプール領域に格納された電子メールの配送順を決定し、決定された配送順に従って電子メールを配送する処理を行う。このようにすれば、適切な順で電子メールを配送することができ、所定サイズ(例えば、1メガバイト)より小さい電子メールの配送遅延を、従来のメールサーバよりも軽減することができる。
4). Description of delivery processing of mail server of this embodiment (1) Outline of delivery processing The mail server 10 of this embodiment performs processing for determining the priority of email based on the size of the email. Then, based on the priority, the order of delivery of the electronic mail stored in the spool area is determined, and the electronic mail is delivered according to the determined delivery order. In this way, electronic mail can be delivered in an appropriate order, and the delivery delay of electronic mail smaller than a predetermined size (for example, 1 megabyte) can be reduced as compared with a conventional mail server.

図4は、本実施形態のメールサーバ10の配送処理を説明するための概念図である。図4に示すように、メールサーバ10は、スプール領域171に電子メールを格納し、サイズが所定サイズ(例えば、1メガバイト)より小さい電子メールは、サイズが所定サイズ以上の電子メールよりも優先して配送処理を行う。   FIG. 4 is a conceptual diagram for explaining the delivery process of the mail server 10 of the present embodiment. As shown in FIG. 4, the mail server 10 stores an e-mail in the spool area 171. An e-mail having a size smaller than a predetermined size (for example, 1 megabyte) has priority over an e-mail having a size larger than the predetermined size. To perform delivery processing.

例えば、メールサーバ10は、5メガバイトのサイズを有する電子メール33の後に、サイズが3キロバイトの電子メール34を受信した場合には、電子メール33より優先的に電子メール34を配送する処理を行う。つまり、メールサーバ10は、電子メールの受信順にかかわらず、スプール領域171に格納された所定サイズ未満の電子メール34を、所定サイズ以上の電子メール33よりも優先して配送する処理を行う。   For example, when the mail server 10 receives an e-mail 34 having a size of 3 kilobytes after the e-mail 33 having a size of 5 megabytes, the mail server 10 performs processing to deliver the e-mail 34 with priority over the e-mail 33. . That is, the mail server 10 performs processing for delivering the electronic mail 34 smaller than the predetermined size stored in the spool area 171 with priority over the electronic mail 33 larger than the predetermined size, regardless of the order of receiving the electronic mail.

そして、図4のT51時点のように、スプール領域に電子メール33よりも小さな電子メールが存在しなくなると、メールサーバ10は、電子メール33の配送処理を行うことになる。したがって、メールサーバ10のスプール領域171に大量の電子メールが存在する場合には、所定サイズ未満の電子メールを優先して配送し(所定サイズ以上の電子メールを後回しにし)、その後、メールサーバ10のスプール領域171に格納される電子メール数が少なくなれば、所定サイズ以上の電子メールを配送することができる。   When there is no longer any e-mail smaller than the e-mail 33 in the spool area as at time T51 in FIG. 4, the mail server 10 performs a delivery process for the e-mail 33. Accordingly, when a large amount of e-mail exists in the spool area 171 of the mail server 10, the e-mail having a size smaller than the predetermined size is preferentially delivered (the e-mail having a predetermined size or more is deferred), and then the mail server 10. If the number of e-mails stored in the spool area 171 decreases, e-mails of a predetermined size or larger can be delivered.

つまり、電子メール33は通信量が多いので電子メール33の配送遅延が生じてしまうのは、差出人や受信者も納得するかもしれない。しかし、電子メール33を起因として所定サイズ未満の電子メール34、35等が連動して遅延することになると差出人や受信者は、配信遅延による苛立ちやストレスを感じるおそれがある。   That is, since the electronic mail 33 has a large amount of communication, the sender and the receiver may be convinced that the delivery delay of the electronic mail 33 occurs. However, if the e-mails 34 and 35 having a size smaller than the predetermined size are delayed due to the e-mail 33, the sender or the recipient may feel irritation or stress due to the delivery delay.

しかし、本実施形態によれば、所定サイズ未満の比較的小さな電子メールについて、配送遅延を生じさせないようにすることができるので、差出人や受信者共に、所定サイズ未満の小さな電子メールについてはストレスなく送受信することができる。以下、本実施形態のメールサーバ10の処理について、さらに詳細に説明する。   However, according to the present embodiment, it is possible to prevent a delay in delivery of a relatively small e-mail smaller than a predetermined size, so that both the sender and the recipient have no stress on a small e-mail smaller than the predetermined size. You can send and receive. Hereinafter, the process of the mail server 10 of this embodiment will be described in more detail.

(2)優先度を決定する処理
本実施形態のメールサーバ10は、電子メールを受信すると、スプール領域171に格納する前にその電子メールの優先度を決定する処理を行う。
(2) Processing for Determining Priority When receiving the electronic mail, the mail server 10 of this embodiment performs processing for determining the priority of the electronic mail before storing it in the spool area 171.

例えば、電子メールのサイズSが1メガバイト(所定サイズの一例)よりも小さい場合(S<1メガバイト)には、その電子メールの優先度を初期値(初期値=50)に決定する。   For example, when the size S of the electronic mail is smaller than 1 megabyte (an example of a predetermined size) (S <1 megabyte), the priority of the electronic mail is determined to be an initial value (initial value = 50).

一方、電子メールのサイズSが1メガバイト以上である場合には、初期値の優先度50から、1メガバイト単位で10減算する処理を行う。   On the other hand, when the size S of the electronic mail is 1 megabyte or more, a process of subtracting 10 in units of 1 megabyte from the priority 50 of the initial value is performed.

つまり、本実施形態では、所定サイズ以上の電子メールは、そのメールサイズが1メガバイト単位で大きくなるにつれて、優先度を低くするようにして、優先度を決定する処理を行う。   In other words, in the present embodiment, the process of determining the priority is performed so that the e-mail having a predetermined size or larger becomes lower in priority as the mail size increases in units of 1 megabyte.

具体的には、優先度Pは、下式(1)によって求めることができる。下式(1)は、電子メールのサイズをメガバイト単位で示した際の値をSとしている(電子メールサイズSの小数点以下は切り捨てる)。   Specifically, the priority P can be obtained by the following equation (1). In the following formula (1), the value when the size of the e-mail is shown in megabytes is S (the fractional part of the e-mail size S is rounded down).

P=50−(S×10)・・・(1)
例えば、1.2メガバイトの電子メールの優先度Pは、50−(1×10)=40となる。また、2.4メガバイトの電子メールの優先度Pは、50−(2×10)=30となる。また、5.8メガバイトの電子メールの優先度Pは、50−(5×10)=0となる。つまり、電子メールのサイズが大きくなるほど、電子メールの優先度を低くするようにして、優先度を決定する処理を行っている。
P = 50− (S × 10) (1)
For example, the priority P of a 1.2 megabyte e-mail is 50− (1 × 10) = 40. In addition, the priority P of the 2.4 megabyte e-mail is 50− (2 × 10) = 30. The priority P of the 5.8 megabyte e-mail is 50− (5 × 10) = 0. That is, the priority is determined by lowering the priority of the email as the size of the email increases.

さらに、具体的に、図5を用いて、優先度決定の処理の流れについて説明する。まず、優先度に初期値(=50)を代入する(ステップS1)。次に、電子メールのサイズが所定サイズ(例えば、1メガバイト)より小さいか否かを判断する(ステップS2)。   Furthermore, the flow of priority determination processing will be specifically described with reference to FIG. First, an initial value (= 50) is substituted for priority (step S1). Next, it is determined whether or not the size of the e-mail is smaller than a predetermined size (for example, 1 megabyte) (step S2).

そして、電子メールのサイズが所定サイズより小さい場合には(ステップS2のyes)は処理を終了し、電子メールのサイズが所定サイズ以上である場合には(ステップS2のno)、メールサイズに基づき、優先度を計算する(ステップS3)。例えば、上述の式(1)によって、優先度を計算する。   Then, if the size of the e-mail is smaller than the predetermined size (yes in step S2), the process is terminated. The priority is calculated (step S3). For example, the priority is calculated by the above equation (1).

そして、優先度が0より小さいか否か(優先度<0)を判断する(ステップS4)。優先度が0より小さい場合(優先度が負の場合)には(ステップS4のyes)、優先度に0を代入する。つまり、負の値にならないように優先度を0に設定する(ステップS5)。   Then, it is determined whether or not the priority is lower than 0 (priority <0) (step S4). When the priority is smaller than 0 (when the priority is negative) (Yes in step S4), 0 is substituted for the priority. That is, the priority is set to 0 so as not to become a negative value (step S5).

そして、優先度が0以上である場合(ステップS4のno)、優先度が100より大きいか否かを判断する(ステップS6)。優先度が100より大きな場合には(ステップS6のyes)、優先度に100を代入する(ステップS7)。一方、優先度が100以下である場合には(ステップS6のno)、処理を終了する。以上で処理が終了する。   If the priority is 0 or more (step S4: no), it is determined whether the priority is greater than 100 (step S6). If the priority is greater than 100 (yes in step S6), 100 is substituted for the priority (step S7). On the other hand, if the priority is 100 or less (no in step S6), the process ends. The process ends here.

(3)配送予定時刻
本実施形態のメールサーバ10は、電子メールを受信すると、スプール領域171に格納する前に、配送予定時刻を決定する。つまり、スプール領域171に格納された各電子メールは、配送予定時刻に対応づけられていることになる。
(3) Scheduled Delivery Time When receiving the electronic mail, the mail server 10 of this embodiment determines the scheduled delivery time before storing it in the spool area 171. That is, each electronic mail stored in the spool area 171 is associated with the scheduled delivery time.

例えば、メールサーバ10は、電子メールを受信すると、受信時刻に基づきその電子メールの配送予定時刻を決定する。例えば、メールサーバ10は、電子メールの受信時刻を基準に所定時間先(例えば、5秒先)の時刻を、その電子メールの配送予定時刻として設定してもよい。また、電子メールの受信時刻をその電子メールの配送予定時刻として設定してもよい。   For example, when the mail server 10 receives an electronic mail, the mail server 10 determines a scheduled delivery time of the electronic mail based on the reception time. For example, the mail server 10 may set a predetermined time ahead (for example, 5 seconds ahead) as the scheduled delivery time for the e-mail based on the e-mail reception time. Further, the reception time of the electronic mail may be set as the scheduled delivery time of the electronic mail.

(4)スプール制御
本実施形態のメールサーバ10は、電子メールを受信すると、受信した電子メールをスプールファイルとして、記憶部170のスプール領域171において作成されたスプールディレクトリに格納する処理を行う。
(4) Spool Control When receiving the electronic mail, the mail server 10 according to the present embodiment performs a process of storing the received electronic mail as a spool file in a spool directory created in the spool area 171 of the storage unit 170.

ここで、スプール領域とは、受信した電子メールを一時的に格納するためのメモリ領域である。通常、コンピュータの処理速度よりも通信速度の方が極端に遅くなるため、一時的に、受信した電子メールをスプール領域に格納した後に電子メールの配送処理が開始される。言い換えると、スプール領域は、電子メールを一時的に格納するためのキュー領域である。   Here, the spool area is a memory area for temporarily storing received electronic mail. Usually, since the communication speed is extremely slower than the processing speed of the computer, the electronic mail delivery process is started after temporarily storing the received electronic mail in the spool area. In other words, the spool area is a queue area for temporarily storing electronic mail.

また、スプールファイルは、電子メールのことである。つまり、スプールファイルは、電子メールを構成するヘッダ部のデータ、ボディ部のデータとによって構成されるメッセージデータ全体を1つにまとめたファイルのことである。つまり、1つの電子メールにファイルが添付されている場合には、添付ファイルのデータを含むメッセージデータ全体を1つにまとめたファイルをスプールファイルとしている。なお、添付ファイルデータがバイナリデータである場合には、所定の文字コードでテキストデータに変換される。また、メッセージデータは、MIME(Multipurpose Internet Mail Extensions)の規格に基づき作成される。   The spool file is an electronic mail. That is, the spool file is a file in which the entire message data composed of the header part data and the body part data making up the electronic mail are combined into one. That is, when a file is attached to one electronic mail, a file in which the entire message data including the data of the attached file is combined into one is used as the spool file. When the attached file data is binary data, it is converted into text data with a predetermined character code. The message data is created based on the standard of MIME (Multipurpose Internet Mail Extensions).

本実施形態では、図6(A)に示すように、スプールディレクトリにおいて、優先度ディレクトリと配送予定時刻を示す年、月、日、時、分、秒の各ディレクトリとを階層的に作成し、作成された最下位の”秒”ディレクトリに、電子メールをスプールファイルとして格納する処理を行っている。   In the present embodiment, as shown in FIG. 6A, in the spool directory, the priority directory and the year, month, day, hour, minute, and second directories indicating the scheduled delivery time are created hierarchically, A process of storing the e-mail as a spool file is performed in the created “second” directory at the lowest level.

例えば、図6(B)に示すように、”/var/spool/mail/”ディレクトリをスプールディレクトリとして予め設定する。そして、”/var/spool/mail/”ディレクトリに、優先度が50の”50/”ディレクトリと、優先度が30の”30/”を作成する。優先度ディレクトリは予め作成してもよいし、優先度ディレクトリが存在しない場合にはスプール領域171に電子メールを格納する前に作成する。   For example, as shown in FIG. 6B, a “/ var / spool / mail /” directory is preset as a spool directory. Then, a “50 /” directory with a priority of 50 and “30 /” with a priority of 30 are created in the “/ var / spool / mail /” directory. The priority directory may be created in advance, or if the priority directory does not exist, it is created before storing the e-mail in the spool area 171.

そして、優先度ディレクトリの下位に配送予定時刻を示す年、月、日、時、分、秒の各ディレクトリを作成し、”秒”ディレクトリに、受信した電子メールをスプールファイルとして格納する処理を行う。   Then, the year, month, day, hour, minute, and second directories indicating the scheduled delivery time are created below the priority directory, and the received e-mail is stored as a spool file in the “second” directory. .

例えば、図6(B)に示すように、電子メール34のスプールファイル名を「mail34」とし、電子メール34の優先度が「50」と決定され、電子メール34の配送予定時刻が2010年6月1日15時1分5秒すると、電子メール34のスプールファイルmail34は、”/var/spool/mail/50/2010/6/1/15/1/5/”ディレクトリに格納される。例えば、「優先度」や「配送予定時刻」が同じである電子メールが複数存在する場合には、同一のディレクトリに格納されることになる。   For example, as shown in FIG. 6B, the spool file name of the electronic mail 34 is “mail 34”, the priority of the electronic mail 34 is determined to be “50”, and the scheduled delivery time of the electronic mail 34 is 2010 At 15: 01: 5 on the first day of the month, the spool file mail 34 of the e-mail 34 is stored in the “/ var / spool / mail / 50/2010/6/1/15/1/5 /” directory. For example, when there are a plurality of emails having the same “priority” and “scheduled delivery time”, they are stored in the same directory.

なお、本実施形態のメールサーバ10は、受信した電子メールを、スプール領域171において、優先度と配送予定時刻とを示すディレクトリでスプール制御を行っているが、スプール領域171において、受信した電子メール(スプールファイル)と、優先度と、配送予定時刻とを対応づけてデータベース化してスプール制御を行ってもよい。   The mail server 10 according to the present embodiment performs spool control on the received electronic mail in the spool area 171 using a directory indicating the priority and the scheduled delivery time. The spool control may be performed by associating (spool file), priority, and scheduled delivery time into a database.

(5)配送処理
本実施形態のメールサーバ10は、スプールディレクトリに格納されているスプールファイル(電子メール)のうち、最大配送件数(例えば、100件)分、配送する処理を繰り返し行っている。そして、スプールファイルについて優先度の高い順であって、配送予定時刻が現在時刻(判断時刻)よりも過去のスプールファイルを配送する処理を行う。
(5) Delivery processing The mail server 10 of this embodiment repeatedly performs delivery processing for the maximum number of deliveries (for example, 100) out of spool files (e-mail) stored in the spool directory. Then, the spool file is processed in the descending order of priority, and the spool file whose delivery schedule time is earlier than the current time (judgment time) is delivered.

より詳しく、図7を用いて具体的に説明すると、まず、最大配送件数に1回の検索で送信する件数を代入する(ステップS10)。例えば、1回の検索で最大100件配送する場合には、最大配送件数=100となる。また、配送処理数に初期値(0)を代入する。   More specifically, with reference to FIG. 7, first, the number of cases to be transmitted in one search is substituted for the maximum number of deliveries (step S10). For example, when a maximum of 100 items are delivered in one search, the maximum number of deliveries is 100. Also, an initial value (0) is substituted for the number of delivery processes.

そして、スプールディレクトリ内のディレクトリ名”数値”を検索する処理を行う(ステップS11)。例えば、スプールディレクトリが”/var/spool/mail/”である場合には、”/var/spool/mail/”ディレクトリにおいて、”数値”の名前であるディレクトリを検索する。すなわち、本実施形態では、”優先度”を数値で表しているため、検索結果は、”優先度”の名前が付されたディレクトリを検索することになる。   Then, the directory name “numeric value” in the spool directory is searched (step S11). For example, when the spool directory is “/ var / spool / mail /”, the directory having the name “numerical value” is searched in the “/ var / spool / mail /” directory. In other words, in the present embodiment, “priority” is represented by a numerical value, so that a search result is a search for a directory with the name “priority”.

例えば、図6(B)に示すように、”/var/spool/mail/”ディレクトリにおいて、ディレクトリ”50”、”30”が存在する場合には、ディレクトリ”50”、”30”が検索される。   For example, as shown in FIG. 6B, when directories “50” and “30” exist in the “/ var / spool / mail /” directory, the directories “50” and “30” are searched. The

次に、優先度の高い順、(ステップS12)であって、優先度ディレクトリの”年/月/日/時/分/秒/”ディレクトリにおいて、”年/月/日/時/分/秒/”で特定される配送予定時刻が現在時刻より古い”秒”ディレクトリ(ステップS13)について、”秒”ディレクトリ内のスプールファイルについて配送処理を行う。またスプールファイルの配送処理を行う度に、配送処理数をカウントする(ステップS14)。   Next, in order of priority (step S12), in the "year / month / day / hour / minute / second /" directory of the priority directory, "year / month / day / hour / minute / second" For the “second” directory (step S13) in which the scheduled delivery time specified by “/” is older than the current time, the delivery processing is performed for the spool file in the “second” directory. Each time the spool file delivery process is performed, the number of delivery processes is counted (step S14).

つまり、優先度ディレクトリの降順に(優先度が高いものから順に)、優先度ディレクトリの、”年/月/日/時/分/秒/”の各ディレクトリ名で特定される配送予定時刻が現在時刻より古いスプールファイルについて繰り返し配送処理を行う。(ステップS12〜ステップS18)。つまり、配送予定時刻が現在時刻よりも未来の日時である場合には、配送予定時刻の”年/月/日/時/分/秒/”ディレクトリにあるスプールファイルについては配送処理を行わない。   That is, the scheduled delivery time specified by each directory name of “year / month / day / hour / minute / second /” of the priority directory in the descending order of priority directory (in descending order of priority) Repeat the delivery process for spool files older than the time. (Step S12 to Step S18). That is, if the scheduled delivery time is a date and time that is in the future of the current time, delivery processing is not performed for spool files in the “year / month / day / hour / minute / second /” directory of the scheduled delivery time.

例えば、ステップS13において、優先度50のディレクトリであって配送予定時刻が古いか否かを判断する時刻(現在時刻、判断時)が、図6(B)に示す2010年6月1日15時1分10秒である場合には、”/var/spool/mail/50/”ディレクトリの”2010/6/1/15/1/5/”ディレクトリと、”2010/6/1/15/1/6/”ディレクトリにあるスプールファイルmail34、mail35を配送する処理を行う。   For example, in step S13, the time (current time, determination time) for determining whether or not the scheduled delivery time is an old directory of priority 50 is June 1, 2010, 15:00 shown in FIG. 6B. In the case of 1 minute 10 seconds, the “2010/6/1/15/1/5 /” directory in the “/ var / spool / mail / 50 /” directory and “2010/6/1/15/1” The process of delivering the spool files mail 34 and mail 35 in the / 6 / "directory is performed.

そして、優先度50のディレクトリあって、配送予定時刻が現在時刻より古いスプールファイルについて配送処理が完了すると、その後、優先度30のディレクトリであって、配送予定時刻が現在時刻より古いスプールファイルを配送する。例えば、”2010/6/1/15/1/1”ディレクトリにあるスプールファイルmail33について配送処理を行う。   When the delivery process is completed for a spool file with a priority 50 directory and a scheduled delivery time older than the current time, a spool file with a priority 30 and a scheduled delivery time older than the current time is delivered. To do. For example, the delivery process is performed for the spool file mail 33 in the “2010/6/1/15/1/1” directory.

優先度が同位であって現在時刻よりも古い配送予定時刻のディレクトリが複数存在する場合には、ランダムな順にディレクトリにあるスプールファイルを配送するようにしてもよいし、配送予定時刻の時系列(古い順)にスプールファイルを配送するようにしてもよい。   When there are a plurality of directories having the same priority and an estimated delivery time older than the current time, spool files in the directory may be delivered in random order, or a time series of scheduled delivery times ( Spool files may be delivered in the oldest order.

なお、本実施形態のメールサーバ10は、配送先メールサーバと、複数の通信(セッション)を確立させて、同時に複数のスプールファイルを並列に配送先のメールサーバに配送するようにしてもよい。また、メールサーバ10は、複数の配送先サーバそれぞれと、通信を確立させて、並列に各配送先メールサーバに電子メールを配送するようにしてもよい。   Note that the mail server 10 of the present embodiment may establish a plurality of communications (sessions) with the delivery destination mail server and simultaneously deliver a plurality of spool files to the delivery destination mail server in parallel. In addition, the mail server 10 may establish communication with each of a plurality of delivery destination servers, and deliver an email to each delivery destination mail server in parallel.

また、一旦、配送先のメールサーバとのセッションが確立して配送処理が開始された電子メールは、その電子メールの配送処理が完了(正常終了、或いはエラー終了)するまで中断することはない。したがって、配送処理が開始された電子メールが後回しになることはない。   Also, an e-mail for which a session with the mail server of the delivery destination has been established and the delivery process is started will not be interrupted until the delivery process of the e-mail is completed (normal end or error end). Therefore, the e-mail for which the delivery process has been started is not delayed.

また、本実施形態のメールサーバ10は、配送処理が完了(正常終了、或いは、エラー終了)したスプールファイルを、スプール領域171から削除(消去)する処理を行う。なお、配送処理がエラー終了したスプールファイル(電子メール)は、エラー終了時点に基づき決定される配送予定時刻と優先度を決定してディレクトリを作成し、作成されたディレクトリに格納する。   In addition, the mail server 10 according to the present embodiment performs a process of deleting (erasing) the spool file for which the delivery process has been completed (normal end or error end) from the spool area 171. A spool file (e-mail) for which delivery processing has ended in error is determined by determining the scheduled delivery time and priority determined based on the error end time, creating a directory, and storing it in the created directory.

なお、スプールファイルを削除する前に、そのスプールファイルを、記憶部170のスプール領域171とは異なる記憶領域、或いは、他のコンピュータ(保存用のサーバ)の記憶領域に格納するようにしてもよい。   Before deleting the spool file, the spool file may be stored in a storage area different from the spool area 171 of the storage unit 170 or in a storage area of another computer (storage server). .

本実施形態のメールサーバ10は、このように、ステップS12〜S18によるループ(繰り返しの処理)、ステップS13〜S17によるループを行うが、”秒”ディレクトリ内のスプールファイルについての配送処理後、配送処理数が最大配送件数を超えたか否かを判断する(ステップS15)。つまり、本実施形態では、配送処理を行う度に配送処理数をカウントし(ステップS14)、カウントされた配送処理数が最大配送件数を超えた場合には、(ステップS15のyes)、ループを中断し処理を終了する(ステップS16)。一方、配送処理数が最大配送件数を超えていない場合には(ステップS15のno)、次の”秒”ディレクトリの配送処理を行う。   As described above, the mail server 10 according to the present embodiment performs a loop (repetition process) in steps S12 to S18 and a loop in steps S13 to S17. After the delivery process for the spool file in the “second” directory, the delivery is performed. It is determined whether or not the number of processes exceeds the maximum number of deliveries (step S15). In other words, in the present embodiment, the number of delivery processes is counted every time the delivery process is performed (step S14), and if the counted number of delivery processes exceeds the maximum number of deliveries (yes in step S15), a loop is executed. The process is interrupted and the process is terminated (step S16). On the other hand, when the number of delivery processes does not exceed the maximum number of deliveries (no in step S15), the next “second” directory delivery process is performed.

以上で、処理が終了する。本実施形態のメールサーバ10は、常駐型サーバであるので、1回の検索での配送処理が終了すると、スタートに戻り、図7の処理を繰り返し行う。   This is the end of the process. Since the mail server 10 of this embodiment is a resident server, when the delivery process in one search is completed, the process returns to the start and the process of FIG. 7 is repeated.

以上より、本実施形態によれば、メールサイズが所定サイズ(例えば、1メガバイト)より小さい電子メールが優先して配送され、所定サイズ以上の電子メールについては後回しに配送されるので、少なくとも所定サイズより小さい電子メールについては配送遅延を生じさせないようにすることができる。   As described above, according to the present embodiment, an email whose mail size is smaller than a predetermined size (for example, 1 megabyte) is preferentially delivered, and an email larger than the predetermined size is delivered later. Smaller emails can be prevented from causing delivery delays.

また、所定サイズ以上の電子メールについて配送処理を行う場合には、スプール領域171に格納されている電子メール数(スプールファイル数)が少なくなるので、所定サイズ以上の電子メールの配送処理を起因に発生する所定サイズ未満の電子メールの配送遅延を最小限に抑えることができる。   In addition, when delivery processing is performed for an e-mail having a predetermined size or more, the number of e-mails (the number of spool files) stored in the spool area 171 is reduced. It is possible to minimize a delivery delay of an e-mail having a size less than a predetermined size.

つまり、本実施形態のメールサーバ10によれば、図8に示すように、T100〜T103にかけて優先度50、40、30それぞれの電子メールがスプール領域171に格納されていた場合、N回目の検索、N+1回目の検索、N+2回目の検索のいずれも、まず優先度が50の電子メールの配送を優先的に行う。   That is, according to the mail server 10 of the present embodiment, as shown in FIG. 8, when the e-mails with the priorities 50, 40, and 30 are stored in the spool area 171 from T100 to T103, the Nth search In both the (N + 1) th search and the (N + 2) th search, first, delivery of an e-mail with a priority of 50 is preferentially performed.

例えば、N回目、N+1回目の検索では、優先度50の配送処理数が最大配送件数を超えてしまい、優先度40、30の配送ができない状況にあるといえる。しかしながら、所定サイズ未満の電子メールの配送を速やかに行うことができる。   For example, in the N-th and N + 1-th searches, it can be said that the number of delivery processes with priority 50 exceeds the maximum number of deliveries and delivery with priorities 40 and 30 is not possible. However, it is possible to quickly deliver an e-mail smaller than a predetermined size.

そして、N+2回目の検索では、優先度50の配送処理が終了した時点で配送処理数が最大配送件数を超えておらず優先度40の配送処理が開始され、さらに、優先度40の配送処理が終了した時点で配送処理数が最大配送件数を超えておらず優先度30の配送処理が開始されることになる。つまり、N+2回目の検索では、所定サイズ未満の電子メール数が少なくなり、所定サイズ未満の電子メールの配送後、所定サイズ以上の電子メールの配送処理が開始されることになる。したがって、所定サイズ以上の電子メールの配送処理を起因に発生する所定サイズ未満の電子メールの配送遅延を最小限に抑えることができる。   In the (N + 2) th search, when the delivery process with the priority level 50 ends, the delivery process number does not exceed the maximum delivery number and the delivery process with the priority level 40 is started. At the time of completion, the delivery process number does not exceed the maximum delivery number, and the delivery process with the priority 30 is started. That is, in the (N + 2) th search, the number of e-mails less than a predetermined size is reduced, and delivery of e-mails larger than a predetermined size is started after delivery of e-mails less than a predetermined size. Therefore, it is possible to minimize the delivery delay of the e-mail smaller than the predetermined size caused by the delivery process of the e-mail larger than the predetermined size.

(6)再配送処理
本実施形態のメールサーバ10は、配送処理を行った電子メールの配送がエラーであった場合には、その電子メールについて配送エラー時点を基準に所定期間後に再配送する。そこで、本実施形態では、再配送の対象の電子メールの優先度を下げるようにしてもよい。つまり、メールサーバ10は、配送エラーと判定された電子メールについて、再配送する処理を行う場合には、配送エラーと判定された電子メールの優先度を、当該電子メールの初回配送の優先度から異なる値に変更するようにしてもよい。
(6) Re-delivery processing When the delivery of the e-mail that has been delivered is an error, the mail server 10 according to the present embodiment re-delivery the e-mail after a predetermined period based on the time of delivery error. Therefore, in the present embodiment, the priority of the redelivery target e-mail may be lowered. That is, when the mail server 10 performs a process of redelivery of an electronic mail determined to be a delivery error, the mail server 10 determines the priority of the electronic mail determined to be a delivery error from the priority of the initial delivery of the electronic mail. You may make it change into a different value.

例えば、電子メール70の配送処理結果がエラーである場合には、メールサイズに基づき決定される優先度値から更に10減算し、減算した値を最終的な電子メール70の優先度に決定する。具体的には、電子メール70の初回配送時の優先度を50に決定し、電子メール70の初回配送がエラーであったとすると、電子メール70の優先度を50から40に変更する。そして、電子メール70の配送予定時刻を、エラー終了時点から10分後の時点に決定する。そして、決定された優先度と配送予定時刻に基づきディレクトリを作成し、作成されたディレクトリに電子メール70を格納する。   For example, when the delivery processing result of the electronic mail 70 is an error, 10 is further subtracted from the priority value determined based on the mail size, and the subtracted value is determined as the final priority of the electronic mail 70. Specifically, if the priority at the first delivery of the e-mail 70 is determined to be 50 and the first delivery of the e-mail 70 is an error, the priority of the e-mail 70 is changed from 50 to 40. Then, the scheduled delivery time of the e-mail 70 is determined to be 10 minutes after the end of the error. Then, a directory is created based on the determined priority and scheduled delivery time, and the e-mail 70 is stored in the created directory.

このようにすれば、初回配送の電子メール(再配送でない電子メール)を、再配送する電子メールに対して優先して配送することができる。通常、再配送の対象となる電子メールは、再度エラー結果になることがあり、かかる場合には処理時間が長くなる傾向、処理負荷が高くなる傾向にある。したがって、初回配送の電子メールを優先して配送し、再配送の電子メールを後回しにすることで結果的に遅延防止を図ることができる。   In this way, the first delivery e-mail (e-mail that is not re-delivery) can be preferentially delivered over the re-delivery e-mail. Usually, an e-mail to be redelivered may result in an error again. In such a case, the processing time tends to increase and the processing load tends to increase. Therefore, it is possible to prevent delay by delivering the first delivery e-mail with priority and postponing the re-delivery e-mail.

なお、本実施形態のメールサーバ10は、メールサイズにかかわらず、配送エラー回数に基づいて、優先度を決定してもよい。例えば、初回時は優先度を50に決定し、1回目のエラー時は優先度を40に決定し、2回目のエラー時は優先度を30に決定し、というように、配送エラー回数(再配送回数)が増加するにしたがって、優先度を下げるように決定してもよい。   Note that the mail server 10 of this embodiment may determine the priority based on the number of delivery errors regardless of the mail size. For example, the priority is set to 50 for the first time, the priority is set to 40 for the first error, the priority is set to 30 for the second error, and so on. It may be determined to lower the priority as the number of deliveries increases.

また、本実施形態のメールサーバ10は、メールサイズに基づき優先度を決定し、当該優先度から、配送エラー回数に応じた値を減算してもよい。例えば、図5のフローチャートに従って優先度を決定し、当該優先度から配送エラー回数に応じた値を減算する。例えば、初回配送時の優先度が30である場合、1回目の配送エラーが生じた場合には、優先度から所定値10減算する。つまり、再配送時の優先度は20になる。そして、2回目の配送エラーが生じた場合には、さらに優先度から所定値10を減算する。つまり、再々配送時の優先度は10になる。なお、繰り返し配送エラーになると優先度が負の値になる場合があるが、かかる場合には優先度を強制的に0に決定するようにしてもよい。   In addition, the mail server 10 according to the present embodiment may determine the priority based on the mail size, and subtract a value corresponding to the number of delivery errors from the priority. For example, the priority is determined according to the flowchart of FIG. 5, and a value corresponding to the number of delivery errors is subtracted from the priority. For example, when the priority at the time of the first delivery is 30, when the first delivery error occurs, the predetermined value 10 is subtracted from the priority. That is, the priority at the time of re-delivery is 20. When a second delivery error occurs, the predetermined value 10 is further subtracted from the priority. That is, the priority at the time of re-delivery is 10. Note that when a repeated delivery error occurs, the priority may become a negative value. In such a case, the priority may be forcibly determined to be 0.

(7)設定処理について
本実施形態でのメールサーバ10は、ユーザ(管理者)の入力情報に基づいて、メールサイズの大小の判断基準となる「所定サイズ」を設定する設定部を含んでいてもよい。また、設定部は、ユーザの入力情報に基づいて、優先度の「初期値」を設定するようにしてもよい。
(7) About Setting Processing The mail server 10 according to the present embodiment includes a setting unit that sets a “predetermined size” that serves as a criterion for determining the size of mail based on user (administrator) input information. Also good. The setting unit may set an “initial value” of the priority based on user input information.

また、本実施形態では、「1メガバイト」単位で、優先度の変動幅(下げ幅)を「10」にする例について説明したが、本実施形態のメールサーバ10の設定部は、ユーザの入力情報に基づいて、優先度の変動幅を制御するための電子メールの「サイズ単位」、及び、「変動幅」を設定するようにしてもよい。   In the present embodiment, an example in which the priority fluctuation range (decrease amount) is set to “10” in units of “1 megabyte” has been described. However, the setting unit of the mail server 10 according to the present embodiment receives user input. Based on the information, the “size unit” and “variation range” of the e-mail for controlling the fluctuation range of the priority may be set.

例えば、ユーザの入力情報に基づき、「所定サイズ」を「3メガバイト」に設定し、優先度の「初期値」を「50」に設定し、「サイズ単位」を「2メガバイト」に設定し、「変動幅」を「5」に設定した場合には、サイズが3メガバイト未満の電子メールについての優先度は初期値(50)に決定し、サイズが3メガバイト以上〜5メガバイト未満の電子メールについての優先度は45に決定し、サイズが5メガバイト以上〜7メガバイト未満の電子メールについての優先度は40に決定することになる。   For example, based on user input information, “predetermined size” is set to “3 megabytes”, priority “initial value” is set to “50”, “size unit” is set to “2 megabytes”, When “Variation” is set to “5”, the priority for e-mails whose size is less than 3 megabytes is determined to the initial value (50), and for e-mails whose size is 3 megabytes to less than 5 megabytes Is determined to be 45, and the priority for electronic mail having a size of 5 megabytes to less than 7 megabytes is determined to be 40.

また、本実施形態では、ユーザの入力情報に基づいて、1回の検索で配送する上限となる「最大配送件数」を設定できるようにしてもよい。   In the present embodiment, a “maximum number of deliveries” that is an upper limit for delivery in one search may be set based on user input information.

このようにすれば、管理者が電子メールの配送遅延を生じさせないようなメールサーバ10の設定を適切に行うことができる。   In this way, the administrator can appropriately set the mail server 10 so as not to cause a delay in delivery of electronic mail.

5.変形例
(1)優先度に基づく配送処理について
本実施形態では、電子メールのサイズが大きいほど、優先して配送するようにしてもよい。つまり、所定サイズ(例えば1メガバイト)以上の電子メールを、所定サイズ未満の電子メールよりも優先して配送してもよい。かかる場合には、優先度の決定処理を変形する、或いは、電子メールの配送順を優先度の昇順(優先度の低いものから順)にする。
5. Modifications (1) Delivery Processing Based on Priority In the present embodiment, delivery may be preferentially delivered as the size of the email is larger. That is, an electronic mail having a predetermined size (for example, 1 megabyte) or more may be delivered with priority over an electronic mail having a size smaller than the predetermined size. In such a case, the priority determination process is modified, or the delivery order of e-mails is changed to ascending order of priority (in order from the lowest priority).

例えば、優先度の決定処理を変形する場合には、所定サイズ(例えば1メガバイト)以上の電子メールは、所定サイズ未満の電子メールよりも優先度を高くする。そして、そのメールサイズが1メガバイト単位で大きくなる程、優先度が高くなるようにして、優先度を決定する処理を行うようにしてもよい。   For example, when the priority determination process is modified, an e-mail having a predetermined size (for example, 1 megabyte) or more has a higher priority than an e-mail having a size smaller than the predetermined size. Then, the priority may be increased as the mail size increases in units of 1 megabyte, and the priority determination process may be performed.

このようにすれば、メールサイズの大きなものを優先して配送したいという要望のある環境下においては、適切な順に電子メールを配送することができる。   In this way, e-mails can be delivered in an appropriate order in an environment where there is a desire to deliver a mail having a large mail size preferentially.

また、本実施形態では、初回配送の電子メールを、再配送の電子メールよりも優先して配送する例について説明したが、再配送の電子メールを初回配送の電子メールよりも優先して配送するようにしてもよい。かかる場合には、優先度の決定処理を変形する、或いは電子メールの配送順を優先度の昇順(優先度の低いものから順)にする。   In this embodiment, the example in which the first delivery e-mail is delivered with priority over the re-delivery e-mail has been described. However, the re-delivery e-mail is delivered with priority over the first delivery e-mail. You may do it. In such a case, the priority determination process is modified, or the electronic mail delivery order is changed to ascending order of priority (in order from the lowest priority).

例えば、優先度の決定処理を変形する場合には、電子メールの配送処理結果がエラーである場合には、配送エラー回数に応じて優先度が高くなるように優先度を決定する。例えば、配送エラー回数の増加にしたがって、優先度を10上げる(例えば、初回配送時の優先度が50である場合に配送エラーが生じた場合、その優先度を50から60に上げる)ようにしてもよい。なお、かかる場合には、優先度を図5のフローチャートに従って優先度を決定し、当該優先度から再送エラー回数に応じた数値(例えば、10)を加算するようにしてもよい。優先度が100より大きな値になる場合には、優先度を強制的に100に決定してもよい。   For example, when the priority determination process is modified, if the result of the electronic mail delivery process is an error, the priority is determined so as to increase the priority according to the number of delivery errors. For example, as the number of delivery errors increases, the priority is increased by 10 (for example, if a delivery error occurs when the priority at the time of initial delivery is 50, the priority is increased from 50 to 60). Also good. In such a case, the priority may be determined according to the flowchart of FIG. 5 and a numerical value (for example, 10) corresponding to the number of retransmission errors may be added from the priority. If the priority is a value greater than 100, the priority may be forcibly determined to be 100.

このようにすれば、スプール領域171に再配送の電子メールが蓄積され記憶領域が圧迫されるようなメールサーバ10の場合、配送遅延の問題よりも記憶領域を確保することができる。   In this way, in the case of the mail server 10 in which the redelivery electronic mail is accumulated in the spool area 171 and the storage area is compressed, the storage area can be secured rather than the problem of delivery delay.

(2)メールヘッダに記載された優先度に基づく配送処理
本実施形態のメールサーバ10は、電子メールのヘッダ部に記載された優先度情報に基づいて、電子メールの優先度を決定してもよい。例えば、”Subject”ヘッダに、“優先度60“という文字列がある場合には、優先度を60に決定し、決定された優先度に基づきスプールディレクトリに優先度ディレクトリを作成し、優先度に従って配送処理を行う。
(2) Delivery processing based on the priority described in the mail header The mail server 10 of the present embodiment may determine the priority of the e-mail based on the priority information described in the header of the e-mail. Good. For example, when the “Subject” header includes a character string “priority 60”, the priority is determined to be 60, and a priority directory is created in the spool directory based on the determined priority, and the priority is determined. Perform delivery processing.

(3)特定文字列に基づいて優先度を決定する処理
本実施形態のメールサーバ10は、受信した電子メールのヘッダ部やボディ部に特定文字列を検索し、検索結果に基づき優先度を決定するようにしてもよい。
(3) Processing for determining priority based on specific character string The mail server 10 of the present embodiment searches for a specific character string in the header part and body part of the received electronic mail, and determines the priority based on the search result. You may make it do.

例えば、「緊急」という文字列を特定文字列とした場合について説明すると、受信した電子メール(例えば、電子メールのヘッダ部やボディ部)に「緊急」の文字列が存在する場合には、優先度の初期値(=50)に、所定値(=10)を加算した値、すなわち60を、その電子メールの優先度として決定してもよい。一方、受信した電子メールのヘッダ部やボディ部に「緊急」の文字列が存在しない場合には、その電子メールの優先度を初期値(=50)に決定する。このようにすれば、緊急の電子メールについては、より優先的に配送することができる。   For example, the case where the character string “emergency” is a specific character string will be described. If the character string “emergency” exists in the received e-mail (for example, the header part or body part of the e-mail), priority is given. A value obtained by adding a predetermined value (= 10) to the initial value (= 50) of the degree, that is, 60 may be determined as the priority of the e-mail. On the other hand, when there is no “emergency” character string in the header part or body part of the received electronic mail, the priority of the electronic mail is determined to be an initial value (= 50). In this way, urgent electronic mail can be delivered with higher priority.

また、例えば、スパムメールを連想させる文字列を特定文字列として予め設定し、電子メールにその特定文字列が存在する場合には、優先度の初期値(=50)に、所定値(=40)を減算した値、すなわち10を、その電子メールの優先度として決定してもよい。このようにすれば、本来配送すべきでない電子メールの配送を後回しにすることができる。   Further, for example, when a character string reminiscent of spam mail is preset as a specific character string and the specific character string exists in the e-mail, a predetermined value (= 40) is set as the initial priority value (= 50). ), I.e., 10 may be determined as the priority of the e-mail. In this way, delivery of electronic mail that should not be delivered can be postponed.

また、本実施形態のメールサーバ10は、メールサイズと特定文字列の検索結果とに基づいて優先度を決定してもよい。例えば、図5のフローチャートに従って優先度を決定し、電子メールに特定文字列が存在する場合に、特定文字列に応じた値を加算(或いは減算)するようにしてもよい。なお、優先度が負の値になる場合には、優先度を強制的に0に決定するようにしてもよい。   Moreover, the mail server 10 of this embodiment may determine a priority based on a mail size and the search result of a specific character string. For example, the priority may be determined according to the flowchart of FIG. 5, and when a specific character string exists in the e-mail, a value corresponding to the specific character string may be added (or subtracted). When the priority is a negative value, the priority may be forcibly determined to be 0.

10 メールサーバ、100 処理部、111 受信部、112 優先度決定部、
113 配送予定時刻決定部、114 スプール制御部、115 配送部、
170 記憶部、171 スプール領域
10 mail server, 100 processing unit, 111 receiving unit, 112 priority determining unit,
113 scheduled delivery time determination unit, 114 spool control unit, 115 delivery unit,
170 Storage unit, 171 Spool area

Claims (6)

電子メールを配送するメールサーバのためのプログラムであって、
電子メールを受信する処理を行う受信部と、
前記電子メールの優先度を決定する処理を行う優先度決定部と、
前記電子メールの優先度に対応づけて、前記電子メールをスプール領域に格納する処理を行うスプール制御部と、
前記優先度に基づき前記スプール領域に格納された電子メールの配送順を決定し、決定された配送順に従って電子メールを配送する処理を行う配送部として、コンピュータを機能させ、
前記配送部が、
配送エラーと判定された電子メールについて、再配送する処理を行い、
前記優先度決定部が、
配送エラーと判定された電子メールの優先度を、当該電子メールの初回配送の優先度から、配送エラーの回数に応じて低い値に変更し、
前記配送部が、
優先度の高い電子メールを優先して配送する処理を行うことを特徴とするプログラム。
A program for a mail server that delivers electronic mail,
A receiving unit that performs processing to receive an email;
A priority determination unit that performs processing for determining the priority of the e-mail;
A spool control unit that performs processing for storing the email in a spool area in association with the priority of the email;
Determine a delivery order of emails stored in the spool area based on the priority, and function a computer as a delivery unit that performs processing to deliver emails according to the decided delivery order;
The delivery unit is
For emails that are determined to have a delivery error, re-deliver the email,
The priority determination unit
Change the priority of the email determined to be a delivery error from the first delivery priority of the email to a lower value according to the number of delivery errors ,
The delivery unit is
A program for performing a process of preferentially delivering an e-mail having a high priority .
電子メールを配送するメールサーバのためのプログラムであって、
電子メールを受信する処理を行う受信部と、
前記電子メールの優先度を決定する処理を行う優先度決定部と、
前記電子メールの優先度に対応づけて、前記電子メールをスプール領域に格納する処理を行うスプール制御部と、
前記優先度に基づき前記スプール領域に格納された電子メールの配送順を決定し、決定された配送順に従って電子メールを配送する処理を行う配送部として、コンピュータを機能させ、
前記配送部が、
配送エラーと判定された電子メールについて、再配送する処理を行い、
前記優先度決定部が、
配送エラーと判定された電子メールの優先度を、当該電子メールの初回配送の優先度か
高い値に変更し、
前記配送部が、
優先度の高い電子メールを優先して配送する処理を行うことを特徴とするプログラム。
A program for a mail server that delivers electronic mail,
A receiving unit that performs processing to receive an email;
A priority determination unit that performs processing for determining the priority of the e-mail;
A spool control unit that performs processing for storing the email in a spool area in association with the priority of the email;
Determine a delivery order of emails stored in the spool area based on the priority, and function a computer as a delivery unit that performs processing to deliver emails according to the decided delivery order;
The delivery unit is
For emails that are determined to have a delivery error, re-deliver the email,
The priority determination unit
Change the priority of the email that was determined to be a delivery error from the first delivery priority of the email to a higher value ,
The delivery unit is
A program for performing a process of preferentially delivering an e-mail having a high priority .
電子メールを配送するメールサーバのためのプログラムであって、
電子メールを受信する処理を行う受信部と、
前記電子メールの優先度を決定する処理を行う優先度決定部と、
前記電子メールの優先度に対応づけて、前記電子メールをスプール領域に格納する処理を行うスプール制御部と、
前記優先度に基づき前記スプール領域に格納された電子メールの配送順を決定し、決定された配送順に従って電子メールを配送する処理を行う配送部として、コンピュータを機能させ、
前記配送部が、
配送エラーと判定された電子メールについて、再配送する処理を行い、
前記優先度決定部が、
配送エラーと判定された電子メールの優先度を、当該電子メールの初回配送の優先度から、配送エラーの回数に応じて高い値に変更し、
前記配送部が、
優先度の高い電子メールを優先して配送する処理を行うことを特徴とするプログラム。
A program for a mail server that delivers electronic mail,
A receiving unit that performs processing to receive an email;
A priority determination unit that performs processing for determining the priority of the e-mail;
A spool control unit that performs processing for storing the email in a spool area in association with the priority of the email;
Determine a delivery order of emails stored in the spool area based on the priority, and function a computer as a delivery unit that performs processing to deliver emails according to the decided delivery order;
The delivery unit is
For emails that are determined to have a delivery error, re-deliver the email,
The priority determination unit
Change the priority of the email determined to be a delivery error from the first delivery priority of the email to a higher value according to the number of delivery errors ,
The delivery unit is
A program for performing a process of preferentially delivering an e-mail having a high priority .
電子メールを配送するメールサーバであって、A mail server that delivers email,
電子メールを受信する処理を行う受信部と、A receiving unit that performs processing to receive an email;
前記電子メールの優先度を決定する処理を行う優先度決定部と、A priority determination unit that performs processing for determining the priority of the e-mail;
前記電子メールの優先度に対応づけて、前記電子メールをスプール領域に格納する処理を行うスプール制御部と、A spool control unit that performs processing for storing the email in a spool area in association with the priority of the email;
前記優先度に基づき前記スプール領域に格納された電子メールの配送順を決定し、決定された配送順に従って電子メールを配送する処理を行う配送部と、を含み、A delivery unit that determines a delivery order of emails stored in the spool area based on the priority, and performs processing to deliver emails according to the decided delivery order;
前記配送部が、The delivery unit is
配送エラーと判定された電子メールについて、再配送する処理を行い、For emails that are determined to have a delivery error, re-deliver the email,
前記優先度決定部が、The priority determination unit
配送エラーと判定された電子メールの優先度を、当該電子メールの初回配送の優先度から、配送エラーの回数に応じて低い値に変更し、Change the priority of the email determined to be a delivery error from the first delivery priority of the email to a lower value according to the number of delivery errors,
前記配送部が、The delivery unit is
優先度の高い電子メールを優先して配送する処理を行うことを特徴とするメールサーバ。A mail server characterized in that a process for preferentially delivering high-priority electronic mail is performed.
電子メールを配送するメールサーバであって、
電子メールを受信する処理を行う受信部と、
前記電子メールの優先度を決定する処理を行う優先度決定部と、
前記電子メールの優先度に対応づけて、前記電子メールをスプール領域に格納する処理を行うスプール制御部と、
前記優先度に基づき前記スプール領域に格納された電子メールの配送順を決定し、決定された配送順に従って電子メールを配送する処理を行う配送部と、を含み、
前記配送部が、
配送エラーと判定された電子メールについて、再配送する処理を行い、
前記優先度決定部が
配送エラーと判定された電子メールの優先度を、当該電子メールの初回配送の優先度から高い値に変更し、
前記配送部が、
優先度の高い電子メールを優先して配送する処理を行うことを特徴とするメールサーバ
A mail server that delivers email,
A receiving unit that performs processing to receive an email;
A priority determination unit that performs processing for determining the priority of the e-mail;
A spool control unit that performs processing for storing the email in a spool area in association with the priority of the email;
A delivery unit that determines a delivery order of emails stored in the spool area based on the priority, and performs processing to deliver emails according to the decided delivery order;
The delivery unit is
For emails that are determined to have a delivery error, re-deliver the email,
The priority determination unit
Change the priority of the email that was determined to be a delivery error from the first delivery priority of the email to a higher value,
The delivery unit is
A mail server characterized by preferentially delivering high priority emails
.
電子メールを配送するメールサーバであって、
電子メールを受信する処理を行う受信部と、
前記電子メールの優先度を決定する処理を行う優先度決定部と、
前記電子メールの優先度に対応づけて、前記電子メールをスプール領域に格納する処理を行うスプール制御部と、
前記優先度に基づき前記スプール領域に格納された電子メールの配送順を決定し、決定された配送順に従って電子メールを配送する処理を行う配送部と、を含み、
前記配送部が、
配送エラーと判定された電子メールについて、再配送する処理を行い、
前記優先度決定部が
配送エラーと判定された電子メールの優先度を、当該電子メールの初回配送の優先度から、配送エラーの回数に応じて高い値に変更し、
前記配送部が、
優先度の高い電子メールを優先して配送する処理を行うことを特徴とするメールサーバ。
A mail server that delivers email,
A receiving unit that performs processing to receive an email;
A priority determination unit that performs processing for determining the priority of the e-mail;
A spool control unit that performs processing for storing the email in a spool area in association with the priority of the email;
A delivery unit that determines a delivery order of emails stored in the spool area based on the priority, and performs processing to deliver emails according to the decided delivery order;
The delivery unit is
For emails that are determined to have a delivery error, re-deliver the email,
The priority determination unit
Change the priority of the email determined to be a delivery error from the first delivery priority of the email to a higher value according to the number of delivery errors,
The delivery unit is
A mail server characterized in that a process for preferentially delivering high-priority electronic mail is performed.
JP2010165290A 2010-07-22 2010-07-22 Program, mail server Active JP5597466B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010165290A JP5597466B2 (en) 2010-07-22 2010-07-22 Program, mail server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010165290A JP5597466B2 (en) 2010-07-22 2010-07-22 Program, mail server

Publications (3)

Publication Number Publication Date
JP2012029009A JP2012029009A (en) 2012-02-09
JP2012029009A5 JP2012029009A5 (en) 2013-08-15
JP5597466B2 true JP5597466B2 (en) 2014-10-01

Family

ID=45781426

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010165290A Active JP5597466B2 (en) 2010-07-22 2010-07-22 Program, mail server

Country Status (1)

Country Link
JP (1) JP5597466B2 (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2998197B2 (en) * 1990-11-20 2000-01-11 富士通株式会社 Mail delivery order determination method
JPH10327200A (en) * 1997-03-03 1998-12-08 Toshiba Corp Distributed network computing system, information exchange method used in the system, storage medium storing this method, and information exchange device
JP3784703B2 (en) * 2001-11-28 2006-06-14 日本電信電話株式会社 Mail relay device
JP3804636B2 (en) * 2003-06-11 2006-08-02 日本電気株式会社 Mail transfer control system, method and program
US7660993B2 (en) * 2004-03-22 2010-02-09 Microsoft Corporation Cryptographic puzzle cancellation service for deterring bulk electronic mail messages

Also Published As

Publication number Publication date
JP2012029009A (en) 2012-02-09

Similar Documents

Publication Publication Date Title
EP3061215B1 (en) Conditional delivery of electronic messages
US8402096B2 (en) Automatic conversation techniques
US10601754B2 (en) Message delivery system using message metadata
US9264393B2 (en) Mail server-based dynamic workflow management
US8266230B2 (en) Active removal of e-mail recipient from replies and subsequent threads
JP5383660B2 (en) Synchronization of email messages between external email servers and / or local email servers and / or wireless devices
EP2817779B1 (en) Time-managed electronic mail messages
US10326723B2 (en) Method and system for disambiguated email notifications
US20070043866A1 (en) Predictive email actions and load prompts
JP2007080273A (en) System, method and program for controlling the presentation of e-mail messages after delivery (easy to present and monitor e-mail messages including replies for each constraint)
US7725549B2 (en) System and method for hunting out mail recipients in order to obtain a response
CN103297316A (en) Method and system for processing e-mail
US20080222253A1 (en) System and method of creating and rating items for social interactions
JP5597466B2 (en) Program, mail server
US8112488B2 (en) Methods and computer programs for formulating messaging platform capacity projections
US10554603B2 (en) Generating a recommendation as to who is able to provide information pertaining to an electronic communication based on activity information related to the electronic communication
JP6059559B2 (en) Apparatus and method for automatically sorting received mail according to priority
JP2011188245A (en) Mail processing server, control method and control program
CN114640385B (en) Data transmission method based on Beidou communication system and electronic equipment
WO2006091059A1 (en) Message managing system, message managing method and recording medium storing program for that method execution
US9143472B2 (en) Updating an e-mail recipient list
JP2011191944A (en) Device and method for supporting mailing list management and mail system
KR100657517B1 (en) System for creating and updating content nodes, methods for creating and updating content nodes, and storage media recording programs therefor
JP2000148614A (en) Electronic mail preserving device
WO2021131412A1 (en) Information processing device

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20130627

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20130627

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20140207

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20140305

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20140411

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20140730

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20140811

R150 Certificate of patent or registration of utility model

Ref document number: 5597466

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250