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 2012/01/08 21:33:54 UTC
svn commit: r1228946 -
/james/mailet/standard/trunk/src/main/java/org/apache/james/transport/mailets/PostmasterAlias.java
Author: norman
Date: Sun Jan 8 20:33:54 2012
New Revision: 1228946
URL: http://svn.apache.org/viewvc?rev=1228946&view=rev
Log:
Use the postmaster@ for the domain if present. If not fallback to "default" postmaster account. See MAILETSTANDARD-11
Modified:
james/mailet/standard/trunk/src/main/java/org/apache/james/transport/mailets/PostmasterAlias.java
Modified: james/mailet/standard/trunk/src/main/java/org/apache/james/transport/mailets/PostmasterAlias.java
URL: http://svn.apache.org/viewvc/james/mailet/standard/trunk/src/main/java/org/apache/james/transport/mailets/PostmasterAlias.java?rev=1228946&r1=1228945&r2=1228946&view=diff
==============================================================================
--- james/mailet/standard/trunk/src/main/java/org/apache/james/transport/mailets/PostmasterAlias.java (original)
+++ james/mailet/standard/trunk/src/main/java/org/apache/james/transport/mailets/PostmasterAlias.java Sun Jan 8 20:33:54 2012
@@ -57,7 +57,7 @@ public class PostmasterAlias extends Gen
for (Iterator<MailAddress> i = recipients.iterator(); i.hasNext(); ) {
MailAddress addr = (MailAddress)i.next();
if (addr.getLocalPart().equalsIgnoreCase("postmaster") &&
- mailetContext.isLocalServer(addr.getDomain())) {
+ mailetContext.isLocalServer(addr.getDomain()) && !mailetContext.isLocalEmail(addr)) {
//Should remove this address... we want to replace it with
// the server's postmaster address
if (recipientsToRemove == null) {
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org