Defining a “messagle handler” in Postfix

时光总嘲笑我的痴心妄想 提交于 2019-12-02 08:33:15

in /etc/aliases

you should be able to alias to a script like so

foo-bar-baz-bat@example.org: |"/path/to/ScriptOrExecutableHere"

I did this with my Trac installation and it worked like a charm...

EDIT: Oh...i didn't realize you were going to be aliasing dynamic addresses...I think you'd need a script to alias the e-mail addresses as forum threads are created...

EDIT2: Actually you might be able to use the catchall for something like this...

I haven't done it but you would alias "@example.org" to the command. See here for more

If the example.org email is only used for discussions you could forward whole @example.org to your script. Or you could use @discussions.example.org.

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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!