First time here? Check out the FAQ!
1

How to set up outgoing email?

One more question, that I can't find answers to either in the documentation or elsewhere.

How to set up outgoing email? I don't know what I need to do besides editing settings.py:

SERVER_EMAIL = ''
DEFAULT_FROM_EMAIL = 'myname@mysite.org'
EMAIL_HOST_USER = ''
EMAIL_HOST_PASSWORD = ''
EMAIL_SUBJECT_PREFIX = '[AskBot] '
EMAIL_HOST='localhost'
EMAIL_PORT='25'
EMAIL_USE_TLS=False
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'

I am using exim4 as my MTA. With the settings above, I am getting no emails, but I don't know how to find out what's wrong. Is there something I have to do with exim4? Otherwise exim4 is working fine.

NoahY's avatar
303
NoahY
asked 2011-06-03 17:49:04 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

1

Are you sure your exim4 is listening on port 25 of localhost? Maybe the exim4 has some logging facility.

The easiest way to test emails is to send something through the feedback form.

Evgeny's avatar
13.2k
Evgeny
answered 2011-06-03 17:55:28 -0500
edit flag offensive 0 remove flag delete link

Comments

Feedback form... didn't even know I had one of those... where is the link to that? I found it at mysite/feedback, but I don't see a link anywhere. The feedback is getting to exim4, the exim log says "no IP address found for host" and afaics, the feedback doesn't get sent. Where is it being sent to, the address under ADMINS?
NoahY's avatar NoahY (2011-06-03 18:37:28 -0500) edit
I know it should work, because mailman is able to use my exim4 setup. And yes, it is listening on port 25.
NoahY's avatar NoahY (2011-06-03 18:38:22 -0500) edit
Okay, I figured it out... I had to add my IP address to the list of internal IPs after `INTERNAL_IPS = ('127.0.0.1',`
NoahY's avatar NoahY (2011-06-03 19:04:17 -0500) edit
add a comment see more comments