You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by no...@apache.org on 2006/11/23 13:13:44 UTC

svn commit: r478543 - /james/server/trunk/src/java/org/apache/james/transport/mailets/RemoteDelivery.java

Author: norman
Date: Thu Nov 23 04:13:43 2006
New Revision: 478543

URL: http://svn.apache.org/viewvc?view=rev&rev=478543
Log:
Handle nonexisting domains as permanent error. See JAMES-715

Modified:
    james/server/trunk/src/java/org/apache/james/transport/mailets/RemoteDelivery.java

Modified: james/server/trunk/src/java/org/apache/james/transport/mailets/RemoteDelivery.java
URL: http://svn.apache.org/viewvc/james/server/trunk/src/java/org/apache/james/transport/mailets/RemoteDelivery.java?view=diff&rev=478543&r1=478542&r2=478543
==============================================================================
--- james/server/trunk/src/java/org/apache/james/transport/mailets/RemoteDelivery.java (original)
+++ james/server/trunk/src/java/org/apache/james/transport/mailets/RemoteDelivery.java Thu Nov 23 04:13:43 2006
@@ -466,7 +466,10 @@
                         .append("There are no DNS entries for the hostname ")
                         .append(host)
                         .append(".  I cannot determine where to send this message.");
-                    return failMessage(mail, new MessagingException(exceptionBuffer.toString()), false);
+                    
+                    // The domain has no dns entry.. Return a permanent error
+                    return failMessage(mail, new MessagingException(exceptionBuffer.toString()), true);
+
                 }
             } else {
                 targetServers = getGatewaySMTPHostAddresses(gatewayServer);



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


RE: svn commit: r478543 - /james/server/trunk/src/java/org/apache/james/transport/mailets/RemoteDelivery.java

Posted by "Noel J. Bergman" <no...@devtech.com>.
-1

The handling of this condition as temporary was very intentional, and in no way accidental.  This is a not uncommon problem.  The DNS can be wrong, and later corrected.  The problem is ascertaining whether a domain is non-existent for real (there is no registration record) or because of a temporary DNS configuration error.

Consider the debate within the SPF council regarding whether or not NXDOMAIN was to be treated as a PermError or TempFail.

	--- Noel



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