How to restrict outgoing mail from the server?

Because you can prescribe some settings in PHP to restrict sending emails from a server, passing only those letters in which the sender stated need me email ololo@moiserv.ru ?
June 10th 19 at 16:22
1 answer
June 10th 19 at 16:24
Hi,
PHP sends mail using SMTP server on your hosting. Therefore, to configure such restrictions should be there, not in PHP. But you need to know what you have SMTP on the server (databases, postfix, ...).
Where it is possible to know yourself without asking the hoster? - christina commented on June 10th 19 at 16:27
And this is from a hosting provider and don't need to ask. And look, who as you can...
Anyone in the web hosting control panel, who's in the logs who just looks in the console. Rather, who in the console server steers, he already knows what he is worth. - nicklaus.OKeefe commented on June 10th 19 at 16:30
from this log https://pastebin.com/v8akjXtC we can understand? this spam sent from the server. how to block it, if you can not find the vulnerability?
is it possible to allow sending only emails that have the sender info@aknapesu.ee ? - christina commented on June 10th 19 at 16:33
Completely impossible to understand. It is clear that trying to use the mail server capabilities aknapesu, maybe in the feedback form, may have poured your script. In order to understand that, as there is need to analyze on the server itself. - nicklaus.OKeefe commented on June 10th 19 at 16:36

Find more questions by tags Hosting