Tuesday, July 1, 2014

Emails Displaying as www-data for Google Apps for Education

Recently I was working with Google Apps for Education and was transitioning an old PHP web application to deliver email using Google's servers. When the mail was being delivered, the name displayed was www-data. In order to change this I had to edit my sendmail_path in the php.ini file which was located at /etc/php5/apache2/php.ini
sendmail_path = '/usr/sbin/sendmail -t -i -fnoreply@joshwesley.com -Fnoreply'
Once the sendmail path was modified a quick reboot of apache was done and emails delivered with the proper name, not www-data, in the Google Apps for Education environment.