You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-user@james.apache.org by Diego Castillo <di...@inexbee.com> on 2003/05/21 17:31:34 UTC

RE : DNS Server dependency

Thanks Noel/Serge/Harmeet for your (simultaneous) replies :-)

Removing the DNS Sever block is not a requirement for me. I simply did
not understand why James is dependent on it, as I do not use any MX
resolution.

The only matcher or mailet that I use which uses the DNS Server block is
RemoteDelivery. I can see in its code that the gateway definition is
checked in an if/else block inside the same method. My understanding is
that even if my RemoteDelivery will never call
MailetContext.getMailServers(), I cannot remove the block because the
dependency definition is not sufficiently fine-grained. Is this correct?

Thanks again for helping me better understand James.

Regards,


Diego

-----Message d'origine-----
De : Noel J. Bergman [mailto:noel@devtech.com] 
Envoyé : mercredi 21 mai 2003 16:55
À : James Users List
Objet : RE: DNS Server dependency

> My James server forwards everything to a SMTP gateway. As it does not
> require resolving any MX record, I would like to remove the DNS block.

The DNS Server block is currently used only in the getMailServers
method.
That method is called from Forward, RemoteDelivery, and
SenderInFakeDomain.
RemoteDelivery does not call that method when using a gateway.
InSpammerBlacklist does not use it, but perhaps should be changed to do
so
(that would permit getting additional information, such as the TXT
record
for the block entry).

> Everything works fine if I simply leave the block at assembly.xml but
> remove all <server>...</server> items from config.xml (?!).

Why do you need to remove the block?

> I only use IP addresses (no hostnames) in my config files.

IP address resolution is handled by InetAddress, and a different code
path.

	--- Noel


---------------------------------------------------------------------
To unsubscribe, e-mail: james-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: james-user-help@jakarta.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: james-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: james-user-help@jakarta.apache.org


RE: RE : DNS Server dependency

Posted by "Noel J. Bergman" <no...@devtech.com>.
I would not remove it if you don't need to remove it.  It isn't causing you
a problem, and it could be used by new functionality.  For example, a
possible future change would allow James to automatically discover the
domains for which it is handling mail by querying MX records.

	--- Noel


---------------------------------------------------------------------
To unsubscribe, e-mail: james-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: james-user-help@jakarta.apache.org