Processing mails by a script

Webcart

Verified User
Joined
Jan 14, 2004
Messages
367
Hello,

I am trying to process e-mails sent to specific address with PHP script. I've set up a forwarder via DA control panel as follows:
"|/home/username/bin/catch.php"
but logging inside catch.php suggests this script is executed twice. I wonder whether it is DA misconfiguration and if it's not, what would be a proper syntax to process mails via scripts.

Thank you.
 
Thank you for your reply.

I modified /etc/exim.conf file as advised in that thread, i.e.,
In the "virtual_aliases:" director, try setting the data line as follows:
Code:
data = ${if exists{/etc/virtual/$domain/aliases}{${lookup{*}lsearch{/etc/virtual/$domain/aliases}}}}
The change basically looks for only the * vs the previous "lookup with * as the fail".
The mail is now processed only once, but I get a bounce mail (Mail delivery failed: returning message to sender).
 
Back
Top