[exim] mail between local linux machines

Top Page
Delete this message
Reply to this message
Author: FLORENT Philippe
Date:  
To: exim-users@exim.org
Subject: [exim] mail between local linux machines
Hello,

I have two local machines and I want to send a mail from one to the other (with same local user)

I tried with telnet it works fine (see below)

but with exim, I get "unroutable address" in the log

echo "body" | mail -s "subject" username@remote_host.localhost<mailto:username@remote_host.localhost>

2016-07-19 10:18:55 1bPQEx-0000lU-UT ** username@ remote_host.localhost: Unrouteable address

echo "body" | mail -s "subject" username@remote_host

2016-07-19 10:18:55 1bPQEx-0000lU-UT ** username@ remote_host: Unrouteable address


So I think exim does not check the /etc/hosts file cos all my hosts are defined there

How can I solve this ?



telnet remote_host 25
Trying ***.***.***.***...
Connected to remote_host.localhost.
Escape character is '^]'.
220 remote_host ESMTP Exim 4.84_2 Tue, 19 Jul 2016 10:16:51 +0200
helo username
250 remote_host Hello source_host [192.168.1.20]
MAIL FROM: username@ source_host
250 OK
RCPT TO: username @ remote_host
250 Accepted
DATA
354 Enter message, ending with "." on a line by itself
Subject: email test
email test body
.
250 OK id=1bPQDq-0003Li-26
quit
221 remote_host closing connection
Connection closed by foreign host.