Setting up django mailbox

515 views
Skip to first unread message

learn django

unread,
Feb 4, 2016, 5:02:36 PM2/4/16
to Django users
Hi,

Am trying to setup django mailbox  from admin page and seeing issues.

My email address is f...@company.com. We use google.com for our email service.

My username is "a...@company.com", name is "abc abc" and password is "abc1234".

Am putting following details on django_mailbox page.

Name: "abc abc"
URI: "imap+ssl://abc%40company.com:abc1...@imap.company.com"
From email: "a...@company.com"

I see following traceback on running "python manage.py getmail".
I have enabled imap under setting under google for my account.

$ python manage.py getmail
/usr/local/lib/python2.7/dist-packages/djangosaml2/conf.py:20: RemovedInDjango19Warning: django.utils.importlib will be removed in Django 1.9.
  from django.utils.importlib import import_module

Traceback (most recent call last):
  File "manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 338, in execute_from_command_line
    utility.execute()
  File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 330, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 390, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 441, in execute
    output = self.handle(*args, **options)
  File "/usr/local/lib/python2.7/dist-packages/django_mailbox/management/commands/getmail.py", line 24, in handle
    messages = mailbox.get_new_mail()
  File "/usr/local/lib/python2.7/dist-packages/django_mailbox/models.py", line 393, in get_new_mail
    connection = self.get_connection()
  File "/usr/local/lib/python2.7/dist-packages/django_mailbox/models.py", line 229, in get_connection
    conn.connect(self.username, self.password)
  File "/usr/local/lib/python2.7/dist-packages/django_mailbox/transports/imap.py", line 41, in connect
    typ, msg = self.server.login(username, password)
  File "/usr/lib/python2.7/imaplib.py", line 519, in login
    raise self.error(dat[-1])
imaplib.error: Login failed.

Am unable to figure out what is happening here.
Any help is appreciated.
Thanks in advance.

Daniel Chimeno

unread,
Feb 4, 2016, 6:24:00 PM2/4/16
to Django users
Hello,
If you are writing about his project: https://github.com/coddingtonbear/django-mailbox I guess
it's better to ask in the issues page of that project: https://github.com/coddingtonbear/django-mailbox/issues

Dheerendra Rathor

unread,
Feb 4, 2016, 6:49:48 PM2/4/16
to Django users
Are you sure imap.company.com is handling your imap server and not imap.google.com?

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/7d0e657f-a3b0-42e4-821e-9b9c2c7ad15a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

learn django

unread,
Feb 4, 2016, 8:04:44 PM2/4/16
to Django users
I tried both but no luck.

Daniel Chimeno

unread,
Feb 5, 2016, 2:58:03 AM2/5/16
to Django users

learn django

unread,
Feb 5, 2016, 9:43:28 AM2/5/16
to Django users
Hi All,

I was able to resolve the issue yesterday night.
Forgot to send an email.

I had to reduce the security level of gmail so that app can access it.

Thanks for all the help.
Reply all
Reply to author
Forward
0 new messages