Linux writes:

> Hi. 
> 
> On my network i have now installed a new server with qmail acting as a
> mailgateway for external mail.
> My real server (with qmail again) was behind the mailgateway, and was used by
> my users for normal SMTP and POP3.
> I have a question:
> 1)There is a parameter or a method with qmail for redirecting all the
> mail (but not local domain mails) received from the internal mailserver to
> the mailgateway?

Use control/smtproutes on your internal mail host (the local domain mail 
will be delivered locally if you put the the local domains in 
control/locals). 

> 2)And then what is the method to redirect all the mail received from the
> mailgateway and directed to local domain to the internal server?
> There is a RELAYHOST parameter that can help me or not?

On the gateway, Put the domain names you want to receive mail for in 
control/rcpthosts. Put the same names in control/smtproutes with an entry 
pointing to your internal mail server. Your internal mail server will need 
to be able to relay through your gateway. 


Vince.

Reply via email to