我想将发送至 的电子邮件转发[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
。