RaidenMAILD Server Relay Tutorial

- How to take advantages of Norton Anti-Virus for Gateways to scan all incoming mails.

 

 

After RaidenMAILD version 1.5.0.5 or later, maild will provide "Server Relay" functionality.
Server relay allows server to relay mails to a specific mail server instead of saving or sending mails directly.

 

I will introduce two kinds of server relay setting.

(1). Single server only (no server relay, usual usage) - require 1 maild

Pic. 1

Take above images as an example. This config is for single server only and it is also known as usual usage for a mail server.
The mail server is in charge of "raidenmaild.adsldns.org" domain name and It will save all mails which sent to xxxx@raidenmaild.adsldns.org.

PS: This maild listens to port 25 and raidenmaild.adsldns.org|LOCALHOST:25 is required in domain setting.

Because listen port is equal to destination port, this maild hosted the raidenmaild.adsldns.org and it will save all @raidenmaild.adsldns.org mails to its inboxes.

 

(2) Multiple server (enable server relay) - require 2 mailds or more and 1 NAVGW

(Pic. 2) Server 1

Take above images as an example. This config will relay all mails which sent to raidenmaild.adsldns.org to 192.168.0.2:27 (another mail server - NAVGW).
In this studying case, 192.168.0.2:27 is a Norton Anti-Virus for Gateways server. Let's see some screen shots below for its configuration.

PS: This maild listens to port 25 and raidenmaild.adsldns.org|LOCALHOST:27 is required in domain setting.

Because listen port is not equal to destination port, this maild hosted the raidenmaild.adsldns.org and it will forward all @raidenmaild.adsldns.org mails to LOCALHOST:27.

 

(Pic. 3) NAVGW

NAVGW binds port 27 to be a mail gateway to scan all mails which are sent to it.

 

(Pic. 4) NAVGW

After NAVGW finishing scanning mails, it will relay mails to 192.168.0.2:31 (another mail server - Server 2). (Pic. 5).

 

(Pic. 5) Server 2

This is the final destination mail server settings. It binds port 31 to receive all incomings mail which are already scanned.
Then it saves these mail to mailbox at 192.168.0.2:31(itself).

PS: This maild listens to port 31 and raidenmaild.adsldns.org|LOCALHOST:31 is required in domain setting.

Because listen port is equal to destination port, this maild hosted the raidenmaild.adsldns.org and it will save all @raidenmaild.adsldns.org mails to its inboxes.

 


Appendix.

1. How exactly server relay works for NAVGW?

For taking advantages of NAVGW to be maild virus scanner, we need to prepare at least 2 maild plus 1 NAVGW running on the same computer or different computers.

MAILD_A runs at "C:\RaidenMAILD_A" directory and binds port 25 on ALL IPs to receive all incoming SMTP Request with RaidenMAILD
SMTP policy checking. We can take this server as a SMTP service in front of NAVGW and it will relay all legal mails to NAVGW.

NAVGW runs on the same computer or different computer and binds port to receive mails from MAILD_A to do virus scanning, then relaies them
to MAILD_B.

MAILD_B runs at "C:\RaidenMAILD_B" directory and binds port 31(or else) on ALL IPs to receive all mails which are scanned by NAVGW.

 

2. Multi-Domain & Multi-Server Relay Diagram

 

 


Revision on 2003/09/09

Author: Theodore
Email: arnor@playstation2.idv.tw

Copyrights 2001, John Long Team. All rights reserved.