We are setting up an new server here. Upgraded OS to OSX 10.6.2 suspect new version of Postfix and sendmail on board:

My old cgi's that handle internal intranet "stuff" have this ancient call to sendmail that was working up until the upgrade:

on startup
       put "/usr/sbin/sendmail -t" into mprocess
        open process mprocess for write
        write "From:" && "[email protected]" & cr to process mprocess
        write "To:" &&   "[email protected]" &  cr to process mprocess
write "Subject:" && "Test sendmail" & cr & cr to process mprocess
       write    "This is a test" &  cr to process mprocess
       close process mprocess
       if the result is not empty then
       put the result into tResponse
       else
    Put "Email was sent successfully." into tResponse
put "Content-Type: text/html" & cr
put "Content-Length:" && the length of tResponse & cr & cr
  put tResponse
end if
end startup

If I ping this cgi in a browser, result is empty and we get "Email was sent successfully"

But not true: no email is sent and the mail.log shows:

Mar 26 16:19:07 hindu postfix/sendmail[68268]: fatal: _www(70): No recipient addresses found in message header.

Sendmail is working find verified if I log in as admin in terminal and run

% echo -e "This is a test" | sendmail -f [email protected] [email protected]

and it goes thru with no problems. Now.. I *could* change my cgi build a cmd line string, but I have some more complex scenarios in other cgis and I would rather stay with a more verbose revTalk version of talking to the process.

Any insights? Perhaps a simple tweak to PostFix config to accept "To: [email protected]" as valid input for "recipient" ??

TIA

Sivakatirswami




_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to