Direct To Script

JBolton

New member
Joined
Dec 27, 2006
Messages
2
Is it possible to setup an email account to call a script on the website when the account receives an email?

Basically I am trying to capture bounced emails and want to run a script from the website if the specific account receives notice that email bounced.

I have tried the following on the /etc/virtual/aliases file with no luck

bounced: "|/path/to/your/script.php"

If this is possible, does any know how I can implement it?
 
simple create a mail forwarder in DA,
with the email address to be forwarded and
"|/path/to/your/script.php"
for where it's going.

has never failed for me.

email address used here should be the
catch-all presumably.
 
Last edited:
I tried that and DA wouldn't allow me to. I received an error for an invalid email which is why I was entering it directly into the aliases file for the domain.

When I modify the aliases file do I need to include the quotes? Also do should I use the url or the directory path?
 
I had to use double quotes around the pipe for it to work..

For example...

"|/home/user/domains/domain.com/public_html/support/cli/index.php"

Your URL will vary =)
 
Back
Top