HSAdmin Backend Domains, E-Mail, Datenbanken
Michael Hierweck
2017-09-17 9e362b2f87a65f13fe0387f80b7368b76d8d6c7a
Logging.
1 files modified
6 ■■■■ changed files
hsarback/src/de/hsadmin/mods/email/EMailAddressProcessorFactory.java 6 ●●●● patch | view | raw | blame | history
hsarback/src/de/hsadmin/mods/email/EMailAddressProcessorFactory.java
@@ -30,7 +30,7 @@
        }
        cp.appendProcessor(new ShellProcessor("postmap -r -i /etc/postfix-mailin/virtual || true",
                email.getEMailAddress() + " " + email.getTarget() + "\n"));
        logger.log(Level.INFO, "Queue: virtual => create email address record");
        logger.log(Level.INFO, "Queue: virtual => create email address record (" + email.getEMailAddress()+ ")");
        WaitingTasksProcessor waitingTasksProcessor = new WaitingTasksProcessor(cp);
        Config config = Config.getInstance();
        for (String queueName : config.getProperty("queues.mail").split(",")) {
@@ -38,7 +38,7 @@
                    new ShellProcessor("postmap -r -i /etc/postfix-mailin/relayrecipients || true",
                            email.getEMailAddress() + " anything\n"),
                    "Add to relayrecipients");
            logger.log(Level.INFO, "Queue: relayrecipients => create email address record for " + queueName  + (" + email.getEMailAddress()+ "));
            logger.log(Level.INFO, "Queue: relayrecipients => create email address record for " + queueName  + "(" + email.getEMailAddress()+ ")");
        }
        return waitingTasksProcessor;
    }
@@ -70,7 +70,7 @@
                    new ShellProcessor("postmap -d - /etc/postfix-mailin/relayrecipients || true", 
                            email.getEMailAddress() + "\n"),
                    "Remove from relayrecipients");
            logger.log(Level.INFO, "Queue: relayrecipients => remove email address record for " + queueName + (" + email.getEMailAddress()+ "));
            logger.log(Level.INFO, "Queue: relayrecipients => remove email address record for " + queueName + "(" + email.getEMailAddress()+ ")");
        }
        return waitingTasksProcessor;
    }