Hi!
>   I have second computer it's connected to network as well but it has
>   disabled port 25 for WAN this port is active only for MAN.
> 
>   Both computers are  in the MAN network so they can mail each other
>   but only this first can get mail from entire internet.
> 
>   So i decided to be MX for the second computer (because it can't get
>   mail [port 25 disabled for outside of MAN])
> 
>   So put at this second computer DNS after NS:
> 
>          IN     NS     firstnameserver.
>          IN     NS     secondnameserver.
>          MX     0 firstcomputer.
> 
>    host  IN     A               ip.ip.ip.ip
> 
>    I put nothing into DNS of firstcomputer
> 
>    After configuring qmail i get:
> 
> the message is resend firstcomputer <-> secondcomputer and then i get
> error:
>   
> 554 Too many hops 28 (25 max)
> 
> can anybody tell me what exacly should be in DNS in both computer and
> how qmail should be configured.
> 
> I need exaple to get what did I wrong or maybe you can tell me whats
> wrong.

I assume you configured the DNS-entry for your firstcomputer and the
MX-entry for secondcomputer such as the whole internet can get an answer. As
you describe that the message bounces between your computers I think you did
it right.
So on your firstcomputer you put in your control/smtproutes something like

domain.on.secondcomputer:secondcomputer

or

domain.on.secondcomputer:[IP of secondcomputer]

This should send all messages for secondcomputer received by firstcomputer
to secondcomputer. So on secondcomputer you have to tell QMail which domains
are to be handled locally. That's the matter of the files control/locals,
control/virtualdomains. You must also put this into control/rcpthosts if you
use it. It's a matter of relaying. 

A good way to let firstcomputer send all mails from secondcomputer to the
internet, is to put in secondcomputers control/smtproutes 

:firstcomputer

This will force secondcomputer to send all mails to firstcomputer and
firstcomputer will send it to the recipient.

I think it should work if you configure it this way. Otherwise it could be a
DNS-problem with resolving of firstcomputer or secondcomputer. If it doesn't
work, show us your configfiles of QMail and DNS. This might help a lot...


CU
Holger

Reply via email to