On Tue, 8 Jun 1999, Rafael Pirolla wrote:

>     Hi!
> 
>     (First thing, I'm from Brazil, forgive me for the errors please...)
> 
>     I'm trying for some time to send all mail incoming for the domain
> 'virtualnetwork.com.br'
>  to be delivered to a host named 'watherever.virtualnetwork.com.br'. The host
> uses Sendmail
> and I've tried many ways to do the relaying... I've set up an MX for
> 'virtualnetwork.com.br' already...

Good.

>     1- I put the line in the 'virtualdomains' control file:
> 'virtualnetwork.com.br:xxx' and created an 'xxx' user, so that I could forword
> all incoming mails
> to a host by the '.qmail-default' file in the 'xxx' home directory... It didn't
> worked becouse, I think,
> the 'virtualdomains' control file transform the 'user@domain' in
> 'user-prepend@domain', the
> Sendmail program didn't work out the users, I supose...

Both this and your next attempt are incorrect.  To do what you are trying
to do:

1. Add virtualnetwork.com.br to your /var/qmail/control/rcpthosts file.

2. Add the following line to your /var/qmail/control/smtproutes file.

virtualnetwork.com.br:[1111.1111.1111.1111]

Replace the IP address above with the real address.

3. Remove all entries for virtualnetwork.com.br from the
/var/qmail/control/virtualdomains file.

4. kill -HUP (pid of qmail-send)

The mail should now be delivered as you intend.

NOTE: qmail does not use /etc/hosts - ever!  Use smtproutes to get around
the DNS lookups for hosts that are not in DNS.

>     2- I tried to put the line:
> 'virtualnetwork.com.br:whatever.virtualnetwork.com.br' and included the line:
>     'x.x.x.x         virtualnetwork.com.br whatever.virtualnetwork.com.br'
> in my  /etc/hosts  file... It didn't work out either... The Qmail thought that
> the messages wore
> locals...
> 
>     The host 'whatever.virtualnetwork.com.br' have an fake IP... So I can't put
> it in my DNS server,
> I don't want to use my DNS, instead I want to use the /etc/hosts file... Will
> Qmail relay messages
> to another host runing Sendmail?! ...
> 
>    Regards, Pirolla.
> 
> 

---------------------------------
Timothy L. Mayo                         mailto:[EMAIL PROTECTED]
Senior Systems Administrator
localconnect(sm)
http://www.localconnect.net/

The National Business Network Inc.      http://www.nb.net/
One Monroeville Center, Suite 850
Monroeville, PA  15146
(412) 810-8888 Phone
(412) 810-8886 Fax

Reply via email to