From 73ba138ac466c0bfbf94aa285e0d9e9bd45f4aaf Mon Sep 17 00:00:00 2001 From: Peter Hormanns Date: Fri, 20 May 2011 13:33:45 +0000 Subject: [PATCH] Je zwei JMS-Nachrichten an mail-Server zu einer zusammengefasst --- .../de/hsadmin/mods/dom/DomainProcessorFactory.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/hsarback/src/de/hsadmin/mods/dom/DomainProcessorFactory.java b/hsarback/src/de/hsadmin/mods/dom/DomainProcessorFactory.java index 2365d08..1a45e5d 100644 --- a/hsarback/src/de/hsadmin/mods/dom/DomainProcessorFactory.java +++ b/hsarback/src/de/hsadmin/mods/dom/DomainProcessorFactory.java @@ -77,9 +77,13 @@ public class DomainProcessorFactory implements EntityProcessorFactory { Processor relayDomainsProcessor = null; String[] mailServerQueues = { "mail1", "mail2", "mail3" }; for (String queueName : mailServerQueues) { - relayDomainsProcessor = new ShellProcessor("postmap -r -i /etc/postfix-mailin/relaydomains", domName + " anything" + "\n." + domName + " anything"); - mainProcessor.appendProcessor(queueName, relayDomainsProcessor, queueName + ".hostsharing.net"); - relayDomainsProcessor = new ShellProcessor("postmap -r -i /etc/postfix-mailin/transport", domName + " smtp:[" + pac.getName() + ".hostsharing.net]\n." + domName + " smtp:[" + pac.getName() + ".hostsharing.net]\n."); + relayDomainsProcessor = new CompoundProcessor( + new ShellProcessor("postmap -r -i /etc/postfix-mailin/relaydomains", + domName + " anything" + "\n." + domName + " anything"), + new ShellProcessor("postmap -r -i /etc/postfix-mailin/transport", + domName + " smtp:[" + pac.getName() + ".hostsharing.net]\n" + + "." + domName + " smtp:[" + pac.getName() + ".hostsharing.net]\n.") + ); mainProcessor.appendProcessor(queueName, relayDomainsProcessor, queueName + ".hostsharing.net"); }