I have installed (clean) Debian 6 on VPS, and I am running a Django-powered application on it. Everything works fine, except that I need to set up SMTP to enable my application (meaning sender is local) to send out emails to its users (so, the recipients are elsewhere on Internet).
What would be the eaisest way to do that? Debian usually comes with exim4
, but I have problems setting it up to perform this basic task. Is there any kind of tutorial, or a set of basic steps I need to check?
I don't need any local email delivery right now.
When I try to send email using the default config, here's what I get in /var/log/exim/mainlog
(replaced the two domains with foo.com and bar.com):
2011-08-27 18:05:27 1QxLNv-0008EL-60 <= jablan@foo.com H=localhost (foo.com) [127.0.0.1] P=esmtp S=2438
2011-08-27 18:05:27 1QxLNv-0008EL-60 remote host address is the local host: bar.com
2011-08-27 18:05:27 1QxLNv-0008EL-60 == jablan@bar.com R=smarthost defer (-1): remote host address is the local host
2011-08-27 18:05:27 1QxLNv-0008EN-7y <= <> R=1QxLNv-0008EL-60 U=Debian-exim P=local S=567
2011-08-27 18:05:27 1QxLNv-0008EL-60 Frozen
2011-08-27 18:05:27 1QxLNv-0008EN-7y remote host address is the local host: foo.com
2011-08-27 18:05:27 1QxLNv-0008EN-7y == jablan@foo.com <postmaster@foo.com> R=hub_user_smarthost defer (-1): remote host address is the local host
2011-08-27 18:05:27 1QxLNv-0008EN-7y Frozen