Where can I tell exim to run a shell/php command everytime a new mail has been delivered to a virtual mailbox. It does not matter to which user the mail is delivered?
|
feedback
|
|
You want to look at For local deliveries (only), if delivery succeeds and the Transport references another Transport in its You'd then have that second Transport be a Eg:
| |||
|
feedback
|
|
Given that you apparently have a real user to deliver to, you probably want to look into using a | |||||||
feedback
|
|
The easyes way I found was creating a new router afterwards delivering to the local users containing: runscript: driver = accept transport = run_script unseen no_expn no_verify so, the mail is still handeld the way it should be and my script is run, with the right transport f.e.: run_script: debug_print = "T: run_script for $local_part@$domain" driver = pipe path = "" command = "" | |||
|
feedback
|