I need some help here. I've set up postfix as a null client, and searched whole email/smtp forum, but couldn't find any solution.
Code:
$ posconf -n
says:
Code:
inet_interfaces = loopback-only
mydestination = localhost.mydomainhere.com, localhost
mydomain = mydomainhere.com
myhostname = hostname.mydomainhere.com
mynetworks_style = host
myorigin = $mydomain
I have also set up apache & php, and I have name based virtual hosts (few sites). All domains have Google Apps on & MX's set up. Problem is that all mail that I send, no matter the domain, has
Code:
From: http@mydomainhere.com
I would like to set up postfix / php / apache to send mail with From: that states host from which it's sent.
So, if mail is sent from some php script on domain1.com i'd like it to show http@
domain1.com, not http@
mydomainhere.com.
Setting sendmail_from didn't help (via ini_set, or via .htaccess php_value). What am I missing in my configuration?