aliases in postfix-mailin
This commit is contained in:
parent
d8c5875578
commit
a7a0263ed3
@ -20,7 +20,7 @@ public class EMailAliasProcessorFactory implements EntityProcessorFactory {
|
||||
public <T extends AbstractEntity> Processor createCreateProcessor(EntityManager em,
|
||||
T 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());
|
||||
}
|
||||
|
||||
@ -30,7 +30,7 @@ public class EMailAliasProcessorFactory implements EntityProcessorFactory {
|
||||
public <T extends AbstractEntity> Processor createUpdateProcessor(EntityManager em,
|
||||
T 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());
|
||||
}
|
||||
|
||||
@ -41,6 +41,6 @@ public class EMailAliasProcessorFactory implements EntityProcessorFactory {
|
||||
T entity) {
|
||||
EMailAlias alias = (EMailAlias) entity;
|
||||
return new ShellProcessor(
|
||||
"postalias -d '" + alias.getName() + "' /etc/postfix/aliases");
|
||||
"postalias -d '" + alias.getName() + "' /etc/postfix-mailin/aliases");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user