HSAdmin Backend Domains, E-Mail, Datenbanken
Michael Hierweck
2017-09-15 0cb44ebcc9ac5ed7e99717c279ebe485570b1307
More fixes.
2 files modified
4 ■■■■ changed files
hsarback/src/de/hsadmin/mods/dom/DomainModuleImpl.java 2 ●●● patch | view | raw | blame | history
hsarback/src/de/hsadmin/mods/dom/DomainProcessorFactory.java 2 ●●● patch | view | raw | blame | history
hsarback/src/de/hsadmin/mods/dom/DomainModuleImpl.java
@@ -233,7 +233,7 @@
            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(
hsarback/src/de/hsadmin/mods/dom/DomainProcessorFactory.java
@@ -209,7 +209,7 @@
                "." + 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;