Murthy Raju <[EMAIL PROTECTED]> wrote:

>Some addresses under mydomain.com are local users( users of
>mymachine.mydomain.com)  and other addresses belonging to the same domain
>are not local users. So the mail for the second category will have to go to
> remotemail server serving the domain. 

Say you want to accept mail locally for [EMAIL PROTECTED],
[EMAIL PROTECTED], and [EMAIL PROTECTED], but [EMAIL PROTECTED],
[EMAIL PROTECTED], etc. should be routed to exchange.example.com.

Add the following to control/rcphosts:

    example.com

Add the following to control/virtualdomains:

    example.com:alias-example

Create ~alias/.qmail-example-joe:

    &joe

(Likewise for bill and sue.)

Create ~alias/.qmail-example-default:

    |forward "$[EMAIL PROTECTED]"

Finally, restart qmail to have the changes take effect.

Another way to do this is using the fastforward package.

>Also I have to receive mail from the local machines ( not only for
>mydomain.com but all outgoing mail ) on my LAN to be relayed to my ISP when
>I connect using serial mail. 

Use the well-documented selective relaying techniques to accept mail
from the local machines.

Why do you want to use serialmail to send to your ISP? Why not let
qmail handle that?

-Dave

Reply via email to