Dear all,

I am trying to setup 1 redirect router to 3 different transports.
I have read the exim-4.63 documentation, spec.txt
However, I do not fully understand the redirect router's "data" option.

I can get the redirect router to use "remote_smtp" transport
But how do I use the redirect router's "data" for "db_aliases_user" and 
"db_aliases_user_mailbox" transport?


# Sample exim.conf file
#
# DB table: aliases
# +----------------------------+---------------------+
# | alias                      | deliver_to          |
# +----------------------------+---------------------+
# | [EMAIL PROTECTED]      | localuser           |
# | [EMAIL PROTECTED] | localuser/Sent      |
# | [EMAIL PROTECTED] | [EMAIL PROTECTED] |
# +----------------------------+---------------------+

DB_LOCAL_DOMAINS = SELECT SUBSTRING_INDEX(alias, '@', -1) AS domain FROM 
aliases WHERE alias LIKE '[EMAIL PROTECTED]:$domain}' LIMIT 1
DB_ALIASES = SELECT deliver_to FROM aliases WHERE alias='${quote_mysql:[EMAIL 
PROTECTED]:$domain}'

domainlist local_domains = ${lookup mysql{DB_LOCAL_DOMAINS}}

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

db_aliases_forward:
   driver = redirect
   data   = ${lookup mysql{DB_ALIASES}}


begin transports

# transport for "[EMAIL PROTECTED]"
remote_smtp:
   driver = smtp

# transport for "localuser"
db_aliases_user:
   driver = pipe
   command = /usr/local/sbin/dbmail-smtp -u localuser
   return_fail_output

# transport for "localuser/Sent"
db_aliases_user_mailbox:
   driver = pipe
   command = /usr/local/sbin/dbmail-smtp -u localuser -M Sent
   return_fail_output

-- 
Regards,
Wallace Tan

-- 
## List details at http://lists.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to