Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SMTP error when adding public key #20

Open
wdoekes opened this issue Oct 11, 2017 · 0 comments
Open

SMTP error when adding public key #20

wdoekes opened this issue Oct 11, 2017 · 0 comments

Comments

@wdoekes
Copy link
Member

wdoekes commented Oct 11, 2017

  File "/srv/virtualenvs/pstore/local/lib/python2.7/site-packages/django/contrib/admin/options.py", line 742, in save_model
    obj.save()

  File "./pstore/models.py", line 104, in save
    notify_publickey_change(self.original, self)

  File "./pstore/notify.py", line 184, in notify_publickey_change
    send_mail(subject, flatbody, fromaddr, toaddrs)
...
  File "/srv/virtualenvs/pstore/local/lib/python2.7/site-packages/django/core/mail/backends/smtp.py", line 110, in _send
    email_message.message().as_string())

  File "/usr/lib/python2.7/smtplib.py", line 747, in sendmail
    raise SMTPRecipientsRefused(senderrs)

SMTPRecipientsRefused: {'': (501, '5.1.3 Bad recipient address syntax')}

when changing a public key / setting description for a public key that does not have a user with a valid email address (User.email='')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant