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?
> Sep 7 11:29:08 smail postfix/smtpd[11325]: 1EE52203E5:
> client=unknown[x.x.x.x]
> Sep 7 11:29:08 smail postfix/cleanup[11329]: 1EE52203E5:
> message-id=<00bc01d0e94f$a9757600$fc606200$@XXX>
> Sep 7 11:29:08 smail postfix/qmgr[11279]: 1EE52203E5:
> from=<sender1@mycompany>, size=8388, nrcpt=2 (queue active)
> Sep 7 11:29:08 smail postfix/pipe[11331]: 1EE52203E5:
> to=<user2@externalcompany>, orig_to=<group1@mycompany>, relay=filter,
> delay=0.13, delays=0.1/0.03/0/0, dsn=2.0.0, status=sent (delivered via
> filter service)
> Sep 7 11:29:08 smail postfix/pipe[11331]: 1EE52203E5: to=<user1@mycompany>,
> orig_to=<group1@mycompany>, relay=filter, delay=0.13, delays=0.1/0.03/0/0,
> dsn=2.0.0, status=sent (delivered via filter service)
> Sep 7 11:29:08 smail postfix/qmgr[11279]: 1EE52203E5: removed
> I need pass mail through the filter separately with all recipients. I don't
> know if it's possible, or I have to modify the filter to make it.
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).
--
Viktor.