Συντάκτης: 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:
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.