WebFaction
Community site: login faq

Hello all,

I'm trying to send email with smtp, and I'm authenticating with the same username and password that I can use to successfully log in to webfaction's webmail, but when I try it with smtp it fails:

import smtplib
smtp = smtplib.SMTP()
smtp.connect('smtp.webfaction.com')
smtp.login('twneale@twneale.webfaction.com', '*****')

And I get this:

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.7/smtplib.py", line 592, in login
  raise SMTPAuthenticationError(code, resp)
smtplib.SMTPAuthenticationError: (535, '5.7.0 Error: authentication failed: authentication failure')

I have also noticed that although I created an email address for "twneale@twneale.webfactional.com" in the control panel and sent up an autoresponder, it doesn't seem to be working. I also set up another email address with an autoresponder, and that one does work.

What am I doing wrong? Thanks!

asked 06 Nov '11, 13:30

twneale's gravatar image

twneale
5124
accept rate: 0%

Try just using twneale as your smtp.login ID. You shouldn't need @twneale.webfaction.com

(06 Nov '11, 13:41) bmeyer71 ♦♦ bmeyer71's gravatar image

Thanks, that solved my problem.

(06 Nov '11, 14:01) twneale twneale's gravatar image

raise SMTPAuthenticationError(code, resp) smtplib.SMTPAuthenticationError.....

It is because Google blocks sign-in attempts from apps which do not use modern security standards (mentioned on their support page). You can however, turn on/off this safety feature by going to the link below:

Go to this link and select Turn On

https://www.google.com/settings/security/lesssecureapps

More on...smtp mail

permanent link

answered 27 Sep, 06:04

Dell%20Mercant's gravatar image

Dell Mercant
1
accept rate: 0%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×893
×256
×39

question asked: 06 Nov '11, 13:30

question was seen: 11,665 times

last updated: 27 Sep, 06:04

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2017 PARAGON INTERNET GROUP LIMITED
WEBFACTION IS A SERVICE OF PARAGON INTERNET GROUP LIMITED
REGISTERED IN ENGLAND AND WALES 7573953 - VAT REGISTRATION NUMBER 182147021
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM