HSAdmin Backend Domains, E-Mail, Datenbanken
Peter Hormanns
2011-05-20 73ba138ac466c0bfbf94aa285e0d9e9bd45f4aaf
Je zwei JMS-Nachrichten an mail-Server zu einer zusammengefasst
1 files modified
10 ■■■■ changed files
hsarback/src/de/hsadmin/mods/dom/DomainProcessorFactory.java 10 ●●●● patch | view | raw | blame | history
hsarback/src/de/hsadmin/mods/dom/DomainProcessorFactory.java
@@ -77,9 +77,13 @@
        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");
        }