我的 centos 服务器运行着 Exim 4.87 和 Dovecot 2.2。
如何在收到特定电子邮件地址 myuser@mydomain.com 的新邮件时执行 PHP 脚本? 我在某处读到 Dovecot 的通知插件可以提供帮助,但没有关于如何使用它的文档。
最佳答案
以下是我如何设置一个脚本,以便在收到特定电子邮件地址的新邮件时执行:
MAIN CONFIGURATION SETTINGS 下的 exim.conf:
system_filter = /etc/exim/system_filter.conf
/etc/exim/system_filter.conf:
if $h_to: contains "myuser@myhost.com"
then
unseen pipe "/usr/local/bin/my_filter.php $message_size"
endif
关于linux - 如何对收到的邮件执行 PHP 脚本?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42072929/