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"); }