Postfix-Sendmail problem on new OSX Serve (10.6.2)

Sivakatirswami katir at hindu.org
Fri Mar 26 22:28:53 EDT 2010


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:" && "katir at hindu.org" & cr to process mprocess
         write "To:" &&   "katir at hindu.org" &  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 katir at hindu.org katir at hindu.org

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:  
someEmail at SomeDomain.com" as valid input for "recipient"  ??

TIA

Sivakatirswami







More information about the use-livecode mailing list