You can set up IMail Server to function as a mail gateway for another mail server so that mail for the other server is sent and received through the IMail Server. Often, people set up a mail gateway because their mail server uses a dial-up connection and is not always connected to the Internet.
To set up IMail Server as a gateway for another mail server, check the following:
Example:
The following example shows how you can set up IMail Server to accept mail for a domain (domain2.com) and forward all mail for this domain to another SMTP server. Assume the following:
Other mail domain: namedomain2.com
Host name of other SMTP server: other_SMTP_server
IP address of other SMTP server: 156.21.50.240
Host name of IMail Server: my_imail_machine
IP address of IMail Server: 156.21.50.10
When Windows looks up a domain name, it first searches the \WINDOWS\system32\drivers\etc\hosts file. So, in the hosts file, point the domain name to the IP address of the other SMTP server:
156.21.50.240 domain2.com.
Note: You can use the ETRN command to manually retrieve mail from the ISP's mail server. See Using ETRN to Retrieve Mail on a Dial-up Connection for more information.