Re: [Exim] Copy mail for to two emailadresses

Etusivu
Poista viesti
Vastaa
Lähettäjä: me
Päiväys:  
Vastaanottaja: Nico Erfurth
Kopio: Exim-users
Aihe: Re: [Exim] Copy mail for to two emailadresses
ok, you are right...
cc done,
email should be plain text

now back to my problem:

here is my directors configuration:

---snipp--

system_aliases:
  driver = redirect
  allow_defer
  allow_fail
  domains = LOCAL_DOMAINS
  file_transport = address_file
  pipe_transport = address_pipe
  retry_use_local_part
    data = #Exim filter\n\
             if $header_to: contains test.de\n\
             or \n\
             $header_from: contains test.de\n\
             then\n\
             save /tmp/file.txt\n\
             endif


userforward:
  driver = redirect
  check_ancestor
  check_local_user
  domains = LOCAL_DOMAINS
  no_expn
  file_transport = address_file
  pipe_transport = address_pipe
  reply_transport = address_reply
  no_verify
  data = #Exim filter\n\
             if $header_to: contains test.de\n\
             or \n\
             $header_from: contains test.de\n\
             then\n\
             save /tmp/file.txt\n\
             endif


localuser:
driver = accept
check_local_user
domains = LOCAL_DOMAINS
transport = local_delivery


virtual_local_user:
driver = accept
domains = ${lookup mysql {MYSQL_USER}{$value}}
retry_use_local_part
transport = virtual_delivery


virtual_aliases:
driver = redirect
allow_defer
allow_fail
data = ${lookup mysql {MYSQL_ALIAS}}
retry_use_local_part

virtual_all_alias:
driver = redirect
allow_defer
allow_fail
data = ${lookup mysql {MYSQL_ALL_ALIAS}}
retry_use_local_part

and for understanding the sql statements:

MYSQL_ALIAS = SELECT MYSQL_ALIASFIELD FROM MYSQL_AUTHTABLE WHERE
MYSQL_DOMAINFIELD LIKE '${quote_mysql:$domain}' AND MYSQL_USERNAMEFIELD
LIKE '${quote_mysql:$local_part}' AND MYSQL_ISALIASFIELD='yes'

MYSQL_ALL_ALIAS = SELECT MYSQL_ALIASFIELD FROM MYSQL_AUTHTABLE WHERE
MYSQL_DOMAINFIELD='${quote_mysql:$domain}' AND MYSQL_USERNAMEFIELD='@' AND
MYSQL_ISALIASFIELD='yes'
---snapp---

in systemaliases and userforward I tried to use data. but what can I use
in virtual_local_user?? I think there is only one data statement possible.

Any ideas???

Markus





Nico Erfurth <masta@???>
Sent by: exim-users-admin@???
05.02.2003 11:59

To
me@???, Exim-users <Exim-users@???>
cc

Subject
Re: [Exim] Copy mail for to two emailadresses






me@??? wrote:

1.) please always CC the list on replies
2.) please don't send me, nor the list HTML-mails.

> seems to work, but I have multiple domains on this mailserver.
> exim takes his mailaccounts from a mysql database.


<sarcasm>
Ok, so you want me to take my crystal orb and see how your configuration
look like?
</sarcasm>

Without a knowledge about your config and your database design, noone
here can help you.

Nico


--

## List details at http://www.exim.org/mailman/listinfo/exim-users Exim
details at http://www.exim.org/ ##