Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!newsfeed.kamp.net!newsfeed.kamp.net!feeder1.cambriumusenet.nl!feed.tweaknews.nl!85.12.40.139.MISMATCH!xlned.com!feeder7.xlned.com!newsfeed.xs4all.nl!newsfeed4.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.068 X-Spam-Evidence: '*H*': 0.86; '*S*': 0.00; 'matches': 0.07; 'pretend': 0.09; 'subject:script': 0.09; 'subject:using': 0.09; "system's": 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; 'random': 0.14; '"i': 0.16; 'coding!': 0.16; 'command.': 0.16; 'inspire': 0.16; 'kern': 0.16; 'nowadays': 0.16; 'quirks': 0.16; 'subject:send': 0.16; 'to:addr:robert.kern': 0.16; 'to:name:robert kern': 0.16; 'troll': 0.16; 'underlying': 0.16; 'subject:python': 0.16; 'wrote:': 0.18; 'trying': 0.19; "python's": 0.19; 'email addr:gmail.com>': 0.22; 'cc:addr:python.org': 0.22; 'interpret': 0.24; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'tim': 0.29; 'robert': 0.30; 'especially': 0.30; 'message- id:@mail.gmail.com': 0.30; 'url:mailman': 0.30; 'code': 0.31; 'chase': 0.31; 'sep': 0.31; 'worked': 0.33; 'url:python': 0.33; 'subject:the': 0.34; 'could': 0.34; 'no,': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'google': 0.35; 'there': 0.35; 'library.': 0.36; 'replies': 0.36; 'smtp': 0.36; 'url:listinfo': 0.36; 'url:org': 0.36; 'operating': 0.37; 'project': 0.37; 'list.': 0.37; 'easily': 0.37; 'architecture': 0.38; 'question,': 0.38; 'url:library': 0.38; 'pm,': 0.38; 'url:mail': 0.40; 'easy': 0.60; 'sender.': 0.60; 'most': 0.60; 'strictly': 0.61; 'simply': 0.61; 'simple': 0.61; 'first': 0.61; 'discuss': 0.62; 'our': 0.64; 'interest': 0.64; 'to:addr:gmail.com': 0.65; 'world': 0.66; 'here': 0.66; 'dont': 0.67; 'believe': 0.68; 'judge': 0.68; 'hoping': 0.75; 'address,': 0.75; 'antispam': 0.84; 'domain,': 0.84; 'eco': 0.84; 'reply!': 0.84; 'subject:via': 0.84; 'terrible': 0.84; 'vain': 0.84; 'hand,': 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:from:date:message-id:subject:to :cc:content-type; bh=GNJyQgnEncNS7nxSGC+d2J3Zcnp+WA15YmaJrMkZ1jA=; b=mDwfjJLVA0Ypm8Peydj8Rby6bLafMj39LN0F8wNBVNfyHYA4o9254cIQBfgnaYHYMp ku+0HrG+lBLnNNFvXUoPPuLNlfTT9I9FszYqHRte1qDfN/5nyFScqm60oJkhl4DViAhC WJ7rbre/5UncqsWbaR2x0zKPb/FrZpdsbWAFYIr7ulwBe+xzYMpGyQNuEq2VW+bNUh5l RkPHQtdn8cwgFauFj53f1lMzfMjzUylZyrMgWm+CUWY8Rii843yuLKp0VwXt2Idtosc9 XuRpgg1Fj3/NN/91aOKlZxOKub9U5pK+mt13vyAV7MVEcZ7GPiuwE87dOK03BO34uQXo ILdQ== X-Received: by 10.60.96.169 with SMTP id dt9mr4072026oeb.27.1379649437412; Thu, 19 Sep 2013 20:57:17 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <305a2044-a13e-47f8-9cc1-9e3482424616@googlegroups.com> <52366466$0$29988$c3e8da3$5496439d@news.astraweb.com> <5236B356.7030308@rece.vub.ac.be> <5236BD75.5080904@rece.vub.ac.be> <5236C4B7.3070601@rece.vub.ac.be> <52379718$0$29988$c3e8da3$5496439d@news.astraweb.com> <5238330F.2060200@modelnine.org> From: Jake Angulo Date: Fri, 20 Sep 2013 13:56:57 +1000 Subject: Re: Tryign to send mail via a python script by using the local MTA To: Robert Kern Content-Type: multipart/alternative; boundary=089e0117601fa1fe0b04e6c8aa41 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 130 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1379649892 news.xs4all.nl 15921 [2001:888:2000:d::a6]:47151 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:54456 --089e0117601fa1fe0b04e6c8aa41 Content-Type: text/plain; charset=ISO-8859-1 Up Robert Kern's reply! I was waiting for smtplib to be mentioned... finally! Instead people simply answer philosophically. I dont want to judge whether OP is a troll or not - but i found a lot of arrogant replies here. I have also worked on an antispam project before, and see through the intents of the OP, but I do not pretend to be a moralist. I was hoping we would strictly discuss code or software architecture here, not morality. Simple question, simple answer pls, in the interest of the Python list. To the OP: You might want to google smtplib, and use that instead of os calling a system command. Smtplib takes care of all the operating system's quirks for you, and still uses the os native sendmail program. On the other hand, the way you are sending email is highly suspect, trying to spoof a domain, random email address, etc. It is not easy to fool most modern email servers nowadays - especially gmail's. They verify first that the sending domain matches the IP of the sender. And if you are trying to do this - it is neither Python's nor the OS fault. Happy coding! On Tue, Sep 17, 2013 at 10:51 PM, Robert Kern wrote: > On 2013-09-17 13:11, Ferrous Cranus wrote: > > There are members here like Tim Chase who said that they find it >> interesting to >> be able to do what i proposed. >> > > No, he didn't. He was using sarcasm in a vain attempt to inspire you to > search the Python documentation where you could easily find the standard > SMTP library. > > http://docs.python.org/2/**library/smtplib > > -- > Robert Kern > > "I have come to believe that the whole world is an enigma, a harmless > enigma > that is made terrible by our own mad attempt to interpret it as though it > had > an underlying truth." > -- Umberto Eco > > -- > https://mail.python.org/**mailman/listinfo/python-list > --089e0117601fa1fe0b04e6c8aa41 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Up Robert Kern's reply!

I was waiti= ng for=A0smtplib=A0to= be mentioned... finally! =A0Instead people simply answer philosophically. = =A0I dont want to judge whether OP is a troll or not - but i found a lot of= arrogant replies here. =A0I have also worked on an antispam project before= , and see through the intents of the OP, but I do not pretend to be a moral= ist. I was hoping we would strictly discuss code or software architecture h= ere, not morality. Simple question, simple answer pls, in the interest of t= he Python list.

To the OP: =A0

You might want to google smtpl= ib, and use that instead of os calling a system command. Smtplib takes care= of all the operating system's quirks for you, and still uses the os na= tive sendmail program.

On the othe= r hand, the way you are sending email is highly suspect, trying to spoof a = domain, random email address, etc. =A0It is not easy to fool most modern em= ail servers nowadays - especially gmail's. =A0They verify first that th= e sending domain matches the IP of the sender. =A0And if you are trying to = do this - it is neither Python's nor the OS fault.

Happy codin= g!


On Tue, Sep 17, 2013 at 10:51 PM, = Robert Kern <robert.kern@gmail.com> wrote:
On 2013-09-17 13:11, Ferrous Cranus wrot= e:

There are members here like Tim Chase who said that they find it interestin= g to
be able to do what i proposed.

No, he didn't. He was using sarcasm in a vain attempt to inspire you to= search the Python documentation where you could easily find the standard S= MTP library.

=A0 = http://docs.python.org/2/library/smtplib

--
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless = enigma
=A0that is made terrible by our own mad attempt to interpret it as though i= t had
=A0an underlying truth."
=A0 -- Umberto Eco

--
https://mail.python.org/mailman/listinfo/python-list

--089e0117601fa1fe0b04e6c8aa41--