Ask Your Question
1

How to set up outgoing email?

asked Jun 03 '11

NoahY gravatar image NoahY
313 1 13
https://github.com/NoahY/...

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.

1 Answer

Sort by ยป oldest newest most voted
1
NoahY has selected this answer as correct

answered Jun 03 '11

Evgeny gravatar image Evgeny flag of Chile
6665 31 49 95
http://askbot.org/

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.

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 (Jun 03 '11)
I know it should work, because mailman is able to use my exim4 setup. And yes, it is listening on port 25. NoahY (Jun 03 '11)
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 (Jun 03 '11)

Your answer

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!
[hide preview]

Question tools

Follow

subscribe to rss feed

Stats

Asked: Jun 03 '11

Seen: 77 times

Last updated: Jun 03 '11