I'm on Ubuntu Server 12.04 and I managed to install & configure Exim4 following this guide.
I set my hostname to 'multiformeingegno.com' and my /etc/hosts looks like this:
127.0.0.1 localhost
127.0.1.1 multiformeingegno
IPv4 ADDRESS multiformeingegno.com multiformeingegno
IPv6 ADDRESS multiformeingegno.com multiformeingegno
I can send mails through PHP just fine. I have 2 questions.
I'm on a VPS and my host is like xxxxx.server.topcloud.it, I'd like to hide this address from my sent mails! I can view it from the tag: Received: from multiformeingegno.com (xxxxxx.server.topcloud.it. [IPv4 ADDRESS]) Is there a way to only display 'multiformeingegno.com' as "received from"?
On my VPS I host multiple sites. How can I change my hostname/fqdn (correct me if I'm using terms unproperly) according to the domain "in use"? For example I have a contact form in my website multiformeingegno.com and another contact form in the other website example.com. How can I have "Return-path", "Received from", etc changing according to the website that's actually sending mails? Is this possible?