[exim] How to send one copy to another user, using from or a…

Top Pagina
Delete this message
Reply to this message
Auteur: Eduardo Diaz - Gmail
Datum:  
Aan: exim-users
Onderwerp: [exim] How to send one copy to another user, using from or another header form one mail
Ok, go.

using exim4

We create another router called for example 850_exim4-config_copy_other_user
with this
local_usercopy:
      debug_print = "R: copy local_user for $local_part@$domain"
      driver = redirect
      file = /etc/exim4/filtro_copia
      allow_filter
      check_local_user
      check_owner = false
      check_ancestor
      no_verify
      unseen



Ok, now we need to create the filter

/etc/exim4/conf.d/router# cat /etc/exim4/filtro_copia
# Exim filter
if $header_From: contains "user@???"
then
deliver <otheruser@???>
endif


Ok, this send one copy of all e-mail that has in From: user@??? and
with the use of unseen the exim continue processing the mail normally .

Check
no_verify to put other permissions to filtro_copia

check_ancestor: The setting of check_ancestor prevents the router from
generating a new address that is the same as any previous address that was
redirected. (This works round a problem concerning a bad interaction between
aliasing and forwarding – see section
22.5<http://www.exim.org/exim-html-4.50/doc/html/spec_22.html#SECT22.5>
).


I don't know if the best options, but runs well,

regards and sorry for my English is very bad.