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!