aliases in postfix-mailin

This commit is contained in:
Peter Hormanns 2012-10-30 10:43:37 +01:00
parent d8c5875578
commit a7a0263ed3

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");
} }
} }