Postfix:通过“+”号无限制的每个用户地址

cwe*_*ske 12 email postfix

Gmail 用户可以通过使用(“加寻址”)获得几乎无限的电子邮件地址$name+$suffix@gmail.com

我想为我自己的邮件服务器使用它,它运行 Postfix。邮箱和别名数据存储在 MySQL 数据库中。

我怀疑需要修改别名配置,以便user+foo@example.org将其映射到user@example.org邮箱,但我不知道如何进行。

那么,有可能吗?如何?

cwe*_*ske 15

除了设置

recipient_delimiter = +
Run Code Online (Sandbox Code Playgroud)

我还必须修改master.cf,以便 maildrop 不仅让收件人通过,而且让真正的用户:

maildrop  unix  -       n       n       -       -       pipe
  flags=DRhu user=Debian-exim argv=/usr/bin/maildrop -d ${user}@${nexthop} ${extension} ${recipient} ${user} ${nexthop}
Run Code Online (Sandbox Code Playgroud)

博文:http : //cweiske.de/tagebuch/postfix-plus-addressing.htm