有没有语法元素或其他方式从通配符中排除在postfix的虚拟邮箱configuration中的一个或多个mailadresses?
我目前的工作configuration是/etc/postfix/virtual_mailbox :
[email protected] example.com/me/ @example.com example.com/me/ [email protected] example.com/foo/ [email protected] example.com/bar/
我添加了两个用户: foo & bar ,但由于通配符@example.com ,我仍然会收到他们的邮件。 是否有可能将[email protected]和[email protected]邮件从beeing传送到我的邮箱?
我想留在通配符。
根据后缀文档,catchalls按照定义recursion
VIRTUAL(5)VIRTUAL(5)名称virtual – Postfix虚拟别名表格式
内容概要postmap / etc / postfix / virtual
postmap -q“string”/ etc / postfix / virtual
postmap -q – / etc / postfix / virtual
说明可选的虚拟(5)别名表将重写所有本地,全部虚拟和所有远程邮件目标的收件人地址。 这不同于仅用于本地(8)传送的别名(5)表。 虚拟别名是recursion的
所以,解决scheme是为您的实际用户创build1对1的映射(以停止recursion)。 在你的虚拟用户文件中,你可以这样写:
[email protected] [email protected]
[email protected] [email protected]