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

Path csiph.com!usenet.pasdenom.info!gegeweb.org!usenet-fr.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <airween@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.045
X-Spam-Evidence '*H*': 0.91; '*S*': 0.00; 'utf-8': 0.07; 'spec': 0.09; 'cc:addr:python-list': 0.11; 'django': 0.11; 'log.': 0.16; 'exception': 0.16; 'wrote:': 0.18; 'wed,': 0.18; 'result.': 0.19; 'server,': 0.19; 'cc:addr:python.org': 0.22; 'header:User- Agent:1': 0.23; 'subject:problem': 0.24; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'characters': 0.30; 'dec': 0.30; 'allows': 0.31; 'another': 0.32; 'subject:with': 0.35; 'skip:s 30': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'smtp': 0.36; 'hi,': 0.36; 'too': 0.37; 'turn': 0.37; 'question,': 0.38; 'subject:emails': 0.60; 'from:charset:utf-8': 0.61; 'content-disposition:inline': 0.62; 'address': 0.63; 'email addr:gmail.com': 0.63; 'to:addr:gmail.com': 0.65; 'subject:skip:S 20': 0.91; 'received:hu': 0.93
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=G7k6FTAmOl2lN+yzsjrEHKukJOuRLzri0V+9sCcmz6Q=; b=Zw/tuGo70ZyV9j0e02Es+XJKzhGIMV5Ksc5oy8eCrU5Akgm9SNveXZ1vcWwqsGw4eE D+LyvQ8zSycueWVVdYSYHWTcKKyujvT+7aK6pSQI6XjnKMf7RMqX1971THr6Y6XxxWSY D9Jp7LIHOT4cFePYB3bK1S/dlTbZLQRfHaYoryG8voTg+BvPRc6aBkMmVMWjEx83Yq03 PR1MM8GQNzQU6ryTcAQQa6hfVtvoIy75g/zWI5TS0SwXiOndl1HfWAT93vdwLwJBD5B2 lp1urAtcpZinwQ7hrugHApv8lmBbHfkIam7multAUkGZP+K3tuBwpxDkatIJ4Qofx6SC Ew0Q==
X-Received by 10.180.228.72 with SMTP id sg8mr16477487wic.48.1418835539575; Wed, 17 Dec 2014 08:58:59 -0800 (PST)
Date Wed, 17 Dec 2014 17:59:02 +0100
From Ervin Hegedüs <airween@gmail.com>
To radzhome@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>
MIME-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Disposition inline
Content-Transfer-Encoding 8bit
In-Reply-To <2ca6ae04-fd8f-4370-96b9-5af04072e102@googlegroups.com>
User-Agent Mutt/1.5.21 (2010-09-15)
Cc python-list@python.org
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.17009.1418835547.18130.python-list@python.org> (permalink)
Lines 22
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1418835547 news.xs4all.nl 2974 [2001:888:2000:d::a6]:51438
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:82600

Show key headers only | 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