More fixes.

This commit is contained in:
Michael Hierweck 2017-09-15 19:49:04 +02:00
parent ff4af07450
commit 0cb44ebcc9
2 changed files with 2 additions and 2 deletions

View File

@ -233,7 +233,7 @@ public class DomainModuleImpl extends AbstractModuleImpl {
if ("backupmxforexternalmx".equals(opt.getName())) {
final Query query = em.createQuery(
"SELECT e FROM " + EMailAddress.class.getAnnotation(javax.persistence.Entity.class).name()
+ " e WHERE e.domain = :domname");
+ " e WHERE e.domain.name = :domname");
query.setParameter("domname", updatedDom.getName());
if (!query.getResultList().isEmpty()) {
throw new HSAdminException(

View File

@ -209,7 +209,7 @@ public class DomainProcessorFactory implements EntityProcessorFactory {
"." + dom.getName() + "\n"));
mailQueueProcessor.appendProcessor(new ShellProcessor("postmap -d - /etc/postfix-mailin/relayrecipients || true",
"@" + dom.getName() + "\n"));
mailQueueProcessor.appendProcessor(new ShellProcessor("postmap -d - /etc/postfix-mailin/transports || true",
mailQueueProcessor.appendProcessor(new ShellProcessor("postmap -d - /etc/postfix-mailin/transport || true",
dom.getName() + "\n" +
"." + dom.getName() + "\n"));
return mailQueueProcessor;