Reputation: 141
I have installed FIWARE's IdM KeyRock in a Ubuntu 12.05 virtual machine. Horizon and Keystone are up, but when I try to sign up from localhost:8000, the confirmation email is not sent by KeyRock.
I have install Postfix and I'm using Gmail as SMTP server.
Using mail command, a test mail is sent by Ubuntu and it is delivered to Gmail. However, I'm not able to see if Keyrock is sending any email.
Configuration in Openstack (local_settings.py) is the following:
# Configure these for your outgoing email host
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_PORT = 587
EMAIL_HOST_USER = '[email protected]'
EMAIL_HOST_PASSWORD = 'mypassword'
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
Can anybody help me out on this?
Upvotes: 0
Views: 357
Reputation: 755
I have tried the following configuration in my local machine and successfully sent emails through my gmail.
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_PORT = 587
EMAIL_HOST_USER = '[email protected]'
EMAIL_HOST_PASSWORD = 'APP_PASSWORD!'
EMAIL_USE_TLS = True
DEFAULT_FROM_EMAIL = '[email protected]'
I think the reason you are not getting any email is because you seem to be using your account password. You should create a new app password in your Google Accounts page and use the one provided there.
More info on app passwords: https://support.google.com/accounts/answer/185833?hl=en
Upvotes: 1