我需要捕获发送到“@example.com”的所有邮件并将它们重定向到单个邮件帐户。
因此,如果邮件发送到 test@example.com 或 testtest@example.com,则这两封邮件都应重定向到 allmails@example.com。
我还找不到解决这个问题的方法 - 无论如何,我是 postfix 的新手,不确定在文档的哪一部分中寻找这个问题。
最佳答案
放置
@example.com catchallaccount
进入/etc/postfix/virtual
并确保有一个
virtual_alias_maps = hash:/etc/postfix/virtual
在/etc/postfix/main.cf
关于linux - Postfix 将所有收到的邮件收集到一个帐户中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7123826/