SMTP Authentication Error

620 views
Skip to first unread message

Juan Pa Ortiz

unread,
May 3, 2016, 1:06:10 PM5/3/16
to taigaio
Hi friends, I've got this error in my stderr.log:

smtplib.SMTPAuthenticationError: (535, b'5.7.8 Error: authentication failed: authentication failure')
ERROR:2016-05-03 16:57:25,164: Internal Server Error: /api/v1/tasks/186
Traceback (most recent call last):
  File "/home/taiga/.virtualenvs/taiga/lib/python3.4/site-packages/django/core/handlers/base.py", line 132, in get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/home/taiga/taiga-back/taiga/base/api/viewsets.py", line 105, in view
    return self.dispatch(request, *args, **kwargs)
  File "/home/taiga/.virtualenvs/taiga/lib/python3.4/site-packages/django/views/decorators/csrf.py", line 58, in wrapped_view
    return view_func(*args, **kwargs)
  File "/home/taiga/taiga-back/taiga/base/api/views.py", line 444, in dispatch
    response = self.handle_exception(exc)
  File "/home/taiga/taiga-back/taiga/base/api/views.py", line 441, in dispatch
    response = handler(request, *args, **kwargs)
  File "/home/taiga/taiga-back/taiga/base/api/mixins.py", line 199, in partial_update
    return self.update(request, *args, **kwargs)
  File "/home/taiga/taiga-back/taiga/projects/tasks/api.py", line 87, in update
    return super().update(request, *args, **kwargs)
  File "/usr/lib/python3.4/contextlib.py", line 30, in inner
    return func(*args, **kwds)
  File "/home/taiga/taiga-back/taiga/base/decorators.py", line 60, in decorator
    return func(self, *args, **kwargs)
  File "/home/taiga/taiga-back/taiga/base/api/mixins.py", line 194, in update
    self.post_save(self.object, created=False)
  File "/home/taiga/taiga-back/taiga/projects/occ/mixins.py", line 84, in post_save
    super().post_save(obj, created)
  File "/home/taiga/taiga-back/taiga/projects/history/mixins.py", line 74, in post_save
    super().post_save(obj, created=created)
  File "/home/taiga/taiga-back/taiga/projects/notifications/mixins.py", line 106, in post_save
    self.send_notifications(obj)
  File "/home/taiga/taiga-back/taiga/projects/notifications/mixins.py", line 103, in send_notifications
    services.send_notifications(obj, history=history)
  File "/usr/lib/python3.4/contextlib.py", line 30, in inner
    return func(*args, **kwds)
  File "/home/taiga/taiga-back/taiga/projects/notifications/services.py", line 236, in send_notifications
    send_sync_notifications(notification.id)
  File "/usr/lib/python3.4/contextlib.py", line 30, in inner
    return func(*args, **kwds)
  File "/home/taiga/taiga-back/taiga/projects/notifications/services.py", line 293, in send_sync_notifications
    email.send(user.email, context, headers=headers)
  File "/home/taiga/.virtualenvs/taiga/lib/python3.4/site-packages/djmail/template_mail.py", line 125, in send
    return email.send()
  File "/home/taiga/.virtualenvs/taiga/lib/python3.4/site-packages/django/core/mail/message.py", line 303, in send
    return self.get_connection(fail_silently).send_messages([self])
  File "/home/taiga/.virtualenvs/taiga/lib/python3.4/site-packages/django/core/mail/backends/smtp.py", line 100, in send_messages
    new_conn_created = self.open()
  File "/home/taiga/.virtualenvs/taiga/lib/python3.4/site-packages/django/core/mail/backends/smtp.py", line 67, in open
    self.connection.login(self.username, self.password)
  File "/usr/lib/python3.4/smtplib.py", line 652, in login
    raise SMTPAuthenticationError(code, resp)
smtplib.SMTPAuthenticationError: (535, b'5.7.8 Error: authentication failed: authentication failure')


Apparently an error in the configuration of the mail server, but I could not find the.

any ideas?

Thank you very much

David Barragán

unread,
May 3, 2016, 1:30:13 PM5/3/16
to Juan Pa Ortiz, taigaio
Hi Juan, check taiga-back/settings/local.py to find it


Regards.

--
Please help us keep the Taiga.io Community open and inclusive, follow our Code of Conduct:
https://github.com/taigaio/code-of-conduct/blob/master/CODE_OF_CONDUCT.md
---
You received this message because you are subscribed to the Google Groups "taigaio" group.
To unsubscribe from this group and stop receiving emails from it, send an email to taigaio+u...@googlegroups.com.
To post to this group, send email to tai...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/taigaio/16bf5693-a2e4-48ac-b3c4-9d3df307c567%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

---

 
David Barragán Merino  
Engineer

www.kaleidos.net/FFF8E7
Message has been deleted

David Barragán

unread,
May 3, 2016, 3:45:24 PM5/3/16
to Juan Pa Ortiz, taigaio
The error say authentication failed, so it can be because:

 - incorrect user or password
 - your server doesn't use TLS (try to play with EMAIL_USE_TLS = False) or use SSL (try to play with EMAIL_USE_SSL = True) you can find more info about this in https://docs.djangoproject.com/en/1.9/ref/settings/#email-use-tls and https://docs.djangoproject.com/en/1.9/ref/settings/#email-use-ssl


Regards

On Tue, May 3, 2016 at 9:29 PM, Juan Pa Ortiz <juanpab...@gmail.com> wrote:

Hi david, thank you for your support:

This is my local.py file, I verified and I dont´ know where could be the error: (Recently other partners made an update to the mail server for security reasons the password was updated but still got the same error)


from .common import *

ADMIN_MEDIA_PREFIX = "http://172.17.1.191/static/admin/"
SITES["front"]["scheme"] = "http"
SITES["front"]["domain"] = "taiga.datacenter.com.co"

SECRET_KEY = "theveryultratopsecretkey"

DEBUG = False
TEMPLATE_DEBUG = False
PUBLIC_REGISTER_ENABLED = True

#DEFAULT_FROM_EMAIL = "no-r...@example.com"
DEFAULT_FROM_EMAIL = "ta...@datacenter.com.co"
SERVER_EMAIL = DEFAULT_FROM_EMAIL

# Uncomment and populate with proper connection parameters
# for enable email sending. EMAIL_HOST_USER should end by @domain.tld
EMAIL_BACKEND = "django.core.mail.backends.smtp.EmailBackend"
EMAIL_USE_TLS = True
EMAIL_HOST = "172.17.1.6"
EMAIL_HOST_USER = "ta...@datacenter.com.co"
EMAIL_HOST_PASSWORD = "*.D4t4.*"
EMAIL_PORT = 25

# Uncomment and populate with proper connection parameters
# for enable github login/singin.
#GITHUB_API_CLIENT_ID = "yourgithubclientid"
#GITHUB_API_CLIENT_SECRET = "yourgithubclientsecret"



from .celery import *

BROKER_URL = 'amqp://guest:gu...@172.17.1.191:5672//'
CELERY_RESULT_BACKEND = 'redis://172.17.1.191:6379/0'
CELERY_ENABLED = True



EVENTS_PUSH_BACKEND = "taiga.events.backends.rabbitmq.EventsPushBackend"
EVENTS_PUSH_BACKEND_OPTIONS = {"url": "amqp://taiga:PASS...@172.17.1.191:5672/taiga"}

For more options, visit https://groups.google.com/d/optout.

Juan Pa Ortiz

unread,
May 3, 2016, 3:45:39 PM5/3/16
to taigaio, juanpab...@gmail.com
Hi david, thank you for the support

I checked the local.py file but don´t find any errors, I checked the email and password and looks correctly.

But recently we had an upgrade to the email server, then we change the password but still got the error


El martes, 3 de mayo de 2016, 12:30:13 (UTC-5), David Barragán escribió:

Juan Pa Ortiz

unread,
May 3, 2016, 5:35:32 PM5/3/16
to taigaio, juanpab...@gmail.com

Hi david thank you so much, just reload the server and it´s work 

The TLS was desactivated

Regards ! 


El martes, 3 de mayo de 2016, 14:45:24 (UTC-5), David Barragán escribió:
The error say authentication failed, so it can be because:

 - incorrect user or password
 - your server doesn't use TLS (try to play with EMAIL_USE_TLS = False) or use SSL (try to play with EMAIL_USE_SSL = True) you can find more info about this in https://docs.djangoproject.com/en/1.9/ref/settings/#email-use-tls and https://docs.djangoproject.com/en/1.9/ref/settings/#email-use-ssl


Regards
On Tue, May 3, 2016 at 9:29 PM, Juan Pa Ortiz <juanpab...@gmail.com> wrote:

Hi david, thank you for your support:

This is my local.py file, I verified and I dont´ know where could be the error: (Recently other partners made an update to the mail server for security reasons the password was updated but still got the same error)

David Barragán

unread,
May 3, 2016, 5:40:21 PM5/3/16
to Juan Pa Ortiz, taigaio
Cool!! 

you are welcome.


For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages