JP4844527B2 - Communication system, information processing apparatus, and program - Google Patents

Communication system, information processing apparatus, and program Download PDF

Info

Publication number
JP4844527B2
JP4844527B2 JP2007258783A JP2007258783A JP4844527B2 JP 4844527 B2 JP4844527 B2 JP 4844527B2 JP 2007258783 A JP2007258783 A JP 2007258783A JP 2007258783 A JP2007258783 A JP 2007258783A JP 4844527 B2 JP4844527 B2 JP 4844527B2
Authority
JP
Japan
Prior art keywords
server
mail
relay
transmission
communication
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.)
Expired - Fee Related
Application number
JP2007258783A
Other languages
Japanese (ja)
Other versions
JP2009089238A (en
Inventor
侑亮 島田
康博 工藤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Brother Industries Ltd
Original Assignee
Brother Industries Ltd
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 Brother Industries Ltd filed Critical Brother Industries Ltd
Priority to JP2007258783A priority Critical patent/JP4844527B2/en
Publication of JP2009089238A publication Critical patent/JP2009089238A/en
Application granted granted Critical
Publication of JP4844527B2 publication Critical patent/JP4844527B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Description

本発明は、メールサーバとして機能する複数のサーバ装置を備えた通信システムに関するものである。   The present invention relates to a communication system including a plurality of server devices that function as mail servers.

特許文献1には、プライベートIPアドレスのみを有する端末間でインターネット電話による通話を可能とするため、PhoneGateサーバを介して通話を行わせる技術が示されている。すなわち、このような状況では各端末から相手側端末へ直接アクセスすることができないので、各端末はそれぞれPhoneGateサーバに対して自己の通話データをアップロードする。これにより、PhoneGateサーバは、各端末において生成された通話データを取得し、各端末がPhoneGateサーバから通話データをダウンロードして再生することにより通話が成立する。
特開2004−172771号公報
Japanese Patent Application Laid-Open No. 2004-228561 discloses a technique for making a call via a PhoneGate server in order to enable a call by an Internet telephone between terminals having only a private IP address. That is, in such a situation, since each terminal cannot directly access the counterpart terminal, each terminal uploads its own call data to the PhoneGate server. As a result, the PhoneGate server acquires the call data generated at each terminal, and the call is established when each terminal downloads and plays the call data from the PhoneGate server.
JP 2004-172771 A

ところで、電子メールの送受信を行うメールサーバ間の通信においても、送信元のメールサーバから送信先のメールサーバへ直接アクセスすることができない状況が生じ得る。
しかしながら、前述した特許文献1に記載の構成はインターネット電話に関するものであり、各端末とPhoneGateサーバとが常時接続されていることが前提となるため、メールサーバのように必要時にのみ通信が行われる環境にそのまま適用することはできない。
By the way, even in communication between mail servers that perform transmission / reception of e-mails, a situation may occur in which direct access from the transmission source mail server to the transmission destination mail server is not possible.
However, the configuration described in Patent Document 1 described above relates to the Internet telephone, and since it is assumed that each terminal and the PhoneGate server are always connected, communication is performed only when necessary like a mail server. It cannot be applied directly to the environment.

本発明は、こうした問題にかんがみてなされたものであり、外部ネットワークからのアクセスが制限された状態にあるメールサーバに対して電子メールの送信を可能とすることを目的としている。   The present invention has been made in view of these problems, and an object of the present invention is to make it possible to send an electronic mail to a mail server in which access from an external network is restricted.

上記目的を達成するためになされた第1の構成の通信システムは、メールサーバとして機能する複数のサーバ装置と、サーバ装置間の通信を中継する中継装置とが、通信可能に構成されたものである。 The communication system of the first configuration made to achieve the above object is configured such that a plurality of server devices functioning as mail servers and a relay device that relays communication between server devices can communicate with each other. is there.

そして、サーバ装置は、中継装置に対して定期的に通信を行う定期通信手段と、他のサーバ装置へ電子メールを送信する場合に、中継装置に対して電子メールの中継を要求するメール送信手段とを備える。   Then, the server device periodically transmits communication means for periodically communicating with the relay device, and mail transmitting means for requesting the relay device to relay the electronic mail when transmitting the electronic mail to another server device. With.

また、中継装置は、サーバ装置から電子メールの中継を要求された場合に、要求元のサーバ装置による当該中継装置に対する通信と電子メールの送信先のサーバ装置による当該中継装置に対する通信とが重複したタイミングで行われるように調整する調整手段と、調整手段により調整されたタイミングで、要求元のサーバ装置から送信されてきた電子メールを送信先のサーバ装置へ送信されるように中継する中継手段とを備える。   In addition, when the relay device is requested to relay an e-mail from the server device, the communication with the relay device by the requesting server device and the communication with the relay device by the server device to which the e-mail is transmitted overlap. Adjusting means for adjusting to be performed at the timing, and relay means for relaying the e-mail transmitted from the requesting server apparatus to the destination server apparatus at the timing adjusted by the adjusting means, Is provided.

このような通信システムによれば、NAT(Network Address Translation)やファイアウォール等によって外部ネットワークからのアクセスが制限された状態にあるサーバ装置に対しても電子メールを送信することができる。   According to such a communication system, an e-mail can be transmitted to a server apparatus in which access from an external network is restricted by a NAT (Network Address Translation), a firewall, or the like.

また、第2の構成の通信システムでは、調整手段は、サーバ装置から電子メールの中継を要求された場合に、送信先のサーバ装置が当該中継装置に対して定期的に行う通信のタイミングに合わせた送信タイミングを要求元のサーバ装置に通知し、メール送信手段は、中継装置から通知された送信タイミングで中継装置に対して電子メールを送信する。 Further, in the communication system having the second configuration , when the server device is requested to relay the e-mail, the adjustment unit matches the timing of communication that the destination server device periodically performs with respect to the relay device. The transmission timing is notified to the requesting server device, and the mail transmission means transmits an e-mail to the relay device at the transmission timing notified from the relay device.

このような通信システムによれば、送信先のサーバ装置が中継装置に対して定期的に行う通信をそのまま利用して、要求元のサーバ装置からの電子メールを送信先のサーバ装置へ中継することができる。   According to such a communication system, the e-mail from the request source server apparatus is relayed to the transmission destination server apparatus using the communication periodically performed by the transmission destination server apparatus to the relay apparatus as it is. Can do.

また、第3の構成の通信システムでは、メール送信手段は、送信時刻が指定された電子メールを他のサーバ装置へ送信する場合に、中継装置に対して送信時刻での電子メールの中継を要求し、調整手段は、サーバ装置から送信時刻での電子メールの中継を要求された場合には、送信先のサーバ装置が送信時刻に合わせたタイミングで当該中継装置に対して通信を行うように調整する。 In the communication system of the third configuration , the mail transmission means requests the relay device to relay the email at the transmission time when transmitting the email with the specified transmission time to another server device. Then, the adjustment means adjusts so that when the server device requests relay of the e-mail at the transmission time, the destination server device communicates with the relay device at a timing matched with the transmission time. To do.

このような通信システムによれば、要求元のサーバ装置からの電子メールを、指定された送信時刻に送信先のサーバ装置へ中継することができる。
また、第4の構成の通信システムでは、調整手段は、調整したタイミングで要求元のサーバ装置及び送信先のサーバ装置のうちの少なくとも一方から当該中継装置に対して通信が行われなかった場合には、要求元のサーバ装置による当該中継装置に対する通信と送信先のサーバ装置による当該中継装置に対する通信とが重複したタイミングで行われるように再調整する。
According to such a communication system, an e-mail from a request source server device can be relayed to a destination server device at a specified transmission time.
Further, in the communication system of the fourth configuration , the adjustment unit is configured to communicate with the relay device from at least one of the request source server device and the transmission destination server device at the adjusted timing. The readjustment is performed so that the communication with the relay device by the requesting server device and the communication with the relay device by the destination server device are performed at overlapping timings.

このような通信システムによれば、何らかの原因で電子メールの中継ができなかった場合には再度中継を試みるため、一時的な原因で電子メールが送信されなくなってしまうことを防ぐことができる。   According to such a communication system, when the e-mail cannot be relayed for some reason, the e-mail is not transmitted due to a temporary cause because the relay is tried again.

次に、第5の構成の情報処理装置は、メールサーバとして機能する複数のサーバ装置と、サーバ装置間の通信を中継する中継装置とが、通信可能に構成された通信システムにおいてサーバ装置として用いられるものである。そして、この情報処理装置は、中継装置に対して定期的に通信を行う定期通信手段と、他のサーバ装置へ電子メールを送信する場合に、中継装置に対して電子メールの中継を要求するメール送信手段とを備える。 Next, an information processing apparatus having a fifth configuration is used as a server apparatus in a communication system configured such that a plurality of server apparatuses functioning as mail servers and a relay apparatus that relays communication between server apparatuses can communicate with each other. It is The information processing apparatus includes a periodic communication unit that periodically communicates with the relay apparatus, and a mail that requests the relay apparatus to relay the e-mail when the e-mail is transmitted to another server apparatus. Transmitting means.

このような情報処理装置によれば、第1の構成の通信システムを構築することができ、これにより前述した効果を得ることができる。
次に、第6の構成の情報処理装置は、メールサーバとして機能する複数のサーバ装置と、サーバ装置間の通信を中継する中継装置とが、通信可能に構成された通信システムにおいて中継装置として用いられるものである。そして、この情報処理装置は、サーバ装置から電子メールの中継を要求された場合に、要求元のサーバ装置による当該中継装置に対する通信と電子メールの送信先のサーバ装置による当該中継装置に対する通信とが重複したタイミングで行われるように調整する調整手段と、調整手段により調整されたタイミングで、要求元のサーバ装置から送信されてきた電子メールを送信先のサーバ装置へ送信されるように中継する中継手段とを備える。
According to such an information processing apparatus, the communication system having the first configuration can be constructed, and thereby the above-described effects can be obtained.
Next, an information processing apparatus having a sixth configuration is used as a relay apparatus in a communication system in which a plurality of server apparatuses functioning as mail servers and a relay apparatus that relays communication between server apparatuses can communicate with each other. It is When the server device is requested to relay an email, the information processing device performs communication between the requesting server device to the relay device and communication between the email destination server device to the relay device. An adjustment unit that adjusts to be performed at an overlapping timing, and a relay that relays an e-mail transmitted from the request source server device to the destination server device at the timing adjusted by the adjustment unit Means.

このような情報処理装置によれば、第1の構成の通信システムを構築することができ、これにより前述した効果を得ることができる。
次に、第7の構成のプログラムは、メールサーバとして機能する複数のサーバ装置と、サーバ装置間の通信を中継する中継装置とが、通信可能に構成された通信システムにおけるサーバ装置としてコンピュータを機能させるためのものである。そして、このプログラムは、中継装置に対して定期的に通信を行う定期通信手段と、他のサーバ装置へ電子メールを送信する場合に、中継装置に対して電子メールの中継を要求するメール送信手段としてコンピュータを機能させる。
According to such an information processing apparatus, the communication system having the first configuration can be constructed, and thereby the above-described effects can be obtained.
Next, a program having a seventh configuration functions as a server device in a communication system in which a plurality of server devices functioning as mail servers and a relay device that relays communication between server devices are configured to communicate with each other. It is for making it happen. The program includes a periodic communication unit that periodically communicates with the relay device, and a mail transmission unit that requests the relay device to relay the e-mail when the e-mail is transmitted to another server device. As a computer to function.

このようなプログラムによれば、第5の構成の情報処理装置としてコンピュータを機能させることができ、これにより前述した効果を得ることができる。
次に、第8の構成のプログラムは、メールサーバとして機能する複数のサーバ装置と、サーバ装置間の通信を中継する中継装置とが、通信可能に構成された通信システムにおける中継装置としてコンピュータを機能させるためのものである。そして、このプログラムは、サーバ装置から電子メールの中継を要求された場合に、要求元のサーバ装置による当該中継装置に対する通信と電子メールの送信先のサーバ装置による当該中継装置に対する通信とが重複したタイミングで行われるように調整する調整手段と、調整手段により調整されたタイミングで、要求元のサーバ装置から送信されてきた電子メールを送信先のサーバ装置へ送信されるように中継する中継手段としてコンピュータを機能させる。
According to such a program, it is possible to cause the computer to function as the information processing apparatus having the fifth configuration , thereby obtaining the effects described above.
Next, a program having an eighth configuration functions as a relay device in a communication system in which a plurality of server devices that function as mail servers and a relay device that relays communication between server devices can communicate with each other. It is for making it happen. In this program, when the server device requests relaying of the email, the communication to the relay device by the requesting server device and the communication to the relay device by the server device to which the email is transmitted are duplicated. As an adjustment unit that adjusts to be performed at the timing, and a relay unit that relays an e-mail transmitted from the request source server device to the destination server device at the timing adjusted by the adjustment unit Make the computer work.

このようなプログラムによれば、第6の構成の情報処理装置としてコンピュータを機能させることができ、これにより前述した効果を得ることができる。 According to such a program, it is possible to cause the computer to function as the information processing apparatus having the sixth configuration , thereby obtaining the effects described above.

以下、本発明が適用された実施形態について、図面を用いて説明する。
[1.全体構成]
図1は、実施形態の通信システムの概略構成を示すブロック図である。
Embodiments to which the present invention is applied will be described below with reference to the drawings.
[1. overall structure]
FIG. 1 is a block diagram illustrating a schematic configuration of a communication system according to an embodiment.

同図に示すように、この通信システムは、複数のメールサーバ10,10,…と、認証サーバ30とが、インターネット50を介してデータ通信可能に構成されたものである。
[1−1.通信システムにおけるメールサーバ及び認証サーバの役割]
ここで、まず、この通信システムにおけるメールサーバ10及び認証サーバ30の主な役割について簡単に説明する。なお、各内容の詳細については後述する。
As shown in the figure, this communication system is configured such that a plurality of mail servers 10, 10,... And an authentication server 30 are capable of data communication via the Internet 50.
[1-1. Role of mail server and authentication server in communication system]
Here, first, main roles of the mail server 10 and the authentication server 30 in this communication system will be briefly described. Details of each content will be described later.

<メールサーバの役割>
・正規のメールサーバであることを認証サーバ30に証明してもらうため、起動時に認証サーバ30へ問い合わせをする。
・認証サーバ30に対して定期的に問い合わせをする。
・他のメールサーバ10との間で電子メールを送受信する。
・メール送信時に認証サーバ30へ問い合わせをして、メール送信の許可をもらう。
・電子メールの予約送信(ユーザにより指定された送信時刻での送信)を行う。
<Role of mail server>
In order to have the authentication server 30 prove that it is a legitimate mail server, an inquiry is made to the authentication server 30 at the time of activation.
Inquires the authentication server 30 periodically.
-Send and receive e-mail to and from other mail servers 10.
-Inquires the authentication server 30 at the time of mail transmission and obtains permission for mail transmission.
-E-mail reservation transmission (transmission at the transmission time specified by the user).

<認証サーバの役割>
・メールサーバ10の認証を行う。そして、認証に合格したメールサーバ10のメール送信を許可し、不合格であるメールサーバ10のメール送信を禁止する。
・メールサーバ10のDNS(Domain Name System)解決を行う。すなわち、メールサーバ10は、他のメールサーバ10への電子メールの送信時に、送信先のIPアドレスを知るために認証サーバ30に問い合わせをする。なお、DNS解決に関する詳細な説明は省略する。
・送信側メールサーバ10と受信側メールサーバ10とが共に認証サーバ30にセッションを張っている状態で、送信側メールサーバ10からの電子メールを中継して受信側メールサーバ10へ送信する。具体的には、送信側メールサーバ10が受信側メールサーバ10へ電子メールを送信する際に、送信側メールサーバ10が認証サーバ30にDNS解決の問い合わせをしたら、送信側メールサーバ10に対して受信側メールサーバ10が次に認証サーバ30に問い合わせにくるタイミングに合わせて、認証サーバ30に問い合わせるように通知する。ただし、予約送信メールの場合には、受信側メールサーバ10の問い合わせ時刻を指定する。例えば、10時00分に送信予約された電子メールの場合、9時59分の問い合わせは不要であると判断して、10時00分に問い合わせにくるように次の問い合わせ時に指定する。
・送信側メールサーバ10及び受信側メールサーバ10のうちの少なくとも一方からの問い合わせが指定時刻にこなかった場合、問い合わせ時刻を再設定する。ただし、最初の指定時刻から一定時間が経過しても改善しなければ処理を終了する。
<Role of authentication server>
-Authentication of the mail server 10 is performed. And the mail transmission of the mail server 10 which passed authentication is permitted, and the mail transmission of the mail server 10 which is unsuccessful is prohibited.
-DNS (Domain Name System) solution of the mail server 10 is performed. That is, the mail server 10 makes an inquiry to the authentication server 30 to know the destination IP address when sending an electronic mail to another mail server 10. A detailed description of DNS resolution will be omitted.
In a state where both the transmission side mail server 10 and the reception side mail server 10 have a session with the authentication server 30, the electronic mail from the transmission side mail server 10 is relayed and transmitted to the reception side mail server 10. Specifically, when the sending mail server 10 sends an e-mail to the receiving mail server 10, if the sending mail server 10 makes a DNS resolution inquiry to the authentication server 30, the sending mail server 10 asks the sending mail server 10. The receiving side mail server 10 notifies the authentication server 30 to make an inquiry in accordance with the next timing for making an inquiry to the authentication server 30. However, in the case of reserved transmission mail, the inquiry time of the receiving mail server 10 is designated. For example, in the case of an e-mail reserved for transmission at 10:00, it is determined that an inquiry at 9:59 is unnecessary, and an inquiry is specified at the next inquiry so that an inquiry is made at 10:00.
If the inquiry from at least one of the transmission side mail server 10 and the reception side mail server 10 does not come at the specified time, the inquiry time is reset. However, if there is no improvement even after a certain period of time has elapsed since the first designated time, the process ends.

[1−2.メールサーバの構成]
次に、メールサーバ10の構成について説明する。
この通信システムにおいて、各メールサーバ10は、一般家庭やSOHO(Small Office/ Home Office)等で構築される小規模ネットワーク(ローカルエリア)内に存在する比較的少数の端末装置(例えばパーソナルコンピュータ)のメールサーバとして機能する。本実施形態では、電話(音声通信)機能、スキャナ機能、プリンタ機能、コピー機能、インターネットファクシミリ機能等に加え、メールサーバ機能を有する複合機がメールサーバ10として用いられている。
[1-2. Mail server configuration]
Next, the configuration of the mail server 10 will be described.
In this communication system, each mail server 10 includes a relatively small number of terminal devices (for example, personal computers) existing in a small network (local area) constructed by a general household or SOHO (Small Office / Home Office). Functions as a mail server. In this embodiment, a multifunction machine having a mail server function in addition to a telephone (voice communication) function, a scanner function, a printer function, a copy function, an Internet facsimile function, and the like is used as the mail server 10.

図2は、複合機であるメールサーバ10の概略構成を示すブロック図である。
同図に示すように、メールサーバ10は、制御部11、音入力部15、音出力部16、通信部17、操作部18、表示部19、画像読取部20、画像印刷部21及び記憶部22を備えている。
FIG. 2 is a block diagram showing a schematic configuration of the mail server 10 which is a multifunction machine.
As shown in the figure, the mail server 10 includes a control unit 11, a sound input unit 15, a sound output unit 16, a communication unit 17, an operation unit 18, a display unit 19, an image reading unit 20, an image printing unit 21, and a storage unit. 22 is provided.

制御部11は、CPU12、ROM13、RAM14等からなるマイクロコンピュータを中心に構成されており、メールサーバ10を構成する各部を統括制御する。
音入力部15は、メールサーバ10が備える図示しないハンドセットに設けられたマイクから音を入力して制御部11へ出力する。
The control unit 11 is mainly configured by a microcomputer including a CPU 12, a ROM 13, a RAM 14, and the like, and comprehensively controls each unit constituting the mail server 10.
The sound input unit 15 inputs sound from a microphone provided in a handset (not shown) included in the mail server 10 and outputs the sound to the control unit 11.

音出力部16は、制御部11からの指令に基づき、ハンドセットに設けられたスピーカやメールサーバ10が備える図示しないスピーカから音を出力する。
通信部17は、通信ケーブル(LANケーブル)が接続された状態でその通信ケーブルを介したデータの送受信処理を行う。つまり、外部装置との間でデータ通信を行うためのものであり、例えば、LAN内の端末装置(図示せず)や、インターネット50を介して接続された他のメールサーバ10や認証サーバ30との間でデータ通信が可能となっている。
The sound output unit 16 outputs sound from a speaker (not shown) provided in the handset or the mail server 10 based on a command from the control unit 11.
The communication unit 17 performs data transmission / reception processing via the communication cable in a state where the communication cable (LAN cable) is connected. That is, for data communication with an external device, for example, with a terminal device (not shown) in the LAN, other mail server 10 or authentication server 30 connected via the Internet 50 Data communication is possible between the two.

操作部18は、ユーザからの外部操作による指令を入力するためのものであり、各種操作ボタン(図示せず)を備えている。そして、操作部18は、操作ボタンで行われた外部操作の内容を制御部11へ出力する。   The operation unit 18 is for inputting a command by an external operation from the user, and includes various operation buttons (not shown). Then, the operation unit 18 outputs the content of the external operation performed with the operation button to the control unit 11.

表示部19は、ユーザに対して各種情報を表示するためのものであり、液晶ディスプレイ(図示せず)を備えている。そして、表示部19は、制御部11からの指令に基づき、メッセージや画像等の情報を表示する。   The display unit 19 is for displaying various types of information to the user, and includes a liquid crystal display (not shown). And the display part 19 displays information, such as a message and an image, based on the instruction | command from the control part 11. FIG.

画像読取部(スキャナ)20は、制御部11からの指令に基づき、所定の原稿読取位置にセットされた原稿の画像を読み取り、この画像を表す画像データを生成する。
画像印刷部(プリンタ)21は、制御部11からの指令に基づき、用紙等の印刷媒体にカラー画像を印刷する。なお、画像印刷部21により印刷される画像としては、例えば、画像読取部20により読み取られた画像、ファクシミリ機能により受信した画像、端末装置等の外部装置から受信した画像などが挙げられる。
The image reading unit (scanner) 20 reads an image of a document set at a predetermined document reading position based on a command from the control unit 11 and generates image data representing the image.
The image printing unit (printer) 21 prints a color image on a printing medium such as paper based on a command from the control unit 11. Examples of the image printed by the image printing unit 21 include an image read by the image reading unit 20, an image received by a facsimile function, and an image received from an external device such as a terminal device.

記憶部22は、図示しないハードディスクや記憶情報の書換えが不可能なメモリ等に各種データを記憶する。具体的には、後述する処理(図8〜図10)をCPU12に実行させるためのプログラムがハードディスクに記憶されている。また、記憶情報の書換えが不可能なメモリには、各メールサーバ10に固有の情報としてID(メールサーバ10の識別情報であり、例えば製造番号やMACアドレス)及びパスワードがあらかじめ記憶されている。このうち、少なくともパスワードは、メールサーバ10の外部からは読み出すことができないようになっている。   The storage unit 22 stores various data in a hard disk (not shown) or a memory in which stored information cannot be rewritten. Specifically, a program for causing the CPU 12 to execute processing (FIGS. 8 to 10) described later is stored in the hard disk. In addition, in a memory in which stored information cannot be rewritten, an ID (identification information of the mail server 10, for example, a manufacturing number or a MAC address) and a password are stored in advance as information unique to each mail server 10. Among these, at least the password cannot be read from the outside of the mail server 10.

[1−3.認証サーバの構成]
次に、認証サーバ30の構成について説明する。
図3は、認証サーバ30の概略構成を示すブロック図である。
[1-3. Configuration of authentication server]
Next, the configuration of the authentication server 30 will be described.
FIG. 3 is a block diagram illustrating a schematic configuration of the authentication server 30.

同図に示すように、認証サーバ30は、制御部31、通信部35及び記憶部36を備えている。
制御部31は、CPU32、ROM33、RAM34等からなるマイクロコンピュータを中心に構成されており、認証サーバ30を構成する各部を統括制御する。
As shown in the figure, the authentication server 30 includes a control unit 31, a communication unit 35, and a storage unit 36.
The control unit 31 is configured mainly with a microcomputer including a CPU 32, a ROM 33, a RAM 34, and the like, and comprehensively controls each unit configuring the authentication server 30.

通信部35は、インターネット50を介したデータの送受信処理を行う。
記憶部36は、図示しないハードディスクや記憶情報の書換えが不可能なメモリ等に各種データを記憶する。具体的には、後述する処理(図11〜図13)をCPU12に実行させるためのプログラムがハードディスクに記憶されている。
The communication unit 35 performs data transmission / reception processing via the Internet 50.
The storage unit 36 stores various data in a hard disk (not shown) or a memory in which stored information cannot be rewritten. Specifically, a program for causing the CPU 12 to execute processing (FIGS. 11 to 13) described later is stored in the hard disk.

また、記憶情報の書換えが不可能なメモリには、当該認証サーバ30が管理対象とする複数のメールサーバ10の情報として、各メールサーバ10のID及びパスワード(各メールサーバ10に記憶されているID及びパスワードと同一の情報)があらかじめ記憶されている。本実施形態では、前述したようにメールサーバ機能を有する複合機がメールサーバ10として用いられており、こうしたメールサーバ10が認証サーバ30の管理対象となっている。具体的には、例えば、メールサーバ(複合機)10の販売メーカが運営する認証サーバ30により各メールサーバ10の情報を管理するといったケースが考えられる。   Further, in the memory in which stored information cannot be rewritten, the ID and password of each mail server 10 (stored in each mail server 10 as information of a plurality of mail servers 10 managed by the authentication server 30). The same information as the ID and password is stored in advance. In the present embodiment, as described above, a multifunction machine having a mail server function is used as the mail server 10, and such a mail server 10 is a management target of the authentication server 30. Specifically, for example, a case where the information of each mail server 10 is managed by the authentication server 30 operated by the manufacturer of the mail server (multifunction machine) 10 can be considered.

さらに、記憶部36のハードディスク(記憶情報の書換えが可能な記憶手段)には、管理対象のメールサーバ10に関する情報を登録して管理するためのデータベースである登録サーバデータベース(登録サーバDB)が記憶されている。   Furthermore, a registration server database (registration server DB), which is a database for registering and managing information related to the mail server 10 to be managed, is stored in the hard disk (storage means capable of rewriting stored information) of the storage unit 36. Has been.

この登録サーバデータベースは、管理対象のメールサーバ10のうち、信頼できる(例えば、迷惑メールを送信しない)メールサーバ10のみを登録するためのものである。具体的には、認証サーバ30は、管理対象のメールサーバ10からの登録要求を受けることにより、そのメールサーバ10に関する情報(サーバ情報)を登録サーバデータベースに登録する。その後に、登録サーバデータベースにサーバ情報が登録されているメールサーバ10が迷惑メールを送信したことが判明した場合には、そのメールサーバ10のサーバ情報を登録サーバデータベースから削除する。具体的には、迷惑メールを受信したメールサーバ10からの通知に基づき自動的に削除したり、認証サーバ30の管理者が人為的に削除したりすることで実現することができる。   This registration server database is for registering only the mail servers 10 that are reliable (for example, do not transmit spam mail) among the mail servers 10 to be managed. Specifically, the authentication server 30 registers information (server information) regarding the mail server 10 in the registration server database by receiving a registration request from the mail server 10 to be managed. After that, when it is found that the mail server 10 whose server information is registered in the registered server database has transmitted junk mail, the server information of the mail server 10 is deleted from the registered server database. Specifically, it can be realized by automatically deleting it based on the notification from the mail server 10 that received the junk mail, or by the administrator of the authentication server 30 deleting it artificially.

なお、サーバ情報には、メールサーバ10のIDやIPアドレスなどが含まれる。
[2.通信システムで実現される処理]
次に、本実施形態の通信システムで実現される処理について説明する。
The server information includes the ID and IP address of the mail server 10.
[2. Processing realized in communication system]
Next, processing realized by the communication system of this embodiment will be described.

前述したように、この通信システムにおいて、各メールサーバ10は、一般家庭やSOHO等で構築される小規模ネットワーク内に存在する比較的少数の端末装置のメールサーバとして機能する。このようなメールサーバ10には、グローバルIPアドレスではなくプライベートIPアドレスが用いられるとともに、NATやファイアウォール等によって外部ネットワークからのアクセスが制限された状態にあることが考えられる。この場合、電子メールの送信元のメールサーバ(以下「送信側メールサーバ」ともいう。)10から、電子メールの送信先のメールサーバ(以下「受信側メールサーバ」ともいう。)10へ直接セッションを張ることができない。そこで、本実施形態の通信システムでは、このような環境においてもメールサーバ10同士の電子メールの送受信を行うことができるようにしている。   As described above, in this communication system, each mail server 10 functions as a mail server for a relatively small number of terminal devices existing in a small-scale network constructed by a general household or SOHO. In such a mail server 10, a private IP address is used instead of a global IP address, and it is considered that access from an external network is restricted by a NAT, a firewall, or the like. In this case, a direct session from a mail server 10 (hereinafter also referred to as “transmitting mail server”) 10 to a mail server 10 (hereinafter also referred to as “receiving mail server”) as an email transmission destination. I can not put up. Therefore, in the communication system of the present embodiment, it is possible to send and receive e-mail between the mail servers 10 even in such an environment.

ここで、この通信システムで行われるメール送受信処理の概要について説明する。
[2−1.メール送受信処理例(1)]
まず、送信側メールサーバ10から受信側メールサーバ10へセッションを張ることができる場合であって、送信側メールサーバ10が予約送信メールでない通常の電子メールを送信するときのメール送受信処理について、図4を用いて説明する。
Here, an outline of mail transmission / reception processing performed in the communication system will be described.
[2-1. Email transmission / reception processing example (1)]
First, a mail transmission / reception process when a session can be established from the sending mail server 10 to the receiving mail server 10 and when the sending mail server 10 transmits a normal e-mail that is not a reserved sending mail is shown in FIG. 4 will be described.

電子メールを送信しようとする送信側メールサーバ10は、認証サーバに対して認証要求(電子メールの送信要求)を行う。すると、認証サーバ30は、送信側メールサーバ10に対して認証OKの認証結果を送信する。   The sending mail server 10 that is going to send an e-mail makes an authentication request (e-mail sending request) to the authentication server. Then, the authentication server 30 transmits an authentication OK authentication result to the transmission side mail server 10.

そして、認証サーバ30は、送信側メールサーバ10に対して送信許可を通知する。これにより、送信側メールサーバ10は、受信側メールサーバ10へ電子メールを直接送信し、受信側メールサーバ10がその電子メールを受信する。   Then, the authentication server 30 notifies the transmission side mail server 10 of transmission permission. Thereby, the transmission side mail server 10 directly transmits an electronic mail to the reception side mail server 10, and the reception side mail server 10 receives the electronic mail.

[2−2.メール送受信処理例(2)]
次に、送信側メールサーバ10から受信側メールサーバ10へセッションを張ることができる場合であって、送信側メールサーバ10が予約送信メールを送信するときのメール送受信処理について、図5を用いて説明する。
[2-2. Email transmission / reception processing example (2)]
Next, a mail transmission / reception process when a session can be established from the transmission side mail server 10 to the reception side mail server 10 and the transmission side mail server 10 transmits a reserved transmission mail will be described with reference to FIG. explain.

電子メールを送信しようとする送信側メールサーバ10は、認証サーバに対して認証要求(電子メールの送信要求)を行う。すると、認証サーバ30は、送信側メールサーバ10に対して認証OKの認証結果を送信する。   The sending mail server 10 that is going to send an e-mail makes an authentication request (e-mail sending request) to the authentication server. Then, the authentication server 30 transmits an authentication OK authentication result to the transmission side mail server 10.

その後、予約送信メールで指定された送信時刻になると、認証サーバ30は、送信側メールサーバ10に対して送信許可を通知する。これにより、送信側メールサーバ10は、受信側メールサーバ10へ電子メールを直接送信し、受信側メールサーバ10がその電子メールを受信する。   Thereafter, when the transmission time specified by the reserved transmission mail comes, the authentication server 30 notifies the transmission side mail server 10 of transmission permission. Thereby, the transmission side mail server 10 directly transmits an electronic mail to the reception side mail server 10, and the reception side mail server 10 receives the electronic mail.

[2−3.メール送受信処理例(3)]
次に、送信側メールサーバ10から受信側メールサーバ10へセッションを張ることができない場合であって、送信側メールサーバ10が予約送信メールでない通常の電子メールを送信するときのメール送受信処理について、図6を用いて説明する。
[2-3. Email transmission / reception processing example (3)]
Next, regarding a mail transmission / reception process when a session cannot be established from the sending mail server 10 to the receiving mail server 10 and the sending mail server 10 transmits a normal e-mail that is not a reserved sending mail, This will be described with reference to FIG.

電子メールを送信しようとする送信側メールサーバ10は、認証サーバに対して認証要求(電子メールの送信要求)を行う。すると、認証サーバ30は、送信側メールサーバ10に対して認証OKの認証結果を送信する。   The sending mail server 10 that is going to send an e-mail makes an authentication request (e-mail sending request) to the authentication server. Then, the authentication server 30 transmits an authentication OK authentication result to the transmission side mail server 10.

そして、認証サーバ30は、受信側メールサーバ10からの問い合わせ時刻に合わせた送信時刻を送信側メールサーバ10に対して指定する。この結果、送信側メールサーバ10と受信側メールサーバ10とが同時期に認証サーバ30へセッションを張るようにすることができ、その際に、送信側メールサーバ10が送信した電子メールを認証サーバ30が中継して受信側メールサーバ10に受信させることができる。   Then, the authentication server 30 designates a transmission time that matches the inquiry time from the reception side mail server 10 to the transmission side mail server 10. As a result, the transmission side mail server 10 and the reception side mail server 10 can establish a session to the authentication server 30 at the same time. At this time, the electronic mail transmitted by the transmission side mail server 10 is converted into the authentication server. 30 can be relayed and received by the receiving mail server 10.

[2−4.メール送受信処理例(4)]
次に、送信側メールサーバ10から受信側メールサーバ10へセッションを張ることができない場合であって、送信側メールサーバ10が予約送信メールを送信するときのメール送受信処理について、図7を用いて説明する。
[2-4. Email transmission / reception processing example (4)]
Next, a mail transmission / reception process when the transmission side mail server 10 transmits a reserved transmission mail when a session cannot be established from the transmission side mail server 10 to the reception side mail server 10 will be described with reference to FIG. explain.

電子メールを送信しようとする送信側メールサーバ10は、認証サーバに対して認証要求(電子メールの送信要求)を行う。すると、認証サーバ30は、送信側メールサーバ10に対して認証OKの認証結果を送信する。   The sending mail server 10 that is going to send an e-mail makes an authentication request (e-mail sending request) to the authentication server. Then, the authentication server 30 transmits an authentication OK authentication result to the transmission side mail server 10.

そして、送信側メールサーバ10は、予約送信メールで指定された送信時刻を認証サーバ30に対して指定する。認証サーバ30は、受信側メールサーバ10からの問い合わせ時に、その送信時刻にセッションを張るように受信側メールサーバ10に対して通知する。この結果、送信側メールサーバ10と受信側メールサーバ10とが同時期に認証サーバ30へセッションを張るようにすることができ、その際に、送信側メールサーバ10が送信した電子メールを認証サーバ30が中継して受信側メールサーバ10に受信させることができる。   Then, the transmission side mail server 10 specifies the transmission time specified by the reserved transmission mail to the authentication server 30. At the time of an inquiry from the receiving mail server 10, the authentication server 30 notifies the receiving mail server 10 to establish a session at the transmission time. As a result, the transmission side mail server 10 and the reception side mail server 10 can establish a session to the authentication server 30 at the same time. At this time, the electronic mail transmitted by the transmission side mail server 10 is converted into the authentication server. 30 can be relayed and received by the receiving mail server 10.

[3.制御部が実行する処理]
次に、本実施形態の通信システムにおいてメールサーバ10及び認証サーバ30が実行する処理の具体的内容について説明する。
[3. Processing executed by control unit]
Next, the specific content of the process which the mail server 10 and the authentication server 30 perform in the communication system of this embodiment is demonstrated.

[3−1.登録要求処理]
まず、メールサーバ10のCPU12が実行する登録要求処理について、図8のフローチャートを用いて説明する。なお、この登録要求処理は、メールサーバ10の起動時に開始される。
[3-1. Registration request processing]
First, registration request processing executed by the CPU 12 of the mail server 10 will be described with reference to the flowchart of FIG. This registration request process is started when the mail server 10 is activated.

CPU12は、登録要求処理を開始すると、まず、S101で、認証サーバ30へセッションを張る処理を行う。
続いて、S102では、自身のサーバ情報を登録サーバデータベースに登録することの要求である登録要求を認証サーバ30に対して行う。このとき、自身のIDを認証サーバ30へ送信する。これにより、認証サーバ30は、後述する登録処理(図11)を開始する。
When starting the registration request process, the CPU 12 first performs a process of establishing a session with the authentication server 30 in S101.
Subsequently, in S102, a registration request, which is a request for registering its own server information in the registration server database, is made to the authentication server 30. At this time, its own ID is transmitted to the authentication server 30. Thereby, the authentication server 30 starts a registration process (FIG. 11) described later.

続いて、S103では、認証サーバ30との間で、チャレンジ/レスポンス方式の認証処理を行う。具体的には、認証サーバ30は、登録要求元のメールサーバ10へチャレンジコードを送信する。すると、登録要求元のメールサーバ10は、受信したチャレンジコードとあらかじめ記憶しているパスワードとを特定のアルゴリズムに従い合成してレスポンスを作成し、認証サーバ30へ送信する。また、認証サーバ30においても、送信したチャレンジコードとあらかじめ記憶しているそのメールサーバ10のパスワードとから同じようにレスポンスを作成し、そのメールサーバ10から受信したレスポンスと比較して一致していれば認証OK(成功)とする。   Subsequently, in S103, challenge / response authentication processing is performed with the authentication server 30. Specifically, the authentication server 30 transmits a challenge code to the mail server 10 that is the registration request source. Then, the registration request source mail server 10 synthesizes the received challenge code and the password stored in advance according to a specific algorithm, creates a response, and transmits the response to the authentication server 30. The authentication server 30 also creates a response in the same manner from the transmitted challenge code and the password stored in advance for the mail server 10 and matches the response received from the mail server 10. Authentication OK (success).

続いて、S104では、自身のサーバ情報が登録サーバデータベースに登録されたか否かを判定する。具体的には、認証サーバ30から登録OK情報が送信されてきた場合には登録されたと判定し、エラー情報が送信されてきた場合には登録されなかったと判定する。なお、登録OK情報やエラー情報は、後述する登録処理(図11)におけるS404,S405の処理に基づき送信される。   Subsequently, in S104, it is determined whether or not its own server information is registered in the registration server database. Specifically, when registration OK information is transmitted from the authentication server 30, it is determined that it is registered, and when error information is transmitted, it is determined that it is not registered. The registration OK information and error information are transmitted based on the processing of S404 and S405 in the registration processing (FIG. 11) described later.

そして、S104で、自身のサーバ情報が登録サーバデータベースに登録されなかったと判定した場合には、S105へ移行し、エラーメッセージを表示部19に表示する等のエラー処理を行う。その後、S106へ移行する。   If it is determined in S104 that the server information is not registered in the registered server database, the process proceeds to S105, and error processing such as displaying an error message on the display unit 19 is performed. Thereafter, the process proceeds to S106.

一方、S104で、自身のサーバ情報が登録サーバデータベースに登録されたと判定した場合には、そのままS106へ移行する。
S106では、認証サーバ30とのセッションを切断する処理を行う。その後、本登録要求処理を終了する。
On the other hand, if it is determined in S104 that its own server information is registered in the registration server database, the process proceeds to S106 as it is.
In S106, processing for disconnecting the session with the authentication server 30 is performed. Thereafter, the registration request process ends.

このように、各メールサーバ10は、起動時に認証サーバ30に対して登録要求を行うことにより、自身のサーバ情報を登録サーバデータベースに登録する。これにより、認証サーバ30においては、他のメールサーバ10からの要求に対する名前解決が可能となる。つまり、メールサーバ10は、起動時の認証によって電子メールの受信が可能となる。   Thus, each mail server 10 registers its own server information in the registration server database by making a registration request to the authentication server 30 at startup. As a result, the authentication server 30 can perform name resolution for requests from other mail servers 10. That is, the mail server 10 can receive an e-mail by authentication at the time of activation.

[3−2.問い合わせ処理]
次に、メールサーバ10のCPU12が実行する問い合わせ処理について、図9のフローチャートを用いて説明する。なお、この問い合わせ処理は、メールサーバ10の起動時に開始され、後述するように、問い合わせタイミングが到来するごとに(S201:YES)、S202〜S209の処理が行われる。
[3-2. Inquiry processing]
Next, inquiry processing executed by the CPU 12 of the mail server 10 will be described with reference to the flowchart of FIG. This inquiry process is started when the mail server 10 is activated, and the processes of S202 to S209 are performed each time the inquiry timing comes (S201: YES), as will be described later.

CPU12は、問い合わせ処理を開始すると、まず、S201で、認証サーバ30に問い合わせをするタイミングが到来したか否かを判定し、問い合わせをするタイミングが到来したと判定した場合にS202へ移行する。なお、問い合わせをするタイミングは、例えば前回の通信から一定時間後とすることや、所定時刻ごととすることなどが考えられる。   When starting the inquiry process, the CPU 12 first determines whether or not the timing for making an inquiry to the authentication server 30 has arrived in S201, and proceeds to S202 if it is determined that the timing for making an inquiry has come. Note that the timing for inquiring may be, for example, a certain time after the previous communication or every predetermined time.

S202では、認証サーバ30へセッションを張る処理を行う。
続いて、S203では、認証サーバ30からセッション時刻の通知を受けたか否かを判定する。なお、セッション時刻の通知は、後述するメール送信処理(図12)におけるS512,S519の処理に基づき行われる。
In S202, a process for establishing a session to the authentication server 30 is performed.
Subsequently, in S203, it is determined whether or not a session time notification is received from the authentication server 30. The notification of the session time is performed based on the processes of S512 and S519 in the mail transmission process (FIG. 12) described later.

そして、S203で、認証サーバ30からセッション時刻の通知を受けたと判定した場合には、S204へ移行し、通知を受けたセッション時刻に認証サーバ30に問い合わせをするように、問い合わせのタイミング(問い合わせ予定時刻)を調整する。その後、S205へ移行する。   If it is determined in S203 that a session time notification has been received from the authentication server 30, the process proceeds to S204, and the inquiry timing (inquiry schedule is set so that the authentication server 30 is inquired at the notified session time. Time). Thereafter, the process proceeds to S205.

一方、S203で、認証サーバ30からセッション時刻の通知を受けなかったと判定した場合には、そのままS205へ移行する。
S205では、電子メール(認証サーバ30により中継された送信側メールサーバ10からの電子メール)を受信したか否かを判定する。なお、電子メールは、後述するメール送信処理(図12)におけるS517の処理に基づき送信される。
On the other hand, if it is determined in S203 that the notification of the session time has not been received from the authentication server 30, the process proceeds to S205 as it is.
In S205, it is determined whether or not an e-mail (e-mail from the sending mail server 10 relayed by the authentication server 30) has been received. The electronic mail is transmitted based on the process of S517 in the mail transmission process (FIG. 12) described later.

そして、S205で、電子メールを受信したと判定した場合には、S206へ移行し、電子メールの受信処理を行う。その後、S207へ移行する。
一方、S205で、電子メールを受信しなかったと判定した場合には、そのままS207へ移行する。
If it is determined in S205 that an e-mail has been received, the process proceeds to S206, and an e-mail receiving process is performed. Thereafter, the process proceeds to S207.
On the other hand, if it is determined in S205 that no e-mail has been received, the process proceeds to S207.

S207では、その他の情報(セッション時刻の通知及び受信メール以外の情報)を受信したか否かを判定する。
そして、S207で、その他の情報を受信したと判定した場合には、S208へ移行し、受信した情報に応じた処理を行う。その後、S209へ移行する。
In S207, it is determined whether or not other information (information other than the session time notification and received mail) has been received.
If it is determined in step S207 that other information has been received, the process proceeds to step S208, and processing corresponding to the received information is performed. Thereafter, the process proceeds to S209.

一方、S207で、その他の情報についても受信しなかったと判定した場合には、そのままS209へ移行する。
S209では、認証サーバ30とのセッションを切断する処理を行う。その後、S201へ戻る。
On the other hand, if it is determined in S207 that no other information has been received, the process proceeds to S209.
In S209, a process for disconnecting the session with the authentication server 30 is performed. Thereafter, the process returns to S201.

[3−3.送信要求処理]
次に、メールサーバ10のCPU12が実行する送信要求処理について、図10のフローチャートを用いて説明する。なお、この送信要求処理は、他のメールサーバ10に対して電子メールの送信を行う場合に開始される。
[3-3. Send request processing]
Next, transmission request processing executed by the CPU 12 of the mail server 10 will be described with reference to the flowchart of FIG. This transmission request process is started when an electronic mail is transmitted to another mail server 10.

CPU12は、送信要求処理を開始すると、まず、S301で、認証サーバ30へセッションを張る処理を行う。
続いて、S302では、他のメールサーバ10への電子メールの送信要求(中継要求)である送信要求(認証要求でもある。)を認証サーバ30に対して行う。これにより、認証サーバ30は、後述するメール送信処理(図12)を開始する。なお、送信する電子メールが予約メール(送信時刻が指定された電子メール)の場合には、指定された送信時刻での送信を要求することになる。
When starting the transmission request process, the CPU 12 first performs a process of establishing a session with the authentication server 30 in S301.
Subsequently, in S <b> 302, a transmission request (also an authentication request), which is an e-mail transmission request (relay request) to another mail server 10, is sent to the authentication server 30. As a result, the authentication server 30 starts mail transmission processing (FIG. 12) described later. If the e-mail to be transmitted is a reservation e-mail (an e-mail with a specified transmission time), transmission at the specified transmission time is requested.

続いて、S303では、認証サーバ30との間で、前述したチャレンジ/レスポンス方式の認証処理を行う。
続いて、S304では、認証処理の結果、認証OKとされたか否かを判定する。具体的には、認証サーバ30から認証OKの認証結果が送信されてきた場合には認証OKとされたと判定し、認証拒否の認証結果が送信されてきた場合には認証OKとされなかったと判定する。なお、この認証結果は、後述するメール送信処理(図12)におけるS503,S509の処理に基づき送信される。
Subsequently, in S303, the above-described challenge / response authentication process is performed with the authentication server 30.
Subsequently, in S304, it is determined whether or not the authentication is successful as a result of the authentication process. Specifically, when an authentication OK authentication result is transmitted from the authentication server 30, it is determined that the authentication is OK, and when an authentication rejection authentication result is transmitted, it is determined that the authentication is not OK. To do. This authentication result is transmitted based on the processing of S503 and S509 in the mail transmission processing (FIG. 12) described later.

そして、S304で、認証OKとされたと判定した場合には、S305へ移行し、当該メールサーバ(送信側メールサーバ)10が、受信側メールサーバ10へ直接セッションを張ることができるか否かを判定する。具体的には、認証サーバ30からセッションを張ることができる旨の判定結果が送信されてきた場合にはセッションを張ることができると判定し、セッションを張ることができない旨の判定結果が送信されてきた場合にはセッションを張ることができないと判定する。なお、この判定結果は、後述するメール送信処理(図12)におけるS505,S510の処理に基づき送信される。   If it is determined in S304 that the authentication is OK, the process proceeds to S305, and whether or not the mail server (transmitting mail server) 10 can directly establish a session with the receiving mail server 10 is determined. judge. Specifically, when a determination result indicating that a session can be established is transmitted from the authentication server 30, it is determined that a session can be established, and a determination result that a session cannot be established is transmitted. If it does, it is determined that a session cannot be established. This determination result is transmitted based on the processes in S505 and S510 in the mail transmission process (FIG. 12) described later.

そして、S305で、受信側メールサーバ10へ直接セッションを張ることができると判定した場合には、S306へ移行し、送信しようとする電子メールが予約送信メールであるか否かを判定する。   If it is determined in S305 that a session can be established directly to the receiving mail server 10, the process proceeds to S306, where it is determined whether the electronic mail to be transmitted is a reserved transmission mail.

そして、S306で、送信しようとする電子メールが予約送信メールであると判定した場合には、S307へ移行し、認証サーバ30とのセッションを切断する処理を行う。
続いて、S308では、指定された送信時刻に認証サーバ30へセッションを張る処理を行った後、認証要求を行う。その後、S309へ移行する。
If it is determined in S306 that the e-mail to be transmitted is a reserved transmission e-mail, the process proceeds to S307 and a process for disconnecting the session with the authentication server 30 is performed.
Subsequently, in S308, an authentication request is made after a process of establishing a session to the authentication server 30 at the designated transmission time. Thereafter, the process proceeds to S309.

一方、S306で、送信しようとする電子メールが予約送信メールでないと判定した場合には、そのままS309へ移行する。
S309では、認証サーバ30から送信許可通知を受けたか否かを判定する。なお、送信許可通知は、後述するメール送信処理(図12)におけるS508の処理に基づき送信される。
On the other hand, if it is determined in S306 that the electronic mail to be transmitted is not a reserved transmission mail, the process proceeds to S309 as it is.
In S309, it is determined whether or not a transmission permission notification is received from the authentication server 30. The transmission permission notification is transmitted based on the processing of S508 in the mail transmission processing (FIG. 12) described later.

そして、S309で、認証サーバ30から送信許可通知を受けたと判定した場合には、S310へ移行し、電子メールを受信側メールサーバ10へ直接送信する。これにより、受信側メールサーバ10で電子メールが受信される。その後、S312へ移行する。   If it is determined in S309 that a transmission permission notification has been received from the authentication server 30, the process proceeds to S310, and the e-mail is directly transmitted to the receiving mail server 10. As a result, the receiving mail server 10 receives the e-mail. Thereafter, the process proceeds to S312.

一方、S304で認証OKとされなかったと判定した場合や、S309で送信許可通知を受けなかったと判定した場合には、S311へ移行し、エラーメッセージを表示部19に表示する等のエラー処理を行う。その後、S312へ移行する。   On the other hand, if it is determined in S304 that the authentication is not successful, or if it is determined in S309 that the transmission permission notification has not been received, the process proceeds to S311 and error processing such as displaying an error message on the display unit 19 is performed. . Thereafter, the process proceeds to S312.

S312では、認証サーバ30とのセッションを切断する処理を行う。その後、本送信要求処理を終了する。
一方、前述したS305で、受信側メールサーバ10へ直接セッションを張ることができないと判定した場合には、S313へ移行し、認証サーバ30からセッション時刻の通知を受ける。なお、ここでのセッション時刻の通知は、後述するメール送信処理(図12)におけるS512,S513の処理に基づき行われる。
In step S312, a process for disconnecting the session with the authentication server 30 is performed. Thereafter, the transmission request process is terminated.
On the other hand, if it is determined in S305 that it is not possible to establish a direct session with the receiving mail server 10, the process proceeds to S313 and the authentication server 30 receives a notification of the session time. The notification of the session time here is performed based on the processing of S512 and S513 in the mail transmission processing (FIG. 12) described later.

続いて、S314では、認証サーバ30とのセッションを切断する処理を行う。
続いて、S315では、通知されたセッション時刻に認証サーバ30へセッションを張る処理を行う。
Subsequently, in S314, a process for disconnecting the session with the authentication server 30 is performed.
Subsequently, in S315, a process for establishing a session to the authentication server 30 at the notified session time is performed.

続いて、S316では、認証サーバ30から送信許可通知を受けたか否かを判定する。なお、送信許可通知は、認証サーバ30において送信側メールサーバ10から受信側メールサーバ10への電子メールの中継が可能な状態となった場合に、後述するメール送信処理(図12)におけるS516の処理に基づき送信される。   Subsequently, in S316, it is determined whether or not a transmission permission notification is received from the authentication server 30. Note that the transmission permission notification is made in S516 in the mail transmission process (FIG. 12) to be described later when the authentication server 30 can relay the electronic mail from the transmitting mail server 10 to the receiving mail server 10. Sent based on processing.

そして、S316で、認証サーバ30から送信許可通知を受けたと判定した場合には、S317へ移行し、電子メールを認証サーバ30へ送信する。これにより、電子メールが認証サーバ30により中継されて受信側メールサーバ10で受信される。その後、S312へ移行して認証サーバ30とのセッションを切断する処理を行った後、本送信要求処理を終了する。   If it is determined in S316 that a transmission permission notification has been received from the authentication server 30, the process proceeds to S317, and an e-mail is transmitted to the authentication server 30. As a result, the e-mail is relayed by the authentication server 30 and received by the receiving mail server 10. Thereafter, the process proceeds to S312 to perform a process of disconnecting the session with the authentication server 30, and then the present transmission request process is terminated.

一方、S316で、認証サーバ30から送信許可通知を受けなかったと判定した場合には、S318へ移行し、認証サーバ30からセッション時刻の通知を受けたか否かを判定する。なお、ここでのセッション時刻の通知は、認証サーバ30において電子メールの中継が可能な状態とすることができず、中継のリトライを行う場合に、後述するメール送信処理(図12)におけるS519の処理に基づき行われる。   On the other hand, if it is determined in S316 that the transmission permission notification has not been received from the authentication server 30, the process proceeds to S318, and it is determined whether or not the session time notification has been received from the authentication server 30. Note that the notification of the session time here cannot be in a state where the authentication server 30 can relay the email, and when relay retry is performed, the notification of S519 in the mail transmission process (FIG. 12) described later is performed. Performed based on processing.

そして、S318で、認証サーバ30からセッション時刻の通知を受けたと判定した場合には、S314へ戻る。つまり、いったんセッションを切断し、新たに通知されたセッション時刻に再度セッションを張る処理を行う。   If it is determined in S318 that the session time has been received from the authentication server 30, the process returns to S314. In other words, a process of once disconnecting the session and establishing a session again at the newly notified session time is performed.

一方、S318で、認証サーバ30からセッション時刻の通知を受けなかったと判定した場合には、S319へ移行し、認証サーバ30からエラー通知を受けたか否かを判定する。なお、エラー通知は、一定時間リトライを行ってもなお電子メールの中継が可能な状態とすることができなかった場合に、後述するメール送信処理(図12)におけるS520の処理に基づき行われる。   On the other hand, if it is determined in S318 that the notification of the session time has not been received from the authentication server 30, the process proceeds to S319, and it is determined whether or not an error notification has been received from the authentication server 30. Note that the error notification is performed based on the process of S520 in the mail transmission process (FIG. 12) to be described later when it is not possible to relay the e-mail even after retrying for a certain time.

そして、S319で、認証サーバ30からエラー通知を受けていないと判定した場合には、S316へ戻る。
一方、S319で、認証サーバ30からエラー通知を受けたと判定した場合には、S320へ移行し、エラーメッセージを表示部19に表示する等のエラー処理を行う。その後、S312へ移行して認証サーバ30とのセッションを切断する処理を行った後、本送信要求処理を終了する。
If it is determined in S319 that no error notification has been received from the authentication server 30, the process returns to S316.
On the other hand, if it is determined in S319 that an error notification has been received from the authentication server 30, the process proceeds to S320, and error processing such as displaying an error message on the display unit 19 is performed. Thereafter, the process proceeds to S312 to perform a process of disconnecting the session with the authentication server 30, and then the present transmission request process is terminated.

[3−4.登録処理]
次に、メールサーバ10から登録要求を受けた場合に認証サーバ30のCPU32が実行する登録処理について、図11のフローチャートを用いて説明する。なお、登録要求は、前述した登録要求処理(図8)におけるS102の処理に基づき、登録要求元のメールサーバ10のIDとともに送信されてくる。
[3-4. registration process]
Next, registration processing executed by the CPU 32 of the authentication server 30 when a registration request is received from the mail server 10 will be described with reference to the flowchart of FIG. The registration request is transmitted together with the ID of the mail server 10 that is the registration request source based on the process of S102 in the above-described registration request process (FIG. 8).

CPU32は、登録処理を開始すると、まず、S401で、登録要求元のメールサーバ10との間で、前述したチャレンジ/レスポンス方式の認証処理を行う。また、登録要求元のメールサーバ10が管理対象のものであること(管理対象のメールサーバ10の情報としてあらかじめ記憶しているIDの中に、登録要求元のメールサーバ10から受信したIDが含まれていること)を確認する。   When starting the registration process, the CPU 32 first performs the above-described challenge / response authentication process with the mail server 10 as the registration request source in S401. Also, the registration request source mail server 10 is a management target (the ID received from the registration request source mail server 10 in the ID stored in advance as information of the management target mail server 10 is included) That it is).

続いて、S402では、認証処理の結果、認証OKであるか否かを判定する。
そして、S402で、認証OKであると判定した場合には、S403へ移行し、登録要求元のメールサーバ10のサーバ情報を登録サーバデータベースに登録する。
Subsequently, in S402, it is determined whether or not the authentication is successful as a result of the authentication process.
If it is determined in S402 that the authentication is OK, the process proceeds to S403, and the server information of the mail server 10 of the registration request source is registered in the registration server database.

続いて、S404では、サーバ情報を登録サーバデータベースに登録したことを表す登録OK情報をメールサーバ10へ送信する。その後、本登録処理を終了する。
一方、S402で、認証OKでないと判定した場合には、S405へ移行し、サーバ情報を登録サーバデータベースに登録しなかったことを表すエラー情報をメールサーバ10へ送信する。その後、本登録処理を終了する。
In step S404, registration OK information indicating that the server information is registered in the registration server database is transmitted to the mail server 10. Thereafter, the registration process is terminated.
On the other hand, if it is determined in S402 that the authentication is not OK, the process proceeds to S405, and error information indicating that the server information has not been registered in the registration server database is transmitted to the mail server 10. Thereafter, the registration process is terminated.

[3−5.メール送信処理]
次に、メールサーバ10から送信要求を受けた場合に認証サーバ30のCPU32が実行するメール送信処理について、図12のフローチャートを用いて説明する。なお、送信要求は、前述した送信要求処理(図10)におけるS302の処理に基づき行われる。
[3-5. Mail sending process]
Next, a mail transmission process executed by the CPU 32 of the authentication server 30 when a transmission request is received from the mail server 10 will be described with reference to the flowchart of FIG. The transmission request is made based on the process of S302 in the transmission request process (FIG. 10) described above.

CPU32は、メール送信処理を開始すると、まず、S501で、送信要求元のメールサーバ(送信側メールサーバ)10との間で、前述したチャレンジ/レスポンス方式の認証処理を行う。さらに、送信側メールサーバ10のサーバ情報が登録サーバデータベースに登録されていることを確認する。   When starting the mail transmission process, the CPU 32 first performs the above-described challenge / response authentication process with the mail server (transmission-side mail server) 10 as the transmission request source in S501. Further, it is confirmed that the server information of the sending mail server 10 is registered in the registration server database.

なお、送信側メールサーバ10の認証は、基本的には起動時における認証結果が認証OKであれば送信時にも認証OKとなるが、起動後に不正な行為(迷惑メールの送信等)を行ったような場合には認証OKとならない。すなわち、認証サーバ30は、各メールサーバ10のメール送信状況を把握しているため、不正な行為を検知することが可能であり、不正な行為が判明した場合には、そのメールサーバ10のサーバ情報を登録サーバデータベースから削除する。   It should be noted that the authentication of the sending mail server 10 is basically an authentication OK even if the authentication result at the time of activation is authentication OK, but an illegal act (spam mail transmission, etc.) was performed after the activation. In such a case, authentication is not OK. That is, since the authentication server 30 knows the mail transmission status of each mail server 10, it is possible to detect an illegal action, and when an illegal action is found, the server of the mail server 10 Delete information from the registration server database.

続いて、S502では、認証処理の結果、認証OKとするか否かを判定する。
そして、S502で、認証OKとすると判定した場合には、S503へ移行し、認証OKの認証結果を送信側メールサーバ10へ送信する。
Subsequently, in S502, it is determined whether or not authentication is OK as a result of the authentication process.
If it is determined in S502 that the authentication is OK, the process proceeds to S503, and the authentication OK authentication result is transmitted to the transmission side mail server 10.

続いて、S504では、送信側メールサーバ10が電子メールの送信先のメールサーバ(受信側メールサーバ)10へ直接セッションを張ることができるか否かを判定する。なお、認証サーバ30は、認証処理において、メールサーバ10へセッションを張ることができるか否かの情報(IPアドレスやUPnPの対応、ファイアウォールの有無、NATやルータのポートの開放状態など)と、メールサーバ10を名前解決するための情報(IPや電子メールアドレスなど)を送信側メールサーバ10から受け取る。そして、送信側メールサーバ10の情報と受信側メールサーバ10の同様の情報とに基づき、送信側メールサーバ10から受信側メールサーバ10へセッションを張ることができるかどうかを判定する。例えば、送信先のメールサーバ10のファイアウォールの設定が、送信側メールサーバ10からのアクセスを受け入れるように設定されている場合や、送信先のメールサーバ10が存在するLANに接続されたルータのポートが開放され、外部からのアクセスが可能に設定されている場合などには、送信側メールサーバ10から受信側メールサーバ10へセッションを張ることができると判定される。また、送信側メールサーバ10の送信しようとする電子メールが予約送信である場合は、予約送信であるという情報と予約送信時刻とを送信側メールサーバ10から受け取る。   Subsequently, in S504, it is determined whether or not the transmission side mail server 10 can directly establish a session with the mail server (reception side mail server) 10 that is the transmission destination of the electronic mail. Note that the authentication server 30 includes information on whether or not a session to the mail server 10 can be established in the authentication process (IP address, UPnP support, presence / absence of a firewall, NAT or router port open state, etc.) Information (IP, e-mail address, etc.) for name resolution of the mail server 10 is received from the sending mail server 10. Then, based on the information on the sending mail server 10 and the similar information on the receiving mail server 10, it is determined whether or not a session can be established from the sending mail server 10 to the receiving mail server 10. For example, when the firewall setting of the destination mail server 10 is set to accept access from the transmission side mail server 10, or the port of the router connected to the LAN where the destination mail server 10 exists Is opened, and it is determined that a session can be established from the transmission side mail server 10 to the reception side mail server 10 when it is set to be accessible from the outside. Further, when the electronic mail to be transmitted by the transmission side mail server 10 is reserved transmission, information indicating that the transmission is reserved transmission and the reservation transmission time are received from the transmission side mail server 10.

そして、S504で、送信側メールサーバ10が受信側メールサーバ10へ直接セッションを張ることができると判定した場合には、S505へ移行し、S504での判定結果を送信側メールサーバ10に対して通知する。   If it is determined in S504 that the sending mail server 10 can directly establish a session with the receiving mail server 10, the process proceeds to S505, and the determination result in S504 is sent to the sending mail server 10. Notice.

続いて、S506では、送信側メールサーバ10の送信しようとする電子メールが予約送信メールであるか否かを判定する。
そして、S506で、予約送信メールであると判定した場合には、S507へ移行し、予約送信メールで指定された送信時刻に送信側メールサーバ10から認証要求を受けたか否かを判定する。つまり、予約送信メールの場合には、指定された送信時刻が到来した後に送信側メールサーバ10を再度認証するようにしている。
Subsequently, in S506, it is determined whether or not the electronic mail to be transmitted by the transmission side mail server 10 is a reserved transmission mail.
If it is determined in S506 that the mail is a reserved transmission mail, the process proceeds to S507, and it is determined whether an authentication request has been received from the transmission side mail server 10 at the transmission time designated by the reserved transmission mail. That is, in the case of reserved transmission mail, the transmission side mail server 10 is authenticated again after the designated transmission time has arrived.

そして、S507で、指定された送信時刻に送信側メールサーバ10から認証要求を受けたと判定した場合には、S508へ移行する。
一方、S506で、予約送信メールでないと判定した場合には、そのままS508へ移行する。
If it is determined in S507 that an authentication request has been received from the sending mail server 10 at the designated transmission time, the process proceeds to S508.
On the other hand, if it is determined in S506 that the mail is not a reserved transmission mail, the process proceeds to S508 as it is.

S508では、送信側メールサーバ10に対して送信許可を通知する。その後、本メール送信処理を終了する。これにより、送信側メールサーバ10は、受信側メールサーバ10へ電子メールを直接送信する。   In step S508, the transmission side mail server 10 is notified of transmission permission. Thereafter, the mail transmission process is terminated. Thereby, the transmission side mail server 10 directly transmits the electronic mail to the reception side mail server 10.

一方、S502で認証OKとしないと判定した場合や、S507で送信時刻に送信側メールサーバ10から認証要求を受けなかったと判定した場合には、S509へ移行し、認証拒否を送信側メールサーバ10に対して通知する。その後、本メール送信処理を終了する。   On the other hand, if it is determined in step S502 that the authentication is not OK, or if it is determined in step S507 that an authentication request has not been received from the transmission side mail server 10 at the transmission time, the process proceeds to step S509 and authentication rejection is transmitted to the transmission side mail server 10. To notify. Thereafter, the mail transmission process is terminated.

また、前述したS504で、送信側メールサーバ10が受信側メールサーバ10へ直接セッションを張ることができないと判定した場合には、S510へ移行し、S504での判定結果を送信側メールサーバ10に対して通知する。   If it is determined in S504 that the sending mail server 10 cannot directly establish a session with the receiving mail server 10, the process proceeds to S510, and the determination result in S504 is sent to the sending mail server 10. Notify them.

続いて、S511では、送信側メールサーバ10の送信しようとする電子メールが予約送信メールであるか否かを判定する。
そして、S511で、予約送信メールであると判定した場合には、S512へ移行し、送信側メールサーバ10及び受信側メールサーバ10に対しセッション時刻を通知するための通知処理を行う。これにより、通知したセッション時刻に送信側メールサーバ10及び受信側メールサーバ10からセッションが張られることになる。その後、S514へ移行する。なお、通知処理の具体的な内容については後述する(図13)。
Subsequently, in S511, it is determined whether or not the e-mail to be transmitted by the transmission side mail server 10 is a reserved transmission mail.
If it is determined in S511 that it is a reserved transmission mail, the process proceeds to S512, and a notification process for notifying the transmission side mail server 10 and the reception side mail server 10 of the session time is performed. As a result, a session is established from the sending mail server 10 and the receiving mail server 10 at the notified session time. Thereafter, the process proceeds to S514. The specific contents of the notification process will be described later (FIG. 13).

一方、S511で、予約送信メールでないと判定した場合には、S513へ移行し、受信側メールサーバ10からの問い合わせ時刻に合わせたセッション時刻を送信側メールサーバ10に対して通知する。これにより、受信側メールサーバ10からの問い合わせ時刻に合わせたタイミングで送信側メールサーバ10からセッションが張られることになる。その後、S514へ移行する。   On the other hand, if it is determined in S511 that the mail is not a reserved transmission mail, the process proceeds to S513, and the transmission side mail server 10 is notified of the session time that matches the inquiry time from the reception side mail server 10. As a result, a session is established from the sending mail server 10 at a timing that matches the inquiry time from the receiving mail server 10. Thereafter, the process proceeds to S514.

S514では、セッション時刻に送信側メールサーバ10からセッションが張られたか否かを判定する。
そして、S514で、送信側メールサーバ10からセッションが張られたと判定した場合には、S515へ移行し、セッション時刻に受信側メールサーバ10からセッションが張られたか否かを判定する。
In S514, it is determined whether or not a session is established from the sending mail server 10 at the session time.
If it is determined in S514 that a session is established from the sending mail server 10, the process proceeds to S515, and it is determined whether or not a session is established from the receiving mail server 10 at the session time.

そして、S515で、受信側メールサーバ10からセッションが張られたと判定した場合(つまり、送信側メールサーバ10から受信側メールサーバ10への電子メールの中継が可能な状態となった場合)には、S516へ移行し、送信許可通知を送信側メールサーバ10へ送信する。これにより、送信側メールサーバ10から電子メールが送信されてくる。   In S515, when it is determined that a session is established from the receiving mail server 10 (that is, when it becomes possible to relay an e-mail from the sending mail server 10 to the receiving mail server 10). , The process proceeds to S516, and a transmission permission notification is transmitted to the transmission side mail server 10. Thereby, an electronic mail is transmitted from the transmission side mail server 10.

続いて、S517では、送信側メールサーバ10から送信されてきた電子メールを受信側メールサーバ10へ送信する処理(電子メールの中継処理)を行う。その後、本メール送信処理を終了する。   Subsequently, in S517, a process of transmitting the e-mail transmitted from the transmitting mail server 10 to the receiving mail server 10 (an e-mail relay process) is performed. Thereafter, the mail transmission process is terminated.

一方、S514で送信側メールサーバ10からセッションが張られなかったと判定した場合や、S515で受信側メールサーバ10からセッションが張られなかったと判定した場合には、S518へ移行し、最初の指定時間から一定時間が経過しているか否かを判定する。   On the other hand, if it is determined in S514 that a session is not established from the sending mail server 10, or if it is determined in S515 that a session is not established from the receiving mail server 10, the process proceeds to S518 and the first designated time It is determined whether or not a certain time has passed since.

そして、S518で、最初の指定時間から一定時間が経過していないと判定した場合には、S519へ移行し、送信側メールサーバ10及び受信側メールサーバ10に対し新たなセッション時刻を通知するための通知処理(図13)を行った後、S514へ戻る。つまり、セッション時間を再設定する。これにより、通知したセッション時刻に送信側メールサーバ10及び受信側メールサーバ10からセッションが張られることになる。   If it is determined in S518 that the fixed time has not elapsed since the first designated time, the process proceeds to S519 to notify the sending mail server 10 and the receiving mail server 10 of the new session time. After performing the notification process (FIG. 13), the process returns to S514. In other words, the session time is reset. As a result, a session is established from the sending mail server 10 and the receiving mail server 10 at the notified session time.

一方、S518で、最初の指定時間から一定時間が経過していると判定した場合には、S520へ移行し、送信側メールサーバ10及び受信側メールサーバ10に対しエラーを通知するための通知処理(図13)を行った後、本メール送信処理を終了する。つまり、最初の指定時間から一定時間が経過しても(セッション時刻の再設定を行っても)、セッション時刻に送信側メールサーバ10及び受信側メールサーバ10のうちの少なくとも一方からセッションが張られない場合には、本メール送信処理を終了するようにしている。   On the other hand, if it is determined in S518 that the predetermined time has elapsed since the first designated time, the process proceeds to S520, and a notification process for notifying the transmission side mail server 10 and the reception side mail server 10 of an error. After performing (FIG. 13), this mail transmission process is complete | finished. That is, even if a certain time has elapsed from the first designated time (even if the session time is reset), a session is established from at least one of the sending mail server 10 and the receiving mail server 10 at the session time. If not, the mail transmission process is terminated.

[3−6.通知処理]
次に、前述したメール送信処理(図12)におけるS512,S519,S520で実行される通知処理について、図13のフローチャートを用いて説明する。なお、この通知処理において「ステータス」とは、S512,S519の処理においてはセッション時刻のことであり、S520の処理においてはエラー情報のことである。
[3-6. Notification processing]
Next, the notification process executed in S512, S519, and S520 in the above-described mail transmission process (FIG. 12) will be described with reference to the flowchart of FIG. In this notification process, “status” refers to the session time in the processes of S512 and S519, and error information in the process of S520.

CPU32は、通知処理を開始すると、まず、S601で、当該認証サーバ30が、受信側メールサーバ10にアクセス可能であるか否かを判定する。
そして、S601で、受信側メールサーバ10にアクセス可能であると判定した場合には、S602へ移行し、受信側メールサーバ10に対してステータスを通知する。その後、S604へ移行する。
When starting the notification process, the CPU 32 first determines whether the authentication server 30 is accessible to the receiving mail server 10 in S601.
If it is determined in S601 that the receiving mail server 10 is accessible, the process proceeds to S602, and the receiving mail server 10 is notified of the status. Thereafter, the process proceeds to S604.

一方、S601で、受信側メールサーバ10にアクセス可能でないと判定した場合には、S603へ移行し、受信側メールサーバ10からの問い合わせ時に受信側メールサーバ10に対してステータスを通知する。その後、S604へ移行する。   On the other hand, when it is determined in S601 that the receiving side mail server 10 is not accessible, the process proceeds to S603, and a status is notified to the receiving side mail server 10 at the time of inquiry from the receiving side mail server 10. Thereafter, the process proceeds to S604.

S604では、当該認証サーバ30が、送信側メールサーバ10にアクセス可能であるか否かを判定する。
そして、S604で、送信側メールサーバ10にアクセス可能であると判定した場合には、S605へ移行し、送信側メールサーバ10に対してステータスを通知する。その後、本通知処理を終了する。
In S <b> 604, the authentication server 30 determines whether or not the sender mail server 10 is accessible.
If it is determined in S604 that the transmission side mail server 10 is accessible, the process proceeds to S605 to notify the transmission side mail server 10 of the status. Thereafter, the notification process is terminated.

一方、S604で、送信側メールサーバ10にアクセス可能でないと判定した場合には、S606へ移行し、送信側メールサーバ10からの問い合わせ時に送信側メールサーバ10に対してステータスを通知する。その後、本通知処理を終了する。   On the other hand, if it is determined in S604 that the transmission side mail server 10 is not accessible, the process proceeds to S606, and a status is notified to the transmission side mail server 10 when an inquiry is made from the transmission side mail server 10. Thereafter, the notification process is terminated.

[4.効果]
以上説明したように、本実施形態の通信システムにおいて、メールサーバ10は、認証サーバ30に対して定期的に通信を行う(図9)。また、メールサーバ10は、他のメールサーバ10へ電子メールを送信する場合に、認証サーバ30に対して電子メールの中継を要求する(図10)。
[4. effect]
As described above, in the communication system of the present embodiment, the mail server 10 periodically communicates with the authentication server 30 (FIG. 9). Further, the mail server 10 requests the authentication server 30 to relay an email when transmitting an email to another mail server 10 (FIG. 10).

一方、認証サーバ30は、メールサーバ10から電子メールの中継を要求された場合に、要求元のメールサーバ(送信側メールサーバ)10による当該認証サーバ30に対する通信と電子メールの送信先のメールサーバ(受信側メールサーバ)10による当該認証サーバ30に対する通信とが重複したタイミングで行われるように調整する(S511〜S513)。そして、調整したタイミングで、送信側メールサーバ10から送信されてきた電子メールを受信側メールサーバ10へ送信されるように中継する(S516,S517)。   On the other hand, the authentication server 30, when requested to relay an email from the mail server 10, communicates with the authentication server 30 by the requesting mail server (transmission side mail server) 10 and the mail server to which the email is sent. It adjusts so that communication with the said authentication server 30 by (receiving side mail server) 10 may be performed at the overlapping timing (S511-S513). Then, at the adjusted timing, the electronic mail transmitted from the transmission side mail server 10 is relayed to be transmitted to the reception side mail server 10 (S516, S517).

このような通信システムによれば、NAT等によって外部ネットワークからのアクセスが制限された状態にあるメールサーバ10に対しても電子メールを送信することができる。   According to such a communication system, an e-mail can be transmitted to the mail server 10 in which access from an external network is restricted by NAT or the like.

また、認証サーバ30は、メールサーバ10から中継を要求された電子メールが予約送信メールでなければ(S511:NO)、受信側メールサーバ10が当該認証サーバ30に対して定期的に行う通信のタイミングに合わせたセッション時刻を送信側メールサーバ10に通知する(S513)。このため、受信側メールサーバ10が認証サーバ30に対して定期的に行う通信をそのまま利用して、送信側メールサーバ10からの電子メールを受信側メールサーバ10へ中継することができる。   In addition, if the e-mail requested to be relayed from the mail server 10 is not a reserved transmission mail (S511: NO), the authentication server 30 performs communication performed periodically by the receiving mail server 10 with respect to the authentication server 30. The session time according to the timing is notified to the sending mail server 10 (S513). For this reason, it is possible to relay the electronic mail from the transmission side mail server 10 to the reception side mail server 10 using the communication periodically performed by the reception side mail server 10 to the authentication server 30 as it is.

一方、認証サーバ30は、メールサーバ10から中継を要求された電子メールが予約送信メールであれば(S511:YES)、受信側メールサーバ10が予約メール指定の送信時刻に合わせたタイミングで当該認証サーバ30に対して通信を行うように調整する(S512)。このため、送信側メールサーバ10からの電子メールを、指定された送信時刻に受信側メールサーバ10へ中継することができる。   On the other hand, if the e-mail requested to be relayed from the mail server 10 is a reserved transmission mail (S511: YES), the authentication server 30 performs the authentication at the timing when the receiving mail server 10 matches the transmission time designated by the reserved mail. It adjusts so that it may communicate with the server 30 (S512). For this reason, the electronic mail from the transmission side mail server 10 can be relayed to the reception side mail server 10 at the designated transmission time.

また、認証サーバ30は、調整したタイミングで送信側メールサーバ10及び受信側メールサーバ10のうちの少なくとも一方から当該認証サーバ30に対して通信が行われなかった場合には(S514:NO,S515:NO)、送信側メールサーバ10による当該認証サーバ30に対する通信と受信側メールサーバ10による当該認証サーバ30に対する通信とが重複したタイミングで行われるように再調整する(S519)。このため、何らかの原因で電子メールの中継ができなかった場合には再度中継を試みることとなり、一時的な原因で電子メールが送信されなくなってしまうことを防ぐことができる。   Further, the authentication server 30, when communication is not performed from at least one of the transmission side mail server 10 and the reception side mail server 10 to the authentication server 30 at the adjusted timing (S514: NO, S515). : NO), readjustment is performed so that the communication to the authentication server 30 by the transmission side mail server 10 and the communication to the authentication server 30 by the reception side mail server 10 are performed at overlapping timing (S519). For this reason, when the e-mail cannot be relayed for some reason, the relay is tried again, and it is possible to prevent the e-mail from being transmitted for a temporary cause.

[5.特許請求の範囲との対応]
なお、本実施形態の通信システムでは、メールサーバ10が、サーバ装置に相当し、問い合わせ処理(図9)を実行するメールサーバ10のCPU12が、定期通信手段に相当し、送信要求処理(図10)を実行するメールサーバ10のCPU12が、メール送信手段に相当する。
[5. Correspondence with Claims]
In the communication system of this embodiment, the mail server 10 corresponds to the server device, and the CPU 12 of the mail server 10 that executes the inquiry process (FIG. 9) corresponds to the periodic communication means, and the transmission request process (FIG. 10). The CPU 12 of the mail server 10 that executes “) corresponds to a mail transmission means.

また、認証サーバ30が、中継装置に相当し、メール送信処理(図12)におけるS511〜S515,S519の処理を実行する認証サーバ30のCPU32が、調整手段に相当し、S516,S517の処理を実行する認証サーバ30のCPU32が、中継手段に相当する。   Further, the authentication server 30 corresponds to the relay device, and the CPU 32 of the authentication server 30 that executes the processes of S511 to S515 and S519 in the mail transmission process (FIG. 12) corresponds to the adjusting means, and performs the processes of S516 and S517. The CPU 32 of the authentication server 30 to execute corresponds to the relay unit.

[6.他の形態]
以上、本発明の一実施形態について説明したが、本発明は、種々の形態を採り得ることは言うまでもない。
[6. Other forms]
As mentioned above, although one Embodiment of this invention was described, it cannot be overemphasized that this invention can take a various form.

例えば、上記実施形態では、本発明の中継装置として認証サーバ30を例示したが、メールサーバ10の数が多くなった場合に認証サーバ30の負荷が大きくなるため、メールサーバ10に電子メールの中継を行わせるようにしてもよい。具体的には、例えば、グローバルIPアドレスを持ちかつ外部ネットワークからのアクセスが制限されていない特定のメールサーバ10をリレーノードとして機能させ、そのリレーノードが上記実施形態の認証サーバ30と同様の役割を果たすようにする。このようにすれば、リレーノードの数を調整することで、メールサーバ10の増加に対するスケーラビリティを保つことができる。また、送信側メールサーバ10や受信側メールサーバ10がリレーノードにアクセスできない場合には、認証サーバ30に接続不可であることを通知し、認証サーバ30に別のリレーノードを用意させるようにするといったことも可能となる。   For example, in the above embodiment, the authentication server 30 is exemplified as the relay device of the present invention. However, when the number of the mail servers 10 increases, the load on the authentication server 30 increases. May be performed. Specifically, for example, a specific mail server 10 that has a global IP address and access from an external network is allowed to function as a relay node, and the relay node has the same role as the authentication server 30 of the above embodiment. To fulfill. In this way, it is possible to maintain scalability against the increase in the number of mail servers 10 by adjusting the number of relay nodes. Further, when the transmission side mail server 10 or the reception side mail server 10 cannot access the relay node, the authentication server 30 is notified that the connection is impossible, and the authentication server 30 is provided with another relay node. It is also possible.

また、登録サーバデータベースに記憶される各メールサーバ10のID及びパスワードは、上記実施形態のように各メールサーバ10にあらかじめ記憶されているものであってもよいし、メールサーバ10の管理者によってメールサーバ10に設定されたものであってもよい。   Further, the ID and password of each mail server 10 stored in the registration server database may be stored in advance in each mail server 10 as in the above-described embodiment, or by the administrator of the mail server 10. It may be set in the mail server 10.

さらに、認証サーバ30は、図12のS512,S513及びS519の処理において受信側メールサーバ10又は送信側メールサーバ10に対してセッション時刻を通知したことを条件として、そのセッション時刻に先にセッションが張られた受信側メールサーバ10又は送信側メールサーバ10に対して所定時間セッションを張らせたまま待機させるように指示を出すとよい。このようにすれば、受信側メールサーバ10が計時する時刻と送信側メールサーバ10が計時する時刻との間に多少のズレが生じていた場合にも、前記所定時間内のズレであれば認証サーバ30によるメールの中継が可能となる。   Furthermore, on the condition that the authentication server 30 notifies the reception side mail server 10 or the transmission side mail server 10 of the session time in the processing of S512, S513, and S519 of FIG. It is preferable to instruct the stretched receiving mail server 10 or transmitting mail server 10 to wait for a predetermined time. In this way, even if there is a slight deviation between the time measured by the receiving side mail server 10 and the time measured by the transmitting side mail server 10, if the deviation is within the predetermined time, the authentication is performed. The server 30 can relay mail.

実施形態の通信システムの概略構成を示すブロック図である。It is a block diagram which shows schematic structure of the communication system of embodiment. メールサーバの概略構成を示すブロック図である。It is a block diagram which shows schematic structure of a mail server. 認証サーバの概略構成を示すブロック図である。It is a block diagram which shows schematic structure of an authentication server. メール送受信処理例(1)のラダーチャートである。It is a ladder chart of mail transmission / reception processing example (1). メール送受信処理例(2)のラダーチャートである。It is a ladder chart of the mail transmission / reception processing example (2). メール送受信処理例(3)のラダーチャートである。It is a ladder chart of the mail transmission / reception processing example (3). メール送受信処理例(4)のラダーチャートである。It is a ladder chart of the mail transmission / reception processing example (4). 登録要求処理のフローチャートである。It is a flowchart of a registration request process. 問い合わせ処理のフローチャートである。It is a flowchart of an inquiry process. 送信要求処理のフローチャートである。It is a flowchart of a transmission request process. 登録処理のフローチャートである。It is a flowchart of a registration process. メール送信処理のフローチャートである。It is a flowchart of a mail transmission process. 通知処理のフローチャートである。It is a flowchart of a notification process.

10…メールサーバ、11…制御部、12…CPU、13…ROM、14…RAM、15…音入力部、16…音出力部、17…通信部、18…操作部、19…表示部、20…画像読取部、21…画像印刷部、22…記憶部、30…認証サーバ、31…制御部、32…CPU、33…ROM、34…RAM、35…通信部、36…記憶部、50…インターネット   DESCRIPTION OF SYMBOLS 10 ... Mail server, 11 ... Control part, 12 ... CPU, 13 ... ROM, 14 ... RAM, 15 ... Sound input part, 16 ... Sound output part, 17 ... Communication part, 18 ... Operation part, 19 ... Display part, 20 ... Image reading unit, 21 ... Image printing unit, 22 ... Storage unit, 30 ... Authentication server, 31 ... Control unit, 32 ... CPU, 33 ... ROM, 34 ... RAM, 35 ... Communication unit, 36 ... Storage unit, 50 ... the Internet

Claims (8)

メールサーバとして機能する複数のサーバ装置と、前記サーバ装置間の通信を中継する中継装置とが、通信可能に構成された通信システムであって、
前記サーバ装置は、
前記中継装置に対して定期的に通信を行う定期通信手段と、
他のサーバ装置へ電子メールを送信する場合に、前記中継装置に対して電子メールの中継を要求するメール送信手段と、を備え、
前記中継装置は、
前記サーバ装置から電子メールの中継を要求された場合に、要求元のサーバ装置による当該中継装置に対する通信と電子メールの送信先のサーバ装置による当該中継装置に対する通信とが重複したタイミングで行われるように調整する調整手段と、
前記調整手段により調整されたタイミングで、前記要求元のサーバ装置から送信されてきた電子メールを前記送信先のサーバ装置へ送信されるように中継する中継手段と、を備えること
を特徴とする通信システム。
A plurality of server devices functioning as mail servers and a relay device that relays communication between the server devices are communication systems configured to be communicable,
The server device
Periodic communication means for periodically communicating with the relay device;
A mail transmitting means for requesting the relay device to relay an email when sending an email to another server device;
The relay device is
When the server device requests relaying of the e-mail, the communication to the relay device by the requesting server device and the communication to the relay device by the server device to which the e-mail is transmitted are performed at an overlapping timing. Adjusting means for adjusting to
Relaying means for relaying an e-mail transmitted from the requesting server apparatus so as to be transmitted to the destination server apparatus at a timing adjusted by the adjusting means. system.
前記調整手段は、前記サーバ装置から電子メールの中継を要求された場合に、前記送信先のサーバ装置が当該中継装置に対して定期的に行う通信のタイミングに合わせた送信タイミングを前記要求元のサーバ装置に通知し、
前記メール送信手段は、前記中継装置から通知された前記送信タイミングで前記中継装置に対して電子メールを送信すること
を特徴とする請求項1に記載の通信システム。
When the server device is requested to relay an email, the adjustment unit sets a transmission timing corresponding to a communication timing periodically performed by the transmission destination server device to the relay device. Notify the server device,
The communication system according to claim 1, wherein the mail transmission unit transmits an electronic mail to the relay apparatus at the transmission timing notified from the relay apparatus.
前記メール送信手段は、送信時刻が指定された電子メールを他のサーバ装置へ送信する場合に、前記中継装置に対して前記送信時刻での電子メールの中継を要求し、
前記調整手段は、前記サーバ装置から前記送信時刻での電子メールの中継を要求された場合には、前記送信先のサーバ装置が前記送信時刻に合わせたタイミングで当該中継装置に対して通信を行うように調整すること
を特徴とする請求項1又は請求項2に記載の通信システム。
The mail transmission means requests the relay device to relay an email at the transmission time when transmitting an email with a specified transmission time to another server device,
When the server device is requested to relay the e-mail at the transmission time, the adjustment device communicates with the relay device at a timing that matches the transmission time of the server device at the transmission destination. The communication system according to claim 1, wherein the communication system is adjusted as follows.
前記調整手段は、調整したタイミングで前記要求元のサーバ装置及び前記送信先のサーバ装置のうちの少なくとも一方から当該中継装置に対して通信が行われなかった場合には、前記要求元のサーバ装置による当該中継装置に対する通信と前記送信先のサーバ装置による当該中継装置に対する通信とが重複したタイミングで行われるように再調整すること
を特徴とする請求項1から請求項3までのいずれか1項に記載の通信システム。
The adjustment unit, when communication is not performed from at least one of the request source server device and the transmission destination server device to the relay device at the adjusted timing, the request source server device 4. The readjustment is performed so that the communication with the relay device by the server and the communication with the relay device by the destination server device are performed at overlapping timings. 5. The communication system according to 1.
メールサーバとして機能する複数のサーバ装置と、前記サーバ装置間の通信を中継する中継装置とが、通信可能に構成された通信システムにおいて前記サーバ装置として用いられる情報処理装置であって、
前記中継装置に対して定期的に通信を行う定期通信手段と、
他のサーバ装置へ電子メールを送信する場合に、前記中継装置に対して電子メールの中継を要求するメール送信手段と、
を備え
前記メール送信手段は、前記中継装置に対して電子メールの中継を要求した場合に、前記中継装置により調整されたタイミングであって、前記サーバ装置による前記中継装置に対する通信と電子メールの送信先のサーバ装置による前記中継装置に対する通信とが重複する前記タイミングで、前記中継装置に対して電子メールを送信することを特徴とする情報処理装置。
A plurality of server devices that function as mail servers and a relay device that relays communication between the server devices are information processing devices used as the server devices in a communication system configured to be communicable,
Periodic communication means for periodically communicating with the relay device;
A mail transmission means for requesting the relay device to relay an email when sending an email to another server device;
Equipped with a,
The mail transmission means is a timing adjusted by the relay device when the relay device requests relay of the electronic mail, and the server device communicates with the relay device and the destination of the electronic mail. in the timing of communication and overlap with respect to the relay device by the server apparatus, the information processing apparatus characterized that you send e-mail to the relay device.
メールサーバとして機能する複数のサーバ装置と、前記サーバ装置間の通信を中継する中継装置とが、通信可能に構成された通信システムにおいて前記中継装置として用いられる情報処理装置であって、
前記サーバ装置から電子メールの中継を要求された場合に、要求元のサーバ装置による当該中継装置に対する通信と電子メールの送信先のサーバ装置による当該中継装置に対する通信とが重複したタイミングで行われるように調整する調整手段と、
前記調整手段により調整されたタイミングで、前記要求元のサーバ装置から送信されてきた電子メールを前記送信先のサーバ装置へ送信されるように中継する中継手段と、
を備えることを特徴とする情報処理装置。
A plurality of server devices functioning as mail servers and a relay device that relays communication between the server devices are information processing devices used as the relay device in a communication system configured to be communicable,
When the server device requests relaying of the e-mail, the communication to the relay device by the requesting server device and the communication to the relay device by the server device to which the e-mail is transmitted are performed at an overlapping timing. Adjusting means for adjusting to
Relay means for relaying an e-mail transmitted from the requesting server apparatus to be transmitted to the destination server apparatus at a timing adjusted by the adjusting means;
An information processing apparatus comprising:
メールサーバとして機能する複数のサーバ装置と、前記サーバ装置間の通信を中継する中継装置とが、通信可能に構成された通信システムにおける前記サーバ装置としてコンピュータを機能させるためのプログラムであって、
前記中継装置に対して定期的に通信を行う定期通信手段と、
他のサーバ装置へ電子メールを送信する場合に、前記中継装置に対して電子メールの中継を要求するメール送信手段
としてコンピュータを機能させ
前記メール送信手段は、前記中継装置に対して電子メールの中継を要求した場合に、前記中継装置により調整されたタイミングであって、前記サーバ装置による前記中継装置に対する通信と電子メールの送信先のサーバ装置による前記中継装置に対する通信とが重複する前記タイミングで、前記中継装置に対して電子メールを送信することを特徴とするプログラム。
A plurality of server devices functioning as mail servers and a relay device that relays communication between the server devices are programs for causing a computer to function as the server device in a communication system configured to be communicable,
Periodic communication means for periodically communicating with the relay device;
When sending an e-mail to another server device, the computer functions as a mail sending means for requesting the relay device to relay the e-mail ,
The mail transmission means is a timing adjusted by the relay device when the relay device requests relay of the electronic mail, and the server device communicates with the relay device and the destination of the electronic mail. in the timing of communication and overlap with respect to the relay device by the server apparatus, the program characterized that you send e-mail to the relay device.
メールサーバとして機能する複数のサーバ装置と、前記サーバ装置間の通信を中継する中継装置とが、通信可能に構成された通信システムにおける前記中継装置としてコンピュータを機能させるためのプログラムであって、
前記サーバ装置から電子メールの中継を要求された場合に、要求元のサーバ装置による当該中継装置に対する通信と電子メールの送信先のサーバ装置による当該中継装置に対する通信とが重複したタイミングで行われるように調整する調整手段と、
前記調整手段により調整されたタイミングで、前記要求元のサーバ装置から送信されてきた電子メールを前記送信先のサーバ装置へ送信されるように中継する中継手段
としてコンピュータを機能させることを特徴とするプログラム。
A plurality of server devices functioning as mail servers and a relay device that relays communication between the server devices are programs for causing a computer to function as the relay device in a communication system configured to be communicable,
When the server device requests relaying of the e-mail, the communication to the relay device by the requesting server device and the communication to the relay device by the server device to which the e-mail is transmitted are performed at an overlapping timing. Adjusting means for adjusting to
The computer is caused to function as a relay unit that relays an e-mail transmitted from the request source server device to be transmitted to the destination server device at a timing adjusted by the adjustment unit. program.
JP2007258783A 2007-10-02 2007-10-02 Communication system, information processing apparatus, and program Expired - Fee Related JP4844527B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007258783A JP4844527B2 (en) 2007-10-02 2007-10-02 Communication system, information processing apparatus, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007258783A JP4844527B2 (en) 2007-10-02 2007-10-02 Communication system, information processing apparatus, and program

Publications (2)

Publication Number Publication Date
JP2009089238A JP2009089238A (en) 2009-04-23
JP4844527B2 true JP4844527B2 (en) 2011-12-28

Family

ID=40661993

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007258783A Expired - Fee Related JP4844527B2 (en) 2007-10-02 2007-10-02 Communication system, information processing apparatus, and program

Country Status (1)

Country Link
JP (1) JP4844527B2 (en)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005073051A (en) * 2003-08-26 2005-03-17 Sharp Corp Repeater and its relay program
JP3962071B2 (en) * 2005-09-15 2007-08-22 株式会社エヌ・ティ・ティ・ドコモ Server and mail transmission / reception device

Also Published As

Publication number Publication date
JP2009089238A (en) 2009-04-23

Similar Documents

Publication Publication Date Title
US8060611B2 (en) Content providing system for enabling a user to change destination of contents
WO2015015994A1 (en) Image-forming apparatus, image-forming apparatus remote system, and method for remotely displaying operation screen of image-forming apparatus
JP2011029820A (en) Information processing apparatus, control method of the information processing apparatus, and control program for the information processing apparatus
US20090033985A1 (en) Mobile device, printer server and private network system, and methods to receive fax data thereby
JP2014195215A (en) Radio communication equipment
JP2008097470A (en) Management system and relay server
JP2004046298A (en) Image processor
JP2008028472A (en) Fax gateway apparatus
JP2016099843A (en) Communication system, communication method, device with gateway function, and program
JP2005057549A (en) Mfp system, server, remote operating method, and program
JP5120405B2 (en) E-mail communication apparatus and computer program
JP6361424B2 (en) Facsimile device, program, and communication server
JP4844527B2 (en) Communication system, information processing apparatus, and program
JP2008257484A (en) Mail monitoring method and communication device with mail monitoring function
JP2011029821A (en) Information processing apparatus, control method of the information processing apparatus, and control program for the information processing apparatus
JP5070139B2 (en) Communication relay device, communication system, communication method, and program
JP2008205617A (en) Communicating method and image communication device
JP4561387B2 (en) E-mail communication device
JP2012151788A (en) Communication terminal device and image forming device
KR101906429B1 (en) Method and Apparatus of issuing an Email account
JP5321030B2 (en) COMMUNICATION DEVICE, COMMUNICATION METHOD, AND PROGRAM
JP2004234292A (en) Communication system
JP5272625B2 (en) Incoming data notification system, network device, and incoming data notification method
US9294632B2 (en) Mobile terminal and computer-readable recording medium for a mobile terminal using near field wireless communication to transmit a scan command to a scanning device
JP4262589B2 (en) Facsimile apparatus, communication system, transmission method, and transmission program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20100202

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110609

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110621

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110809

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: 20110913

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20110926

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20141021

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 4844527

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees