Logging.
This commit is contained in:
parent
8c0578d6bd
commit
0ac2abbcd0
@ -26,7 +26,7 @@ public class EMailAddressProcessorFactory implements EntityProcessorFactory {
|
|||||||
cp.appendProcessor(new ShellProcessor("postmap -r -i /etc/postfix-mailin/virtual || true",
|
cp.appendProcessor(new ShellProcessor("postmap -r -i /etc/postfix-mailin/virtual || true",
|
||||||
email.getFullDomain() + " -\n" +
|
email.getFullDomain() + " -\n" +
|
||||||
"." + email.getFullDomain() + " -\n"));
|
"." + email.getFullDomain() + " -\n"));
|
||||||
logger.log(Level.INFO, "Queue: virtual => create domain record");
|
logger.log(Level.INFO, "Queue: virtual => create domain record (" + email.getEMailAddress()+ ")");
|
||||||
}
|
}
|
||||||
cp.appendProcessor(new ShellProcessor("postmap -r -i /etc/postfix-mailin/virtual || true",
|
cp.appendProcessor(new ShellProcessor("postmap -r -i /etc/postfix-mailin/virtual || true",
|
||||||
email.getEMailAddress() + " " + email.getTarget() + "\n"));
|
email.getEMailAddress() + " " + email.getTarget() + "\n"));
|
||||||
@ -38,7 +38,7 @@ public class EMailAddressProcessorFactory implements EntityProcessorFactory {
|
|||||||
new ShellProcessor("postmap -r -i /etc/postfix-mailin/relayrecipients || true",
|
new ShellProcessor("postmap -r -i /etc/postfix-mailin/relayrecipients || true",
|
||||||
email.getEMailAddress() + " anything\n"),
|
email.getEMailAddress() + " anything\n"),
|
||||||
"Add to relayrecipients");
|
"Add to relayrecipients");
|
||||||
logger.log(Level.INFO, "Queue: relayrecipients => create email address record for " + queueName);
|
logger.log(Level.INFO, "Queue: relayrecipients => create email address record for " + queueName + (" + email.getEMailAddress()+ "));
|
||||||
}
|
}
|
||||||
return waitingTasksProcessor;
|
return waitingTasksProcessor;
|
||||||
}
|
}
|
||||||
@ -58,11 +58,11 @@ public class EMailAddressProcessorFactory implements EntityProcessorFactory {
|
|||||||
cp.appendProcessor(new ShellProcessor("postmap -d - /etc/postfix-mailin/virtual || true",
|
cp.appendProcessor(new ShellProcessor("postmap -d - /etc/postfix-mailin/virtual || true",
|
||||||
email.getFullDomain() + "\n" +
|
email.getFullDomain() + "\n" +
|
||||||
"." + email.getFullDomain() + "\n"));
|
"." + email.getFullDomain() + "\n"));
|
||||||
logger.log(Level.INFO, "Queue: virtual => remove domain record");
|
logger.log(Level.INFO, "Queue: virtual => remove domain record (" + email.getEMailAddress()+ ")");
|
||||||
}
|
}
|
||||||
cp.appendProcessor(new ShellProcessor("postmap -d - /etc/postfix-mailin/virtual || true",
|
cp.appendProcessor(new ShellProcessor("postmap -d - /etc/postfix-mailin/virtual || true",
|
||||||
email.getEMailAddress() + "\n"));
|
email.getEMailAddress() + "\n"));
|
||||||
logger.log(Level.INFO, "Queue: virtual => remove email address record");
|
logger.log(Level.INFO, "Queue: virtual => remove email address record (" + email.getEMailAddress()+ ")");
|
||||||
Config config = Config.getInstance();
|
Config config = Config.getInstance();
|
||||||
WaitingTasksProcessor waitingTasksProcessor = new WaitingTasksProcessor(cp);
|
WaitingTasksProcessor waitingTasksProcessor = new WaitingTasksProcessor(cp);
|
||||||
for (String queueName : config.getProperty("queues.mail").split(",")) {
|
for (String queueName : config.getProperty("queues.mail").split(",")) {
|
||||||
@ -70,7 +70,7 @@ public class EMailAddressProcessorFactory implements EntityProcessorFactory {
|
|||||||
new ShellProcessor("postmap -d - /etc/postfix-mailin/relayrecipients || true",
|
new ShellProcessor("postmap -d - /etc/postfix-mailin/relayrecipients || true",
|
||||||
email.getEMailAddress() + "\n"),
|
email.getEMailAddress() + "\n"),
|
||||||
"Remove from relayrecipients");
|
"Remove from relayrecipients");
|
||||||
logger.log(Level.INFO, "Queue: relayrecipients => remove email address record for " + queueName);
|
logger.log(Level.INFO, "Queue: relayrecipients => remove email address record for " + queueName + (" + email.getEMailAddress()+ "));
|
||||||
}
|
}
|
||||||
return waitingTasksProcessor;
|
return waitingTasksProcessor;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user