Hello Viktor,
thank you for suggested solution. I am not advanced postfix admin so it is
not easy to understand all and setup it quickly by above links.
Do you know some other way how to restrict emails sent from PHP on localhost
?
For example can I force PHP to send email through SMTP instead of
Postfix log when email is sent from alpine:
Dec 16 08:56:47 debian1 postfix/smtpd[14483]: connect from
localhost[127.0.0.1]
Dec 16 08:56:47 debian1 postfix/smtpd[14483]: 6F82C9E492:
client=localhost[127.0.0.1]
Dec 16 08:56:47 debian1 postfix/smtpd[14483]: disconnect from
localhost[127.0.0.1] ehlo=
I want to restrict emails by recipient address with check_recipient_access.
In my case check_recipient_access is functional for sending from remote
e-mail clients but when I test it with Alpine on the e-mail server or from
PHP code on the same server then it is ignored.
I checked mail.log and see