你好,我想知道是否可以configuration一个邮件服务器来支持像%@ example.com或* @ example.com这样的通配符地址,并将这些不在邮箱中的邮件发送(因为它们是“虚拟的”电子邮件地址),但抓住他们在服务器脚本(运行SH或PHP)
谢谢
是的。 基本上,你需要编辑三个configuration文件:
/etc/postfix/main.cf中
virtual_alias_maps = hash:/etc/postfix/virtual
/等/后缀/虚拟
@example.com example
/ etc / aliases中
example: "|/path/to/the/script"
有关更多信息,请查看Postfix Virtual Domain Hosting Howto