On Tue, Jun 10, 2008 at 10:03:21AM +0400, vitas1@??? 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 $local_part@$domain=1
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 $local_part@$domain"
driver = redirect
data = :blackhole:
# extract actual destination address from that list
condition = \
${extract{$local_part@$domain}{$acl_m_blackhole}{$value}{0}}
Regards,
Kupson
--
Great software without the knowledge to run it is pretty useless.
(Linux Gazette #1)