We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
Trigger and run PHP script when mail is received on Exim
-
- Posts: 2
- Joined: Wed Mar 21, 2018 7:42 am
- Os: CentOS 5x
- Web: apache + nginx
Trigger and run PHP script when mail is received on Exim
Hi,
I want to trigger my below PHP script - whenever "Server" receives mail in its mail server (Exim).
PHP script:
Is it possible to create "Exim" trigger which runs PHP script as soon as the mail is received?
Thanks
I want to trigger my below PHP script - whenever "Server" receives mail in its mail server (Exim).
PHP script:
Code: Select all
<?php
echo "Mail received ";
file_put_contents("/tmp/mailReceivedLog", "Last Mail Receved at".gmdate("d-m-y"));
?>
Thanks
Re: Trigger and run PHP script when mail is received on Exim
Use exim's pipe transport?
https://www.exim.org/exim-html-current/ ... sport.html
Or if the mail is going to a single email address you could just monitor the directory /home/user/mail/domain.com/mailuser/
https://www.tecmint.com/watchman-monito ... -in-linux/
https://www.exim.org/exim-html-current/ ... sport.html
Or if the mail is going to a single email address you could just monitor the directory /home/user/mail/domain.com/mailuser/
https://www.tecmint.com/watchman-monito ... -in-linux/