[exim] Extrange behavior with smarthost and routers

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Jonathan GF
Datum:  
To: exim-users
Betreff: [exim] Extrange behavior with smarthost and routers
Hi group,

i recently migrated from a standard installation of exim (mail server only),
to a model with an upstream server or (exim) smarthost.

I'm using most of the configuration i used previoiusly when i hade exim in
server mode only for both the server and the smarthost (basically because i
haven't had time to refine both config files at 100%).

The mail server is doing plain smtp auth to the (exim) smarthost. This is
working pretty fine using the examples in the exim-doc.

Unless the architecture work i can see weird messages in the logs, something
i want to fix because they sound like a loop between the exim smarthost and
exim mail server.

An example snip is like this:

<SNIP SMARTHOST>
2008-02-04 01:05:10 1JLopf-0006vG-6I <= USER@??? H=
wx-out-0506.google.com [66.249.82.231] P=esmtp S=1926 id=
a50c1e90802031605p2bf68fd1l26e54a85b7216a0e@??? T="test"
2008-02-04 01:05:29 1JLopf-0006vG-6I => USER@??? R=send_to_mailserver
T=remote_smtp H=mail.surestorm.com [89.128.3.108] X=
TLS-1.0:RSA_AES_256_CBC_SHA1:32DN="C=ES,ST=Asturias,L=Gijon,O=XXXXXXX,OU=Security,CN=
mail.DOMAIN.com" C="250 OK id=1JLoq1-0003Qh-Et"
2008-02-04 01:05:29 1JLopf-0006vG-6I Completed
*2008-02-04 01:05:48 H=mail.DOMAIN.com [IP.IP.IP.IP] F=<> rejected RCPT <
USER@???>: Relay Not Permitted
2008-02-04 01:05:48 unexpected disconnection while reading SMTP command from
mail.DOMAIN.com [IP.IP.IP.IP]*
</SNIP SMARTHOST>


<SNIP SERVER>
2008-02-04 01:05:29 1JLoq1-0003Qh-Et <= USER@??? H=mailhost.DOMAIN.com[
64.79.209.162] P=esmtps X=TLS-1.0:RSA_AES_256_CBC_SHA1:32 S=2154 id=
a50c1e90802031605p2bf68fd1l26e54a85b7216a0e@??? T="test"
2008-02-04 01:05:30 1JLoq1-0003Qh-Et =>
/home/MAILSRV/DOMAIN.com/USER/Maildir/ <USER@???> R=virtual_user
T=address_directory
2008-02-04 01:05:30 1JLoq1-0003Qh-Et Completed
</SNIP SERVER>

As you can see in the bold lines, after a message is received by the
smarthost and sent to the server, the server looks like trying to send back
the message to the smarthost.

I'm not sure how to debug this or what could be the problem.

The basic router in the server is this:

send_to_smarthost:
driver = manualroute
route_list = !+local_domains mailhost.surestorm.com
transport = remote_smtp


The most important router in the smarthost is this other:

always_verify:

driver = manualroute
domains = ! +local_domains

verify_sender


verify_only

route_list = *

send_to_mailserver:
driver = manualroute
route_list = +local_domains mail.surestorm.com
transport = remote_smtp

I really appreciate any help you could give me.
Thanks advance.

Regards,

Jonathan GF