Hi.

As i mentioned a few hours ago, im planning on writing a php script to handle 
auto-responders.

I plan on doing this by using the aliases table to pipe to a php script, which 
will in turn query a database and check how many times an autoresponse has been 
sent to a given email address and determine whether or not it should send 
anything.. (to avoid mail looping problems.)

anyway... I guess the problem im having is getting the data to pipe out. 

Just for testing, i should be able to pipe the data to a file shouldnt i?

for example:
in the aliases table, i have an entry.. 
alias:[EMAIL PROTECTED]
deliver_to: |/test.txt

>From what i understand this should pipe the data to /test.txt shouldnt Status: 
>O

it?
(yes i have set chmod 777 /test.txt for testing purposes.)
but nothing appears in the file..

Do i have this all wrong?

this is a snippet from the maillog..



-------------------------------------------
Oct 23 21:22:37 web2 dbmail/smtp[24981]: GetConfigValue(): found value 
[/usr/sbin/sendmail]
Oct 23 21:22:37 web2 dbmail/smtp[24981]: pipe_forward(): delivering to 1 
external addresses
Oct 23 21:22:37 web2 dbmail/smtp[24981]: pipe_forward(): opening pipe to 
command /test.txt
Oct 23 21:22:37 web2 dbmail/smtp[24981]: pipe_forward(): call to popen() 
successfull opened descriptor 6
Oct 23 21:22:37 web2 dbmail/smtp[24981]: pipe_forward(): writing to pipe using 
dbmessage 6817
Oct 23 21:22:37 web2 dbmail/smtp[24981]: pipe_forward(): ferror reports 0, feof 
reports 0 on descriptor 6
Oct 23 21:22:37 web2 dbmail/smtp[24981]: db_send_message_lines(): request for 
[-2] lines
Oct 23 21:22:37 web2 dbmail/smtp[24981]: db_send_message_lines(): Using 2048 
size buffer
------------------------------------------


Any ideas or opinions at all would be appreciated..

Thank you.
Dan.

Reply via email to