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


Groups > comp.lang.python > #82618

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

References <2ca6ae04-fd8f-4370-96b9-5af04072e102@googlegroups.com> <c2274d95-0576-45dd-a55b-1e45bc09ef75@googlegroups.com> <m6sqq2$7ce$1@dont-email.me>
Date 2014-12-18 09:00 +1100
Subject Re: smptplib problem SMTPRecipientsRefused for emails with ! exclamation mark in local portion of email
From Chris Angelico <rosuav@gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.17020.1418853653.18130.python-list@python.org> (permalink)

Show all headers | View raw


On Thu, Dec 18, 2014 at 7:59 AM, Michael Ströder <michael@stroeder.com> wrote:
> You should really think about why these chars were excluded in the
> configuration: The reason is that those they are special in shells.
>
> And many SMTP deployments have pretty naive (shell) scripts or software with
> shell exits. So allowing those chars can cause more or less big security
> risks. For this reason it's likely that you will end in spam filters / black
> lists etc. because systems may assume you want to do some harm.
>
> So I would really rethink the requirements.
>
> Your mileage may vary. But you have been warned.

It's worth noting that the SMTP spec never says that every server must
accept all characters. I could create a perfectly compliant mail
server in which recipient names may not include the letter 'e', for
instance. It would be a bug if smtplib rejected those, but since the
rejection is coming from the server, that's fairly legit.

ChrisA

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