On Tue, 22 Feb 2000, Martin Horak wrote:

> Hello everybody.
> Sorry about my newbie question, but I've failed searching the answer in
> the docs.
> I have this problem:
> Our mail comes with address user@domain.
> I'd like to set qmail box as a primary MX, so all incoming mail will come
> here.
> There I'd like to catch the mail for specific users (let it go to local
> mailboxes, or forward it somewhere), and pass the rest to particular host
> (our main mailserver).
> Is it possible to achieve that function with qmail?

Assuming you have "domain" in both /var/qmail/control/locals and
/var/qmail/control/rcpthosts, mail for valid users will be delivered to
their home directories (unless overridden with a
/var/qmail/users/assign entry).

You can then setup an ~alias/.qmail-default file which will catch any
other address. It's contents could be

    | forward $[EMAIL PROTECTED]

and that will go to the MX record for "some.other.domain" OR you can
setup a /var/qmail/control/smtproutes entry

    some.other.domain:some.specific.hostname

Regards
Peter
----------
Peter Samuel                                [EMAIL PROTECTED]
Technical Consultant                        or at present:
eServ. Pty Ltd                              [EMAIL PROTECTED]
Phone: +61 2 9206 3410                      Fax: +61 2 9281 1301

"If you kill all your unhappy customers, you'll only have happy ones left"

Reply via email to