More fixes.
This commit is contained in:
parent
ff4af07450
commit
0cb44ebcc9
@ -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(
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user