There is a server (win server 2008 r2), with php 5.5.x, apache 2.4, mysql, nodeJS ...
There are four domains associated with the server ip (respectively, letters will be sent from at least 4 different mailboxes).

It is necessary to raise the mail server, which can send letters from the php script using the mail() function. We need detailed instructions on how to do this (sendmail, phpMailer, etc.) are not processed here, because there are several domains and mailboxes, and you may have to send 10k messages per day, every Yandex mail for a domain and Google will not like it if you do the mailing through their services ... Letters like "registration notices" and others will be sent, that is, not advertising mailing).

In general, what should I do and what should I do?
Grateful for your attention!

    1 answer 1

    1. We are raising the mail server (I don’t know what it is under Windows, it didn’t work) and set it up.
    2. In most cases, nothing more is needed for the mail () function if the mail server is on the same server, otherwise you need to configure php.ini .
    3. Setup of DNS records, in the same place the DKIM and SPF setup.
    4. Profit

    Update

    You can check now whether mail () is sending a letter. Only have to look for it in 99% in the SPAM folder.

    Under paragraph three, I throw up the links, for I am very lazy to write myself, and the topic is hack:

    And in the load https://support.google.com/a/answer/2466580