pgoldstein 2002/09/11 00:46:28
Modified: src/java/org/apache/james James.java
Log:
Bug #11916 - James now prints a warning if the postmaster address is not local.
Revision Changes Path
1.29 +11 -2 jakarta-james/src/java/org/apache/james/James.java
Index: James.java
===================================================================
RCS file: /home/cvs/jakarta-james/src/java/org/apache/james/James.java,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -r1.28 -r1.29
--- James.java 23 Aug 2002 06:09:42 -0000 1.28
+++ James.java 11 Sep 2002 07:46:28 -0000 1.29
@@ -269,6 +269,15 @@
this.postmaster = new MailAddress( postMasterAddress );
context.put( Constants.POSTMASTER, postmaster );
+ if (!isLocalServer(postmaster.getHost())) {
+ StringBuffer warnBuffer
+ = new StringBuffer(320)
+ .append("The specified postmaster address ( ")
+ .append(postmaster)
+ .append(" ) is not a local address. This is not
necessarily a problem, but it does mean that emails addressed to the postmaster will
be routed to another server. For some configurations this may cause problems.");
+ getLogger().warn(warnBuffer.toString());
+ }
+
Configuration userNamesConf = conf.getChild("usernames");
ignoreCase = userNamesConf.getAttributeAsBoolean("ignoreCase", false);
enableAliases = userNamesConf.getAttributeAsBoolean("enableAliases", false);
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>