A
A
Alexander Krylov2012-07-30 17:20:51
Exim
Alexander Krylov, 2012-07-30 17:20:51

How to correct the config in Exim so that letters for certain recipients are sent to another server?

Good afternoon,

There is an inherited mailer based on Exim serving the domain.ru domain.
There is a task, to send mail of 5 users from this mail domain to other internal SMTP server with ip 192.168.1.2.

Below is the routers section of an existing Exim config:

begin routers

smarthost:
driver = manualroute
domains = [email protected]
transport = remote_smtp
route_list = * mail.westcall.net

system_aliases:
driver = redirect
allow_fail
allow_defer
data = ${lookup mysql{SELECT `goto` FROM `alias ` WHERE \
`address`='${quote_mysql:[email protected]$domain}' OR \
`address`='${quote_mysql:@$domain}'}}

userforward:
driver = redirect
allow_fail
allow_defer
unseen
data = ${lookup mysql{SELECT recipients FROM userforward \
WHERE local_part='${local_part}' AND domain='${domain}'}}

mysqluser:
driver = accept
condition = ${if eq{ }{${lookup mysql{SELECT `maildir` FROM `mailbox` \ WHERE `username`='${ quote_mysql
:[email protected]$domain}'}}}{no}{yes}}
transport = mysql_delivery

then with such a task? Thank you in advance.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ivan Komarov, 2012-07-30
@uzi_admin

it seems to me that you need to use manualroute
www.exim.org/exim-html-current/doc/html/spec_html/ch20.html
www.lissyara.su/doc/exim/4.62/the_manualroute_router/
So, unfortunately, I can't give you a better idea.

S
smartlight, 2012-07-30
@smartlight

so let the internal smtp pick up mail for them

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question