From 0cb44ebcc9ac5ed7e99717c279ebe485570b1307 Mon Sep 17 00:00:00 2001 From: Michael Hierweck Date: Fri, 15 Sep 2017 19:49:04 +0200 Subject: [PATCH] More fixes. --- hsarback/src/de/hsadmin/mods/dom/DomainModuleImpl.java | 2 +- hsarback/src/de/hsadmin/mods/dom/DomainProcessorFactory.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hsarback/src/de/hsadmin/mods/dom/DomainModuleImpl.java b/hsarback/src/de/hsadmin/mods/dom/DomainModuleImpl.java index af97ce3..e0acc2d 100644 --- a/hsarback/src/de/hsadmin/mods/dom/DomainModuleImpl.java +++ b/hsarback/src/de/hsadmin/mods/dom/DomainModuleImpl.java @@ -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( diff --git a/hsarback/src/de/hsadmin/mods/dom/DomainProcessorFactory.java b/hsarback/src/de/hsadmin/mods/dom/DomainProcessorFactory.java index 2a13752..f97b689 100644 --- a/hsarback/src/de/hsadmin/mods/dom/DomainProcessorFactory.java +++ b/hsarback/src/de/hsadmin/mods/dom/DomainProcessorFactory.java @@ -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;