1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Email setup on server hosting multiple domains

Discussion in 'Apache' started by GameGuru, Jul 28, 2016.

  1. #1
    I have been running a server with a website, say mydomain1.com, for a while now and had no issues sending or receiving email via the default email client in WHM.

    I just added another domain to my server, mydomain2.com, and I need to send out registration emails from (subdomains of) this website via php. The email sends fine, but looking through the headers of the email I see the following:

    Received: from 127.0.0.1 (EHLO server.mydomain1.com) (xxx.xxx.xxx.xxx)
    Message-Id: <1.com>

    What I would like is for the mydomain1.com in the above to be replaced with mydomain2.com. So I don't know if this is a DNS setup thing or what, I'm not really an expert and haven't run a server with multiple domains before. As the two companies, mydomain1 and mydomain2 are not related, I can't have mydomain1 stuff appearing in emails from mydomain2.

    Any help would be appreciated, thanks.
     
    GameGuru, Jul 28, 2016 IP