I am not sure that this was the right solution in the first place but I have Postfix up and running on my Ubuntu VPS with G-Suite using
relayhost = [smtp.gmail.com]:587
Mail is delivering fine, however, all mail is being delivered as 'me@me.com' I host about different 15 websites for people and would rather not have their contact forms, user signups, etc. Showing up as an email from 'me@me.com'.
For example;
<?php
define('admin_email','client@client.com');
define('website_name','client-business-name');
define('website_url', 'http://'.$_SERVER['HTTP_HOST']);
define('EMAIL_FROM', 'noreply@'.$_SERVER['HTTP_HOST']);
Submitting these forms still, results in emails showing as being sent from 'me@me.com'
I have also tried using this snippet in an individual VirtualHost file with no luck.
php_admin_value sendmail_path "/usr/sbin/sendmail -t -i -fclient@client.com"
I found that code from these questions: Configuring php mail() per domain, Apache, virtual hosts, and default sender for sendmail
Using 'sendmail' in the command line and changing the 'From:' address doesn't seem to work either.
All I want to do is be able to have the emails that I enter in From and Reply-To used, rather than 'me@me.com'. Any insight would be greatly appreciated.