>I want to set up a high-uptime qmail server for all our inbound
>([EMAIL PROTECTED]) mail, and to send out machine generated email. Our
>employees, however, are going to be on an exchange server. I have no choice
>in that. And it's VERY desirable to keep user administration on exchange,
>which means I'd rather that qmail and exchange not have to trade directory
>information. If they did, it'd need to be very automatic.
>
>So I'm thinking, install qmail, and tell it "If you get inbound mail to
>[EMAIL PROTECTED], and it's not local, kick it to the exchange server."
>The exchange server then takes it and delivers to its local user.


    All easily enough done - the FAQ has an entry on this, as follows:

]How do I forward unrecognized usernames to another host? With sendmail
]I had a LUSER_RELAY pointing at bigbang.af.mil.
]
]Answer: Put
]     | forward "$[EMAIL PROTECTED]"
]into ~alias/.qmail-default.

>Okay, so what if an exchange user needs to send mail to a mailbox local to
>the qmail server? Well, I could tell exchange "If you don't know this
>address, kick it to the qmail box."


    Either that, or you could just add alias entries on Exchange saying that
mail for "autoprog" goes to [EMAIL PROTECTED], and that'll forward
it out to the relay machine.

>But then if exchange doesn't know it, and it's not local for qmail, qmail
>will want to send it back. And if I read the docs right, then postmaster is
>going to get it.

    That depends.

    If the recipient in question is local to your domain, then yes, qmail
will forward it back to Exchange, which will generate a bounce message -
which will be correct, because by definition both Exchange and Qmail don't
know who it is for.  Either the address is bad, or one of your servers needs
the appropriate user added.

    If the recipient in question is not local to your domain, then qmail
will attempt to deliver the message to its final recipient at (wherever).
Assuming your firewall does not block the qmail machine from doing so, it'll
succeed as well as it would directly from Exchange.

>Can anyone think of a way to work this? I imagine someone's already done
>something similar. Or *is* there a good way for exchange to trade directory
>info with qmail so qmail can route by address?


    I run a similar setup.  Our MX hosts are qmail machines, and they act as
relays for the Exchange server.  They relay in from the Internet, they relay
out from Exchange.

    I don't know of any way to trade directory info... but I don't think you
really need to do that.

    Hope this helps - if not, please clarify if I've misunderstood anything.

    Greg

Reply via email to