Postfix aliases database moved to /etc/postfix-mailin/aliases.

This commit is contained in:
Michael Hierweck 2012-10-23 21:44:36 +02:00
parent 4e0098e2c2
commit 95b5fbd56f

View File

@ -20,7 +20,7 @@ public class EMailAliasProcessorFactory implements EntityProcessorFactory {
public <T extends AbstractEntity> Processor createCreateProcessor(EntityManager em, public <T extends AbstractEntity> Processor createCreateProcessor(EntityManager em,
T entity) { T entity) {
EMailAlias alias = (EMailAlias) entity; EMailAlias alias = (EMailAlias) entity;
return new ShellProcessor("postalias -r -i /etc/postfix/aliases", return new ShellProcessor("postalias -r -i /etc/postfix-mailin/aliases",
alias.getName() + ": " + alias.getTarget()); alias.getName() + ": " + alias.getTarget());
} }
@ -30,7 +30,7 @@ public class EMailAliasProcessorFactory implements EntityProcessorFactory {
public <T extends AbstractEntity> Processor createUpdateProcessor(EntityManager em, public <T extends AbstractEntity> Processor createUpdateProcessor(EntityManager em,
T entity) { T entity) {
EMailAlias alias = (EMailAlias) entity; EMailAlias alias = (EMailAlias) entity;
return new ShellProcessor("postalias -r -i /etc/postfix/aliases", return new ShellProcessor("postalias -r -i /etc/postfix-mailin/aliases",
alias.getName() + ": " + alias.getTarget()); alias.getName() + ": " + alias.getTarget());
} }
@ -41,6 +41,6 @@ public class EMailAliasProcessorFactory implements EntityProcessorFactory {
T entity) { T entity) {
EMailAlias alias = (EMailAlias) entity; EMailAlias alias = (EMailAlias) entity;
return new ShellProcessor( return new ShellProcessor(
"postalias -d '" + alias.getName() + "' /etc/postfix/aliases"); "postalias -d '" + alias.getName() + "' /etc/postfix-mailin/aliases");
} }
} }