3

我有一个使用 Postfix 和 MySQL 数据库来配置域、帐户和别名的设置。

我可以在使用邮件时设置一个包罗万象的地址@example.com并将其转发到account@example.com.

现在我想要一个更高级的包罗万象,比如user-%@example.comforward all toalice@example.comprod-%@example.comforward to bob@example.com%应该是任何字母数字组合,例如user-1@example.comor prod-asdf@example.com

这是可能的还是我需要更改我的设置?

4

1 回答 1

4

稍加努力似乎就足够可行;Postfix 通过recipient_delimiter配置指令支持随机用户创建的别名,因此您可以设置recipient_delimiter = -并创建user@example.com为 的别名alice@example.com,并user-%@example.com首先通过recipient_delimiterto解析user@example.com,然后通过别名映射从那里解析 to alice@example.com。(如果您的域中已有包含破折号的电子邮件地址,则需要选择不同的分隔符,否则这些地址将停止工作。)

于 2013-12-30T00:02:38.593 回答