Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!news.mixmin.net!hq-usenetpeers.eweka.nl!81.171.88.250.MISMATCH!newsfeed.eweka.nl!eweka.nl!feeder3.eweka.nl!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!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.014 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'subject:Python': 0.06; 'failing': 0.07; 'permitted': 0.07; 'strict': 0.07; 'tries': 0.07; 'check,': 0.09; 'omit': 0.09; 'rejected': 0.09; 'subject:script': 0.09; '"is': 0.16; '23,': 0.16; 'address).': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'rejected.': 0.16; 'subject:mails': 0.16; 'wrote:': 0.18; 'cheap': 0.19; 'server,': 0.19; '(the': 0.22; '>>>': 0.22; 'handling': 0.26; 'gets': 0.27; 'header:In-Reply-To:1': 0.27; 'record': 0.27; 'michael': 0.29; 'chris': 0.29; 'am,': 0.29; 'message- id:@mail.gmail.com': 0.30; 'url:wiki': 0.31; 'correctly.': 0.31; 'spam,': 0.31; 'url:wikipedia': 0.31; 'anyone': 0.31; 'checking': 0.33; 'could': 0.34; 'something': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'subject:Simple': 0.36; "didn't": 0.36; 'thanks': 0.36; 'subject:?': 0.36; 'url:org': 0.36; 'should': 0.36; 'server': 0.38; 'problems': 0.38; 'to:addr:python- list': 0.38; 'legitimate': 0.39; 'reported': 0.39; 'to:addr:python.org': 0.39; 'guy': 0.60; 'simply': 0.61; 'simple': 0.61; 'great': 0.65; 'yes': 0.68; 'anything.': 0.68; 'invalid': 0.68; 'mail.': 0.69; 'records,': 0.69; 'records': 0.73; 'jul': 0.74; 'detecting': 0.84; 'transmitting': 0.84; 'yours.': 0.93; '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=JhIpA5uCX8Oc7qzcR3tmJf0WMxHfrPRs4AyDhQTWGKA=; b=vIuZVWinTajIJs15cYvdamoUtLgCbdhmC43Y71ksg+K3zJ5B1d4dVRb8vWSMndyV2x Lv60n7nUJXwLkr7jWU/nXt6nrs3+Lnckeppf8CFLupWMXpq0KSg/gV/fWpgR8Ornumm2 1Y7UNIWB07vt8dCYzgZgX3wZmPhbrkKdSfWWSjq+sno7UHYI3bwmw+o849NQQdl2RibQ O8x+FCtW6lvGoNMQF+5RiEGpiasiOJCW5Xz4tzzhZybIGWV6+oZdY90pFXwleXOa4A8I Li8Max4KNgWSN2NBbRQ9ulyAAJHUgF0UeAMA//NdXHWD3mq7y6DTcMuPUeo+tz3RcsaJ BUlw== MIME-Version: 1.0 X-Received: by 10.58.214.105 with SMTP id nz9mr4654385vec.58.1374502529188; Mon, 22 Jul 2013 07:15:29 -0700 (PDT) In-Reply-To: <51ED3CEB.1070706@gmail.com> References: <368qu85msgfhuk2j2s13qj0bqn4rkcint9@4ax.com> <51ED3CEB.1070706@gmail.com> Date: Tue, 23 Jul 2013 00:15:28 +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: 27 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1374502532 news.xs4all.nl 15911 [2001:888:2000:d::a6]:59693 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:51045 On Tue, Jul 23, 2013 at 12:08 AM, Michael Torrie wrote: > On 07/22/2013 06:51 AM, Chris Angelico wrote: >>> Thanks for the tip. I didn't know about SPF >>> http://en.wikipedia.org/wiki/Sender_Policy_Framework >> >> It's a great way of detecting legit vs forged mail. If anyone tries to >> send mail purporting to be from anything@kepl.com.au and the receiving >> mail server is checking SPF records, it'll be rejected after one cheap >> DNS lookup. It's a simple and cacheable way to ask the owning server, >> "Is this guy allowed to send mail for you?". (The 192.168 block in my >> SPF record above is permitted to allow some intranet conveniences; >> omit it unless you need it.) > > Yes setting SPF records will help your mail be accepted by other > servers, but I disagree with your appeal to make mail server SPF > handling as strict as your server does. SPF has problems in a number of > situations which could cause legitimate mail to be rejected. In my last > job I could only use SPF as one spam factor, not as a basis for rejection. If legit mail is rejected for failing an SPF check, it's the sending admin's problem, not yours. You should never have problems with it if it's set up correctly. And since rejected mail gets reported to the transmitting MTA, you don't need to drop it in a spambox or anything. It's not spam, it's simply invalid mail (equivalent to something sent to a dud address). ChrisA