"Pieckiel, Kevin A" <[EMAIL PROTECTED]> wrote:
>
>I can't seem to figure out how to get my mail routing exactly as I want
>it. I have 50 or so computers at mysite.org. We are behind a firewall
>with a dedicated link to our HQ in another city. All mail generated by
>computers at mysite.org are routed through my mail server
>mail.mysite.org. If generated mail is not local (not to a mysite.org
>address or machine.mysite.org address where machine is any machine
>name), I want to route it through mailhost.hq.net. This can be done by
>adding :mailhost.hq.net in smtproutes.
>
>Here's where I have trouble:
>I want mail addressed to pc1.mysite.org, pc2.mysite.org, and
>pc3.mysite.org to be routed to those machines (they have qmail
>installed). Mail to ANY OTHER MACHINE at mysite.org should be delivered
>locally to mail.mysite.org no matter what the machine name is, even if
>that machine doesn't exist. Of course, a valid user must be specified
>or the mail will bounce, but that's not relevent to my question. How
>can I set this up? ll mail to any machine at mysite.org should be
>delievered to mail.mysite.org unless it's sent to pc1.mysite.org,
>pc2.mysite.org, or pc3.mysite.org, in which case mail is then routed to
>those machines.
Let's see if I've got this straight. You've got:
mail.mysite.org (your qmail box)
mailhost.hq.net (the relay to the rest of the world)
pcN.mysite.org (systems with local mail users)
And you want mail routed like this:
[EMAIL PROTECTED] -> remote to "user" on pcN.mysite.org
[EMAIL PROTECTED] -> local "user" on mailhost.hq.net
user@*.mysite.org -> local "user" on mailhost.hq.net
user@anywhere_else -> relay through mailhost.hq.net
OK, in control/smtproutes:
pc1.mysite.org:
pc2.mysite.org:
pc3.mysite.org:
:mailhost.hq.net
In control/locals:
mail.mysite.org
mysite.org
foo.mysite.org
bar.mysite.org (e.g., all the mysite.org hosts you want to
handle locally)
In control/rcphosts:
pc1.mysite.org
pc2.mysite.org
pc3.mysite.org
(plus contents of control/locals)
Then restart qmail and test.
-Dave