> On 7 Jan 2025, at 13:38, Ziqin Wang <zi...@wangziqin.net> wrote: > >> On Jan 8, 2025, at 00:11, OlivaFN88 <felipe.n...@gmail.com> wrote: >> >> I dont know if it will to work for the same message. > > The man page said "filters in a filter chain are executed in order of > declaration for each phase that they are registered for". I am not sure > how actions for the same phase are performed, but in this example, you > can definitely reject by mail-from and rcpt-to in their own phases, > respectively. > > Note that these two filters are applied to the envelope, not the data, > which means it's still possible for you to receive such emails, provided > they are sent with a different envelope MAIL FROM / RCPT TO address. > > -- > Ziqin >
In your example, when envelope match with the first filter inside the chain, it will reject the message without pass for the second one. I need an “and” between the two conditions, not “or”. -- Felipe Oliva