Stefano,

Were you looking for something like this?

I've added this to JIRA (JAMES-437) too.

Index: src/java/org/apache/james/smtpserver/RcptCmdHandler.java
===================================================================
--- src/java/org/apache/james/smtpserver/RcptCmdHandler.java
(revision 370873)
+++ src/java/org/apache/james/smtpserver/RcptCmdHandler.java    (working
copy)
@@ -149,7 +149,7 @@
                     if (!session.getConfigurationData().getMailServer
().isLocalServer(toDomain)) {
                         responseString = "530 "+DSNStatus.getStatus
(DSNStatus.PERMANENT,DSNStatus.SECURITY_AUTH)+" Authentication
Required";
                         session.writeResponse(responseString);
-                        getLogger().error("Rejected message -
authentication is required for mail request");
+                        getLogger().error("Rejected message to: " +
recipientAddress.toInternetAddress().getAddress() + " - authentication
is required for mail request");
                         return;
                     }
                 } else {



-- 
Kind Regards
Andrew Sykes <[EMAIL PROTECTED]>
Sykes Development Ltd


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to