Re: Block specific outgoing email

2015-09-09 Thread Viktor Dukhovni
On Wed, Sep 09, 2015 at 02:13:03PM +0200, Antonio Alberola wrote: > > It is possible, but much less efficient, I thought you wanted to "block" > > delivery for some recipients. Easiest way to do that, is to "suppress" the > > recipients > > that the sender is not allowe to reach (when re-injectin

RE: Block specific outgoing email

2015-09-09 Thread Antonio Alberola
> It is possible, but much less efficient, I thought you wanted to "block" delivery for some recipients. Easiest way to do that, is to "suppress" the recipients > that the sender is not allowe to reach (when re-injecting the mail into the queue). That's correct. I want to block delivery for some

Re: Block specific outgoing email

2015-09-09 Thread Viktor Dukhovni
On Wed, Sep 09, 2015 at 01:22:54PM +0200, Antonio Alberola wrote: > Now, mail expands before it's sent to filter. But, even though the alias > expands, I only have one mail to pass the filter. At this time with some > recipients instead of only one, See the logs. Of course. Why is that a problem

RE: Block specific outgoing email

2015-09-09 Thread Antonio Alberola
Now, mail expands before it's sent to filter. But, even though the alias expands, I only have one mail to pass the filter. At this time with some recipients instead of only one, See the logs. Only one mail with ID 1EE52203E5 Sep 7 11:29:08 smail postfix/smtpd[11325]: connect from unknown[x.x.x.

Re: Block specific outgoing email

2015-09-03 Thread Viktor Dukhovni
On Thu, Sep 03, 2015 at 11:48:20AM +0200, Antonio Alberola wrote: > I need execute > the filter after Postfix expand the alias, and apply this filter to all > recipients separately. I explain me with an example. Mail sent to local aliases(5) is expanded in the local delivery agent, and by default

RE: Block specific outgoing email

2015-09-03 Thread Antonio Alberola
Hello, I made some tests with filters, simple content filter in particular. These tests were ok and my filters blocks these specific emails. But I have a new problem. When somebody send an email to an alias, my filter don’t work correctly. The content filter works before Postfix expand the reci

Re: Block specific outgoing email

2015-08-26 Thread nicolas
El 2015-08-26 11:41, Antonio Alberola escribió: Hello, I would like know if it's possible to block outgoing emails with a specific subject, but only if the email is sent to a specific recipient. Thanks, Antonio Alberola It is possible but you will need to build your own filter to do that (o