Postfix 别名警告

Postfix 别名警告

我想将发送至 的电子邮件转发[email protected][email protected][email protected]。为此,我必须配置/etc/aliases文件,其中包含:

# See man 5 aliases for format
postmaster:    root
user: john, bob

但是,当我运行时postmap /etc/aliases,收到此警告:

postmap: warning: /etc/aliases, line 2: record is in "key: value" format; is this an alias file?
postmap: warning: /etc/aliases, line 3: record is in "key: value" format; is this an alias file?

我该如何解决?我做错了什么吗?

的输出cat /etc/postfix/main.cf | grep alias

alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases

答案1

您应该运行newaliases来更新别名数据库,而不是postmap

相关内容