Re: PATCH: RES_DEFNAMES and RES_DNSRCH not working with smtp_host_lookup=dns

2019-12-15 Thread Jaroslav Skarvada
- Original Message - > Jaroslav Skarvada: > > Hi Wietse, > > > > thanks for info. Are you going to introduce this patch upstream? > > The process is as follows: > > 1) I sadistically keep the fix for myself and let everyone else suffer. > > Oh, that is not what I do. > > The

Re: PATCH: RES_DEFNAMES and RES_DNSRCH not working with smtp_host_lookup=dns

2019-12-15 Thread Wietse Venema
Jaroslav Skarvada: > Hi Wietse, > > thanks for info. Are you going to introduce this patch upstream? The process is as follows: 1) I sadistically keep the fix for myself and let everyone else suffer. Oh, that is not what I do. The process, by now 20 years old, is as follows. 1) The fix runs

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

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

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

Re: PATCH: RES_DEFNAMES and RES_DNSRCH not working with smtp_host_lookup=dns

2019-12-15 Thread Jaroslav Skarvada
- Original Message - > Jaroslav Skarvada: > > Hi, > > > > it seems the resolver was rewritten (probably in postfix 3.1.x), but > > it seems it now uses res_query instead of the res_search which results > > in RES_DEFNAMES and RES_DNSRCH not supported with smtp_host_lookup=dns, > >