Logging.
This commit is contained in:
parent
0ac2abbcd0
commit
9e362b2f87
@ -30,7 +30,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.getEMailAddress() + " " + email.getTarget() + "\n"));
|
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);
|
WaitingTasksProcessor waitingTasksProcessor = new WaitingTasksProcessor(cp);
|
||||||
Config config = Config.getInstance();
|
Config config = Config.getInstance();
|
||||||
for (String queueName : config.getProperty("queues.mail").split(",")) {
|
for (String queueName : config.getProperty("queues.mail").split(",")) {
|
||||||
@ -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 + (" + email.getEMailAddress()+ "));
|
logger.log(Level.INFO, "Queue: relayrecipients => create email address record for " + queueName + "(" + email.getEMailAddress()+ ")");
|
||||||
}
|
}
|
||||||
return waitingTasksProcessor;
|
return waitingTasksProcessor;
|
||||||
}
|
}
|
||||||
@ -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 + (" + email.getEMailAddress()+ "));
|
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