Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.035 X-Spam-Evidence: '*H*': 0.93; '*S*': 0.00; 'configure': 0.05; 'subject:Python': 0.06; '22,': 0.09; 'subject:script': 0.09; 'python': 0.11; 'considers': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'gilles': 0.16; 'subject:mails': 0.16; 'wrote:': 0.18; 'install': 0.23; 'this?': 0.23; 'effort.': 0.24; 'own.': 0.24; 'mon,': 0.24; 'server.': 0.24; 'header:In- Reply-To:1': 0.27; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; 'go.': 0.31; "i'd": 0.34; 'could': 0.34; 'something': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'smtp': 0.36; 'subject:Simple': 0.36; 'subject:?': 0.36; 'server': 0.38; 'to:addr:python-list': 0.38; 'rather': 0.38; 'anything': 0.39; 'to:addr:python.org': 0.39; 'either': 0.39; 'address': 0.63; 'act': 0.63; 'spam.': 0.64; 'e-mails': 0.65; 'jul': 0.74; "isp's": 0.84; 'refuses': 0.84; 'scratch,': 0.84; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=HwFRUrdcjtxb6L9be89m7MMLAulobTmoZCXA/dY+j5s=; b=xeSxWswql5GP5nfkiZmVkmaaPWa69gehmK+DDkBLmUhoia0Zx2EReBNxSA2wpa7ZCn 7mor/5XsDOtAzux8nFn8qGFRc6thfjNXQ3x3ERlUQUx2fRUF64ofXWCvw8kPUeRc/1DU teyh+n1UYzyrFD/ja46pHQZ5GCTL9x1IWCDGNBoyiRY7/HHaBlxb05NngwSnSAa1g/hq j8m24ADWkxifNnWrEW99hczYxaBjWzKlFrA/twOnMPYLJAod0pO73IVbtbL2SIWrhOhx erQYJKh51XxcdHGr3u381xecLOyGFg/al7tEwybIkaYKLsd4QIn9YnsDFDEc8h0fVCsv 667A== MIME-Version: 1.0 X-Received: by 10.52.120.77 with SMTP id la13mr6839104vdb.23.1374418109562; Sun, 21 Jul 2013 07:48:29 -0700 (PDT) In-Reply-To: References: Date: Mon, 22 Jul 2013 00:48:29 +1000 Subject: Re: Simple Python script as SMTP server for outgoing e-mails? From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 22 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1374418117 news.xs4all.nl 15916 [2001:888:2000:d::a6]:56655 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:51014 On Mon, Jul 22, 2013 at 12:42 AM, Gilles wrote: > Hello > > Every once in a while, my ISP's SMTP server refuses to send > perfectly legit e-mails because it considers them as SPAM. > > So I'd like to install a dead-simple SMTP server on my XP computer > just to act as SMTP backup server. > All I'd need is to change the SMTP address in my e-mail client, and > off they go. No need for anything else like user authentication or > SPAM control. > > Is there a no-brainer, ready-to-use solution in Python that I could > use for this? Rather than write something from scratch, I'd look at deploying something out-of-the-box - Postfix, for instance - which you will be able to configure much faster than writing your own. And then you could have it either send via your ISP or send directly to the receiving MTA, without much extra effort. ChrisA