Re: [exim] Incoming Mails Issue..

Etusivu
Poista viesti
Vastaa
Lähettäjä: Magnus Holmgren
Päiväys:  
Vastaanottaja: exim-users
Kopio: priyanka shastri
Aihe: Re: [exim] Incoming Mails Issue..
priyanka shastri wrote:
> i have someusers like abc, def & ghi
>
> i want that all the incoming mails of def & ghi will also be copied to abc
> they all are from same domain mydom.com
>
> the users should not be aware of this forwarding
>
> i have an idea that it should be done by making entried in /etc/aliases
>
> even i do so..
>
> def: abc,def
> ghi: abc,ghi
>
> but its not working??


Is the last one of the following options set to mydom.com?:
primary_hostname, qualify_domain and qualify_recipient in the main
configuration; qualify_domain of the system_aliases router.
Alternatively, is qualify_preserve_domain set on the router? If so,
please provide us with more information (*how* is it not working?), such
as error messages, excerpts from the mainlog file, and output from "exim
(or exim4) -bt <address>". If not, try changing one of those options in
an appropriate manner first.

An alternative solution could be to add another redirect router like this:

sneaky_peek_router:
  driver = redirect
  unseen
  local_parts = def : ghi
    (or
  local_parts = /etc/spy_on_these  # list one local part per line)
  data = abc
  retry_use_local_part


or if there could be several different mailboxes to copy to (not just abc):

sneaky_peek_router:
driver = redirect
unseen
data = ${lookup{$local_part}lsearch{/etc/mail.supervisors}}
retry_use_local_part

--
Magnus Holmgren