Re: Postfix does not evaluate smtpd_recipient_restrictions when email is sent from localhost

2019-12-19 Thread Viktor Dukhovni
On Thu, Dec 19, 2019 at 04:31:20AM -0700, postpeter wrote: > 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. I posted a solution on the Postfix side, that works regardless of the local su

Re: Postfix does not evaluate smtpd_recipient_restrictions when email is sent from localhost

2019-12-19 Thread Wietse Venema
postpeter: > 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 emai

Re: Postfix does not evaluate smtpd_recipient_restrictions when email is sent from localhost

2019-12-19 Thread postpeter
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

Re: Postfix does not evaluate smtpd_recipient_restrictions when email is sent from localhost

2019-12-16 Thread Wietse Venema
postpeter: > 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 >

Re: Postfix does not evaluate smtpd_recipient_restrictions when email is sent from localhost

2019-12-16 Thread postpeter
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=

Re: Postfix does not evaluate smtpd_recipient_restrictions when email is sent from localhost

2019-12-15 Thread Viktor Dukhovni
On Sun, Dec 15, 2019 at 12:38:51PM -0700, postpeter wrote: > 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. Presumably, both Alpine and PHP perfo

Re: Postfix does not evaluate smtpd_recipient_restrictions when email is sent from localhost

2019-12-15 Thread Wietse Venema
postpeter: > 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. You f

Postfix does not evaluate smtpd_recipient_restrictions when email is sent from localhost

2019-12-15 Thread postpeter
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