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: [email protected]
For additional commands, e-mail: [email protected]