EMAIL_HOST = 'smtp.gmail.com'
EMAIL_PORT = 587
EMAIL_HOST_USER = 'your...@yourdomain.com' # or your...@gmail.com
EMAIL_HOST_PASSWORD = 'YourPassword'
EMAIL_USE_TLS = True
DEFAULT_FROM_EMAIL = 'y...@yourdomain.com'
EDXAPP_EMAIL_HOST = 'email-smtp.eu-west-1.amazonaws.com'
EDXAPP_EMAIL_PORT = 25
EDXAPP_EMAIL_HOST_USER = '[amazon smtp username]'
EDXAPP_EMAIL_HOST_PASSWORD = '[amazon smtp password]'
ERROR: Syntax Error while loading YAML script, /edx/app/edx_ansible/server-vars.yml
Note: The error may actually appear before this position: line 7, column 1
EDXAPP_EMAIL_HOST = 'email-smtp.eu-west-1.amazonaws.com'
EDXAPP_EMAIL_PORT = 25
EDXAPP_EMAIL_BACKEND: 'django.core.mail.backends.smtp.EmailBackend' "DEFAULT_FROM_EMAIL": "no-r...@domain.com",
"EMAIL_BACKEND": "django.core.mail.backends.smtp.EmailBackend",
"EMAIL_HOST": "localhost",
"EMAIL_PORT": 25,
"EMAIL_USE_TLS": true,
Check the vpc security group for your edxapp server and the network acl for the related subnet.
Ed
--
You received this message because you are subscribed to a topic in the Google Groups "Open edX operations" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/openedx-ops/PFnkgu1dHGE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to openedx-ops...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openedx-ops/a86232e3-008d-4a31-b3af-af56a2ab255f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Thanks Ed. I made sure port 587 outbound is open for edxapp-sg and the NAT-SG. I see this log. Does this mean I need to open port 12447 ?
May 11 21:47:16 ip-10-0-10-134 [service_variant=lms][edx.student][env:sandbox] ERROR [ip-10-0-10-134 12447] [views.py:2012] - Unable to send reactivation email from "te...@domain.com"
Traceback (most recent call last):
File "/edx/app/edxapp/edx-platform/common/djangoapps/student/views.py", line 2010, in reactivation_email_for_user
user.email_user(subject, message, settings.DEFAULT_FROM_EMAIL)
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/contrib/auth/models.py", line 374, in email_user
send_mail(subject, message, from_email, [self.email])
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/newrelic-2.18.1.15/newrelic/api/function_trace.py", line 100, in literal_wrapper
return wrapped(*args, **kwargs)
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/mail/__init__.py", line 61, in send_mail
connection=connection).send()
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/newrelic-2.18.1.15/newrelic/api/function_trace.py", line 100, in literal_wrapper
return wrapped(*args, **kwargs)
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/mail/message.py", line 248, in send
return self.get_connection(fail_silently).send_messages([self])
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/mail/backends/smtp.py", line 85, in send_messages
new_conn_created = self.open()
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/mail/backends/smtp.py", line 48, in open
local_hostname=DNS_NAME.get_fqdn())
File "/usr/lib/python2.7/smtplib.py", line 249, in __init__
(code, msg) = self.connect(host, port)
File "/usr/lib/python2.7/smtplib.py", line 309, in connect
self.sock = self._get_socket(host, port, self.timeout)
File "/usr/lib/python2.7/smtplib.py", line 284, in _get_socket
return socket.create_connection((port, host), timeout)
File "/usr/lib/python2.7/socket.py", line 571, in create_connection
raise err
error: [Errno 110] Connection timed out