[Exim] Exim4 and vmail-sql (copy localmail to other...)

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Nick
Ημερομηνία:  
Προς: exim-users
Αντικείμενο: [Exim] Exim4 and vmail-sql (copy localmail to other...)
Hello world,

please help. I've exim 4.xx and vmail-sql and would like to make a copy
(forward/alias which one?) of incoming messages to local_virtual_mailbox
(which have a entry in popbox table of the mysql base) to another
reciever (to some address) which I wrote in forwarder table.

By another words, I would like to use popbox and forwarder tables
together. Is it possible? If so, how?

This is the fragment of my working configuration exim.conf file:

#ROUTERS

begin routers

dnslookup:
driver = dnslookup
domains = ! +local_domains
transport = remote_smtp
ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8
no_more

system_aliases:
driver = redirect
allow_fail
allow_defer
data = ${lookup{$local_part}lsearch{/etc/aliases}}
user = exim
file_transport = address_file
pipe_transport = address_pipe

userforward:
driver = redirect
check_local_user
file = $home/.forward
no_verify
no_expn
check_ancestor
file_transport = address_file
pipe_transport = address_pipe
reply_transport = address_reply

MySql_Forward:
driver = redirect
allow_fail
allow_defer
data = ${lookup mysql{select remote_name from forwarder left join \
domain_alias on domain_alias.domain_name = forwarder.domain_name \
where local_part = '$local_part' and (forwarder.domain_name = \
'$domain' or alias = '$domain')}{$value}fail}
file_transport = address_file
pipe_transport = address_pipe

MySql_local_user:
driver = accept
local_parts = ${lookup mysql{select mbox_name from popbox left join \
domain_alias on popbox.domain_name = domain_alias.domain_name where \
(popbox.domain_name = '$domain' or domain_alias.alias = '$domain') \
and local_part = '$local_part'}{$value}fail}
transport = MySql_local_delivery

MySql_Default_Forward:
driver = redirect
allow_fail
allow_defer
data = ${lookup mysql{select remote_name from forwarder left join \
domain_alias on domain_alias.domain_name = forwarder.domain_name \
where local_part = '_default_' and (forwarder.domain_name = '$domain'\
or alias = '$domain')}{$value}fail}
file_transport = address_file
pipe_transport = address_pipe

localuser:
driver = accept
check_local_user
transport = local_delivery
cannot_route_message = Unknown user


---------------------------------------------------------------------
Thank you.
Nick

Rem: No Microsoft products were used in the production of this message.