Je zwei JMS-Nachrichten an mail-Server zu einer zusammengefasst
This commit is contained in:
parent
f8fb5d31e4
commit
73ba138ac4
@ -77,9 +77,13 @@ public class DomainProcessorFactory implements EntityProcessorFactory {
|
|||||||
Processor relayDomainsProcessor = null;
|
Processor relayDomainsProcessor = null;
|
||||||
String[] mailServerQueues = { "mail1", "mail2", "mail3" };
|
String[] mailServerQueues = { "mail1", "mail2", "mail3" };
|
||||||
for (String queueName : mailServerQueues) {
|
for (String queueName : mailServerQueues) {
|
||||||
relayDomainsProcessor = new ShellProcessor("postmap -r -i /etc/postfix-mailin/relaydomains", domName + " anything" + "\n." + domName + " anything");
|
relayDomainsProcessor = new CompoundProcessor(
|
||||||
mainProcessor.appendProcessor(queueName, relayDomainsProcessor, queueName + ".hostsharing.net");
|
new ShellProcessor("postmap -r -i /etc/postfix-mailin/relaydomains",
|
||||||
relayDomainsProcessor = new ShellProcessor("postmap -r -i /etc/postfix-mailin/transport", domName + " smtp:[" + pac.getName() + ".hostsharing.net]\n." + domName + " smtp:[" + pac.getName() + ".hostsharing.net]\n.");
|
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");
|
mainProcessor.appendProcessor(queueName, relayDomainsProcessor, queueName + ".hostsharing.net");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user