Answer the question
In order to leave comments, you need to log in
Easy way to configure MTA to only send mail from PHP scripts
You need to configure the mailer on the server (FreeBSD) so that it only works for sending emails from PHP scripts. Maybe someone came across some note / article on this issue? It is desirable, for example, Postfix, it is easier to deal with it than with the same sendmail. Ssmtp in this case, unfortunately, is not suitable. Unfortunately, nothing like this could be found on the net.
I would be grateful for help.
Answer the question
In order to leave comments, you need to log in
For postfix
in master.cf, remove
smtp inet n - n - - smtpd
the main.cf line, you can leave the one that comes out of the box
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question