A
A
Artem2013-01-15 20:05:02
FreeBSD
Artem, 2013-01-15 20:05:02

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

2 answer(s)
A
Andrey Burov, 2013-01-16
@bartwell

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

S
script88, 2013-01-15
@script88

For example www.lissyara.su/articles/freebsd/mail/qmail/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question