Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #82600

Re: smptplib problem SMTPRecipientsRefused for emails with ! exclamation mark in local portion of email

Date 2014-12-17 17:59 +0100
From Ervin Hegedüs <airween@gmail.com>
Subject Re: smptplib problem SMTPRecipientsRefused for emails with ! exclamation mark in local portion of email
References <2ca6ae04-fd8f-4370-96b9-5af04072e102@googlegroups.com>
Newsgroups comp.lang.python
Message-ID <mailman.17009.1418835547.18130.python-list@python.org> (permalink)

Show all headers | View raw


Hi,

On Wed, Dec 17, 2014 at 08:16:23AM -0800, radzhome@gmail.com wrote:
> smtplib.SMTPRecipientsRefused: {'aahlin!@gmail.com': (550, 'restricted characters in address')}
> 
> As in this question, the answer has reference to RFCs that spec it out, and state that exclamations are ok, so why is smptplib throwint this error?
> 
> http://stackoverflow.com/questions/2049502/what-characters-are-allowed-in-email-address
> 
> Django uses smtplib to send emails so it in turn fails too but email validation allows you to enter !

I think that this exception came from your SMTP server, not from
smtplib. Check your smtpd log.

You can try to send through that smtpd at another way (eg.
netcat) with that address - may be then you can check the result.


a.

-- 
I � UTF-8

Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

smptplib problem SMTPRecipientsRefused for emails with ! exclamation mark in local portion of email radzhome@gmail.com - 2014-12-17 08:16 -0800
  Re: smptplib problem SMTPRecipientsRefused for emails with ! exclamation mark in local portion of email Ervin Hegedüs <airween@gmail.com> - 2014-12-17 17:59 +0100
  Re: smptplib problem SMTPRecipientsRefused for emails with ! exclamation mark in local portion of email Radomir Wojcik <radzhome@gmail.com> - 2014-12-17 09:21 -0800
  Re: smptplib problem SMTPRecipientsRefused for emails with ! exclamation mark in local portion of email Radomir Wojcik <radzhome@gmail.com> - 2014-12-17 09:21 -0800
  Re: smptplib problem SMTPRecipientsRefused for emails with ! exclamation mark in local portion of email Radomir Wojcik <radzhome@gmail.com> - 2014-12-17 09:25 -0800
    Re: smptplib problem SMTPRecipientsRefused for emails with ! exclamation mark in local portion of email Michael Ströder <michael@stroeder.com> - 2014-12-17 21:59 +0100
      Re: smptplib problem SMTPRecipientsRefused for emails with ! exclamation mark in local portion of email Chris Angelico <rosuav@gmail.com> - 2014-12-18 09:00 +1100
  Re: smptplib problem SMTPRecipientsRefused for emails with ! exclamation mark in local portion of email Radomir Wojcik <radzhome@gmail.com> - 2014-12-17 10:15 -0800

csiph-web