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


Groups > comp.lang.python > #82615

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

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.swapon.de!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail
From Michael Ströder <michael@stroeder.com>
Newsgroups comp.lang.python
Subject Re: smptplib problem SMTPRecipientsRefused for emails with ! exclamation mark in local portion of email
Date Wed, 17 Dec 2014 21:59:02 +0100
Organization A noiseless patient Spider
Lines 30
Message-ID <m6sqq2$7ce$1@dont-email.me> (permalink)
References <2ca6ae04-fd8f-4370-96b9-5af04072e102@googlegroups.com> <c2274d95-0576-45dd-a55b-1e45bc09ef75@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding 7bit
Injection-Date Wed, 17 Dec 2014 20:58:42 +0000 (UTC)
Injection-Info mx02.eternal-september.org; posting-host="53329f0670a2633164e0b6c0f3e639ae"; logging-data="7566"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/vUyLJU64L3Xsao2b91nmwLDPp4CcsuWQ="
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:29.0) Gecko/20100101 Firefox/29.0 SeaMonkey/2.26.1
In-Reply-To <c2274d95-0576-45dd-a55b-1e45bc09ef75@googlegroups.com>
Cancel-Lock sha1:ggICT7UWVa3+YO0n/SPQQ3TNJf4=
Xref csiph.com comp.lang.python:82615

Show key headers only | View raw


Radomir Wojcik wrote:
> No need to do more troubleshooting, need to update the config. Found that exim default config denies these so nothing to do with smptlib indeed:
> 
> What this statement is doing is to accept unconditionally all recipients in messages that are submitted by SMTP from local processes using the standard input and output (that is, not using TCP/IP). A number of MUAs operate in this manner.
> 
> deny    message       = Restricted characters in address
>         domains       = +local_domains
>         local_parts   = ^[.] : ^.*[@%!/|]
> 
> deny    message       = Restricted characters in address
>         domains       = !+local_domains
>         local_parts   = ^[./|] : ^.*[@%!] : ^.*/\\.\\./
> These statements are concerned with local parts that contain any of the characters "@", "%", "!", "/", "|", or dots in unusual places. Although these characters are entirely legal in local parts (in the case of "@" and leading dots, only if correctly quoted), they do not commonly occur in Internet mail addresses.
> 
> http://www.exim.org/exim-html-current/doc/html/spec_html/ch-the_default_configuration_file.html

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.

Ciao, Michael.

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