Web Hosting Talk







View Full Version : .forward again


mouzaia
06-18-2002, 11:37 AM
Hello, and sorry for that subject already talked about, but ... :smash:

So, I am trying to have an email starting a script, and it works, but the sender receive an error message from exim saying the email has not been send.

The first part was very easy:
in /etc/valiases/domain.com:
mail@domain.com: mailbox@domain.com, "|lynx -dump http://www.domain.dom/script.php"
and it works with no pb at all, it could be with /usr/bin/php /home/domain/.../script.php the same.
Script.php go and pick the mail in mailbox.com and do what it has to do.

Then, the sender receive that error message. My server provide me EXIM.
So I went on Exim, and on this forum, and I understood I have to create in my root a .forward file.
My root being "~" of /home/domain
In that .forward file, I love the private var, ignore_status but I dont understand what to do with it !

#Exim filter
ignore_status = true

does not change any thing, and anyway I dont think it is good to use that var for everymail. I dont understand how to build a filter !

But I am sure I am not very far from the result I want.

Does anyone may give me a good direction ?
Thanks.

The Prohacker
06-18-2002, 12:48 PM
Ok, first..

Make this your /etc/valiases/domain.com:

mail@domain.com: mailbox@domain.com

Then make a crontab to run how ever often you like and run this:
lynx -dump http://www.domain.dom/script.php



There is no reason to pipe the email to a script you are running to dump..... That I see atleast..

mouzaia
06-18-2002, 01:45 PM
Originally posted by The Prohacker
There is no reason to pipe the email to a script you are running to dump..... That I see atleast..

???
One good reason: this is what I want to do :D

The Prohacker
06-18-2002, 03:57 PM
Originally posted by mouzaia


???
One good reason: this is what I want to do :D


But your not sending that PHP script any information.. Your just calling it... Thats prolly why you are getting an error....

mouzaia
06-18-2002, 04:46 PM
You think this is the reason ? why not :)
So I should test it with a phpstdin and I dont know how to do it.
Back to your past offer, I know I can do it with a cron, but I want to do it on demand, to avoid a cron every minute or less ! And you are right, I did that complicate way of doing it, because I dont know how to handle the stream.
I'll will have a look. Thanks.

I also was interested in using that ignore_status, cause I think I understood this was a way to fake exim, non ? I understood exim was considering a non ok answer as a bad one and that is the reason why writing back that answer.