Je zwei JMS-Nachrichten an mail-Server zu einer zusammengefasst

This commit is contained in:
Peter Hormanns 2011-05-20 13:33:45 +00:00
parent f8fb5d31e4
commit 73ba138ac4

View File

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