Defining a “messagle handler” in Postfix

后端 未结 3 862
终归单人心
终归单人心 2021-01-28 06:51

We are using Postfix for mail delivery and I am trying to make a shell script handle an email sent to foo-bar-baz-bat@example.org.

Is there a way to do this and how?

3条回答
  •  鱼传尺愫
    2021-01-28 07:42

    Postfix's Before-Queue Content Filter can help:

    http://www.postfix.org/SMTPD_PROXY_README.html

    I wrote a post about how you can use it but you can easily adapt it to your needs:

    http://returnbooleantrue.blogspot.com/2011/10/google-apps-split-delivery-for-email.html

提交回复
热议问题