By default, exim4 is set to listen/send local mails only. Try this

# mail -s "foo" foo@bar.com < body.txt
# mail
& 1
...
& quit

And see that it's not getting delivered. In order to fix that, reconfigure exim4, allowing internet site, delivery non-local.

# dpkg-reconfigure exim4-config

%d bloggers like this: