Path: csiph.com!usenet.pasdenom.info!news.etla.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed3.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.029 X-Spam-Evidence: '*H*': 0.94; '*S*': 0.00; 'debug': 0.07; 'correct,': 0.09; 'subject:script': 0.09; 'subject:using': 0.09; 'python': 0.11; 'thread': 0.14; 'command,': 0.16; 'nowadays': 0.16; 'smtp,': 0.16; 'subject:send': 0.16; 'subject:python': 0.16; 'code.': 0.18; 'typing': 0.19; 'command': 0.22; 'shell': 0.22; 'question': 0.24; 'this:': 0.26; 'somewhere': 0.26; 'header:In-Reply-To:1': 0.27; 'point': 0.28; 'is?': 0.30; 'message-id:@mail.gmail.com': 0.30; 'code': 0.31; 'open': 0.33; 'subject:the': 0.34; 'could': 0.34; 'message.': 0.35; 'problem': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'there': 0.35; 'really': 0.36; 'processed': 0.36; 'smtp': 0.36; 'view,': 0.36; 'doing': 0.36; 'being': 0.38; 'to:addr:python-list': 0.38; 'issue': 0.38; 'to:addr:python.org': 0.39; 'how': 0.40; "google's": 0.60; 'logs': 0.60; 'most': 0.60; "you're": 0.61; 'discuss': 0.62; "you'll": 0.62; 'address': 0.63; 'reverse': 0.68; 'irrelevant': 0.84; 'subject:via': 0.84 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=rrSL9ieZbQyhOVNsieV9nIzL+PxkszD4bCvCwz83+m4=; b=mggVZN58UYUX16Kgc8D1WOGuyfikG8NSIpcj3Pzk09uO1eKSQyrg6GFeqvNIXf8zd+ s4Z5cOliVCcJcfAXICLb2BNDYANV5wbLtsRSwKX5SyFSudc30zbssR9I6FHfDka26qKJ 96bY2TAeS6gyzoe5U57oOfgDhgRWKe21GubYlhv4/duuYbnqYGW2U37b6hsDx8wB/X3C aqa6GblddUOIpKYPI2RBz8Jav/Ij8rTXKfVVyczt8epkQzs87o2lJJvaEIkcKhSKG9JB QSj5z3WzU4N1KPohDOZa+wZz0Ynryhug4B5DezGvOy4LnbqNQdqWzgC9VLXibBkTbENt htGQ== MIME-Version: 1.0 X-Received: by 10.180.102.73 with SMTP id fm9mr12786860wib.1.1379325966740; Mon, 16 Sep 2013 03:06:06 -0700 (PDT) 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> Date: Mon, 16 Sep 2013 12:06:06 +0200 Subject: Re: Tryign to send mail via a python script by using the local MTA From: Joost Molenaar To: python-list@python.org Content-Type: text/plain; charset=UTF-8 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: 1379325973 news.xs4all.nl 15933 [2001:888:2000:d::a6]:52635 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:54217 > Look, > > i want this to stop. > Open your own thread and discuss this if you like. > This is a thread i opened for a specific question and all i see its > irrelevant answers. Hi Ferrous, The problem is not in your Python code. You can debug it from the command line by typing the 'echo ... | mailx' command your Python code is executing. Somewhere on your local SMTP or on Google's SMTP, your message is not being processed the way you want it. There are many things that could cause this -- SPF, DKIM, reverse DNS not being correct, the From address being 'faked', or one of about a hunderd other factors. It's most likely an issue in your local SMTP server's configuration. You'll have to dive into the logs and do some research on how SMTP works nowadays to find out what's happening. But think about this: if I could send mail as nikos.gr33k@gmail.com, just by typing a shell command, how could we ever trust e-mail to be from who it really is? What if I send mail as barack.obama@whitehouse.gov? What you're doing may look like spam from Google's point of view, and that's why I think you're not receiving the message.