On the qmail list [EMAIL PROTECTED] wrote:
>
>I am using Qmail and I want to receive mail for "mynet.com.pk" and want =
>to forward it to our another mailserver=20
>"welcome.mynet.com.pk" for relaying.

OK.

>But I want to make the Qmail an =
>open relay too.

Umm, no.  Trust me, you do not want to do that.  What makes you
think you want to do that?  What agreeable things do you think
will happen to your server if you run an open relay on it?  I
can think of several extremely *dis*agreeable things, that's not
difficult.

>So i deleted recpthosts to make open relay. I=20

Bad idea.

>put "mynet.com.pk" in locals but not in rcpthosts. I put =

You want to relay mail addressed to mynet.com.pk to
welcome.mynet.com.pk, right?  Then mynet.com.pk should be in
rcpthosts, but not in locals.

>":welcome.mynet.com.pk" in smtproutes. Now what i get problem is that,=20

You want

        mynet.com.pk:welcome.mynet.com.pk

in smtproutes.

The rest depends on whether you are using the qmail machine as
an Internet gateway or not.

>whenever I receive mail for "mynet.com.pk" Qmail tries to deliver it =
>locally and doeasn't forward it to "welcome.mynet.com.pk".

With ":welcome.mynet.com.pk" in smtproutes, *all* mail will be
transmitted to welcome.mynet.com.pk. *Except* that addressed to
mynet.com.pk, since you had mynet.com.pk in locals.

Exactly the opposite of what you want, if I understand you
correctly.

Reply via email to