On Tue, Jun 10, 2008 at 10:03:21AM +0400, [EMAIL PROTECTED] wrote:
Hello,

> Suppose user1 sends e-mail to user2, user3, user4. I want the following
> conditions to be true:
> 
> 
> 1. SMTP session looks like completely successful for sender - no errors are
> generated.
 
> 2. user2 and user4 are *silently* dropped from recipients address list - as
> if there were no RCPT TO commands for them.

> So only user3 should actually receive this e-mail.
> 
> 3. All SMTP headers are kept intact.

Just an idea, untested:

1. Mark addresses to drop in RCPT TO: ACL:
warn
        ... <preconditions to "drop" this recipient> ...
        senders    = user1
        recipients = user2 : user4

        set acl_m_blackhole = $acl_m_blackhole [EMAIL PROTECTED]

Basically you create list of addresses to blackhole in acl variable.

2. Create redirect router (early in routers list) to do the dirty work:

blackholes:
        debug_print = "R: blackholes for [EMAIL PROTECTED]"
        driver = redirect
        data = :blackhole:
        # extract actual destination address from that list
        condition = \
                [EMAIL PROTECTED]

Regards,
Kupson
-- 
Great software without the knowledge to run it is pretty useless.
(Linux Gazette #1)

-- 
## List details at http://lists.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to