by Ken Task.
The sendmail_from value is from the configuration of PHP (php.ini file). Not from Moodle config. What I was trying to point out ... the MTA on your system is sendmail. You don't want to set that in php.ini you want to setup the smtp settings in Moodle. Moodle will then override php settings.
'spirit of sharing', Ken