On Tue, 22 Feb 2000, Peter Samuel wrote:
> On Tue, 22 Feb 2000, Martin Horak wrote:
>
> > 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
>
Thank you (also Magnus Bodin) for your help.
I thought about solution like this.
It would be better for me, if the domain didn't change, because it means to
change configuration of our main mailhub (Lotus Notes), but
there isn't probably other way.
--
Ing. Martin Horak
system programmer
SCE a.s.