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 'firstname.lastname@example.org' 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 'email@example.com'.
<?php define('admin_email','firstname.lastname@example.org'); 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 'email@example.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 -firstname.lastname@example.org"
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 'email@example.com'. Any insight would be greatly appreciated.