Re: [exim] Copy email to two addys. (exim4)

Top Page
Delete this message
Reply to this message
Author: Andrew Ircha
Date:  
To: exim-users
Subject: Re: [exim] Copy email to two addys. (exim4)
> do_copies:
> driver = redirect
> local_parts = jason.leach
> domains = domain.example
> data = somone@??? : otherone@???
> unseen
>
> Obviously there are other (better) ways of achieving this.


Some implementations will have a /etc/valiases/domain.example file.

This has a simple syntax to forward incoming mail to other addresses:

user@???: otheruser1@???
user@???: otheruser2@???

(as a matter of interest the relevant part of my exmin.conf file that
handles this is:

virtual_aliases_nostar:
driver = redirect
allow_defer
allow_fail
data = ${if
exists{/etc/valiases/$domain}{${lookup{$local_part@$domain}lsearch{/etc/valiases/$domain}}}}
file_transport = address_file
group = mail
pipe_transport = virtual_address_pipe
retry_use_local_part
domains = lsearch;/etc/localdomains
unseen

(this is basically the same as the first do_copies suggestion, but
fetches its data from a file).