Ask Your Question
1

How to set up outgoing email?

asked 2011-06-03 17:49:04 -0500

NoahY gravatar image

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.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2011-06-03 17:55:28 -0500

Evgeny gravatar image

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.

edit flag offensive delete link more

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 gravatar imageNoahY ( 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 gravatar imageNoahY ( 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 gravatar imageNoahY ( 2011-06-03 19:04:17 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2011-06-03 17:49:04 -0500

Seen: 887 times

Last updated: Jun 03 '11