Re: [Exim] Smart Virtual Aliases

Top Page
Delete this message
Reply to this message
Author: Philip Hazel
Date:  
To: Jerry Allen
CC: exim-users
Subject: Re: [Exim] Smart Virtual Aliases
On Tue, 20 Jun 2000, Jerry Allen wrote:

> Is there a way to configure virtual aliases to be smart?


Not directly.
> Example:
> user1@??? sends email to alias1@???,
> alias1: user1@???, user2@???
>
> Goal:
> user1@??? does not want the message back.


A related goal:
user1@??? never wants to receive *any* messages sent by herself

This one is quite easy:

discard_self:
driver = smartuser
domains = domain.com
local_parts = user1@???
condition = ${if eq{$sender_address}{$local_part@$domain}{yes}{no}}
new_address = :blackhole:

Generalizable with lookups if you have a file of such users. (Probably
easier to put everything into "condition".) It's harder if user1 only
doesn't want the message back when it was sent to alias1.


-- 
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.