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


Groups > comp.lang.python > #54189

Re: Tryign to send mail via a python script by using the local MTA

Path csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <j.j.molenaar@gmail.com>
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; 'log:': 0.05; 'reject': 0.07; '%s"': 0.09; 'exist,': 0.09; 'skip:/ 10': 0.09; 'subject:script': 0.09; 'subject:using': 0.09; 'to)': 0.09; 'try:': 0.09; 'python': 0.11; '"."': 0.16; '2.0.0': 0.16; 'args:': 0.16; 'ehlo': 0.16; 'subject:send': 0.16; 'sys.exit(0)': 0.16; 'tls': 0.16; 'subject:python': 0.16; 'exception': 0.16; 'wrote:': 0.18; 'trying': 0.19; 'error': 0.23; 'connected': 0.24; 'looks': 0.24; '15,': 0.26; 'gets': 0.27; 'header:In-Reply-To:1': 0.27; 'host': 0.29; "doesn't": 0.30; 'message-id:@mail.gmail.com': 0.30; 'url:mailman': 0.30; 'sep': 0.31; 'skip:= 40': 0.31; 'service,': 0.32; 'skip:c 30': 0.32; 'url:python': 0.33; 'subject:the': 0.34; 'could': 0.34; 'message.': 0.35; 'connection': 0.35; 'except': 0.35; 'prepare': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'smtp': 0.36; 'url:listinfo': 0.36; 'url:org': 0.36; 'server': 0.38; 'ahead': 0.38; 'skip:[ 10': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'does': 0.39; 'to:addr:python.org': 0.39; 'skip:x 10': 0.40; 'url:mail': 0.40; "google's": 0.60; 'skip:2 20': 0.60; 'most': 0.60; 'completed': 0.61; 'deliver': 0.61; 'address': 0.63; 'email addr:gmail.com': 0.63; 'connecting': 0.64; 'spam.': 0.64; '8bit%:95': 0.64; 'date,': 0.68; 'reverse': 0.68; 'subject': 0.69; '500': 0.70; '8bit%:100': 0.72; '250': 0.78; 'email addr:gmail.com"': 0.84; 'random,': 0.84; 'subject:via': 0.84; 'text/html;': 0.84; '8bit%:90': 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:content-transfer-encoding; bh=8cD508P0YOpHcmxqokvktpIvBipwtNPfByKd9RRnvYk=; b=jfevp1g0T/4ppZoZItwkcGVrNvdxDm+KoK/wWDqGuf24wgr66WPxs9QmFojXpSmDxX htH6er5quJOiiL0/ROtf9z135z9qBlIYByivUQvFYJSBkxhrfRfd9aGyuxpM/c9vDe7D a3xJu/L0es6Fl4DNYjujgz4YNlWplupo44ZSFQrMGmJL6DDGwWhjrxcDsPbs0YwTfEE9 SOBGJbeaWHfWrbvhLYa9jwvU9jPDMuMehYcVcOqW7ooRHaUejTU5dWW91m4s74HB6g/F IYjvmVuUqnmZ/9xWCCIv0HJmB2VaGGk/PW6JdPtwVrkXrB1iwCRwuY5Rrxm2siRG92ZD iYvw==
MIME-Version 1.0
X-Received by 10.194.9.70 with SMTP id x6mr14088126wja.22.1379271592519; Sun, 15 Sep 2013 11:59:52 -0700 (PDT)
In-Reply-To <305a2044-a13e-47f8-9cc1-9e3482424616@googlegroups.com>
References <305a2044-a13e-47f8-9cc1-9e3482424616@googlegroups.com>
Date Sun, 15 Sep 2013 20:59:52 +0200
Subject Re: Tryign to send mail via a python script by using the local MTA
From Joost Molenaar <j.j.molenaar@gmail.com>
To python-list@python.org
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding quoted-printable
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.5.1379271594.18130.python-list@python.org> (permalink)
Lines 96
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1379271594 news.xs4all.nl 15983 [2001:888:2000:d::a6]:35621
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:54189

Show key headers only | View raw


Since the From address is random, it most likely doesn't exist, which
could be reason for Google's smtp server to reject the message or to
deliver it to spam.

Also, the reverse DNS for 84.200.17.58 does not resolve to
secure.superhost.gr, which could also be reason to reject the message.

On Sun, Sep 15, 2013 at 5:54 PM, Ferrous Cranus <nikos.gr33k@gmail.com> wrote:
> try:
>         # prepare mail data
>         FROM = random_char(10) + '@' + random_char(10) + '.com'
>         TO = "nikos.gr33k@gmail.com"
>
>         SUBJECT = random_char( 50 )
>         MESSAGE = random_char( 500 )
>
>   os.system( "echo %s | mailx -v -r %s -s %s %s" % (MESSAGE, FROM, SUBJECT, TO) )
>
> print( "<h2><font color=blue>%sη αποστολή προς %s επετεύχθη!</font></h2>" % (times, TO) )
>         except Exception as e:
>                 print( "sendmail => ", date, repr( sys.exc_info() ) )
>
> sys.exit(0)
>
> ========================================
> ========================================
>
> I'am still trying to send successfulyl a mail through my local host by using the local MTA, trying to avoid using GMail's SMTP server but the mail never gets send
>
> this is the error message:
>
> [code]
> nikos@superhost.gr [~/www/cgi-bin]# python mail.py
> LOG: MAIN
>   cwd=/home/nikos/public_html/cgi-bin 6 args: send-mail -i -v -r ZYN1KGSCT9@JRV0CEI7TX.com nikos.gr33k@gmail.com
> LOG: MAIN
>   <= ZYN1KGSCT9@JRV0CEI7TX.com U=nikos P=local S=1052 id=5235d7f5.bzP0TUy4ZQEOp7Dh%ZYN1KGSCT9@JRV0CEI7TX.com T="QOU0ULMZBF7RGG7B260YERPPXXLTVQ9WKJ93ZXYABQNNA0XB9I"
> Content-type: text/html; charset=utf-8
>
> <h2><font color=blue>0η αποστολή προς nikos.gr33k@gmail.com επετεύχθη!</font></h2>
> LOG: MAIN
>   cwd=/var/spool/exim 4 args: /usr/sbin/exim -v -Mc 1VLEdZ-0001Xg-6b
> delivering 1VLEdZ-0001Xg-6b
> nikos@superhost.gr [~/www/cgi-bin]# LOG: MAIN
>   SMTP connection outbound 1379260405 1VLEdZ-0001Xg-6b superhost.gr nikos.gr33k@gmail.com
> Connecting to gmail-smtp-in.l.google.com [173.194.70.26]:25 ... connected
>   SMTP<< 220 mx.google.com ESMTP e49si15825947eep.141 - gsmtp
>   SMTP>> EHLO secure.superhost.gr
>   SMTP<< 250-mx.google.com at your service, [84.200.17.58]
>          250-SIZE 35882577
>          250-8BITMIME
>          250-STARTTLS
>          250-ENHANCEDSTATUSCODES
>          250 CHUNKING
>   SMTP>> STARTTLS
>   SMTP<< 220 2.0.0 Ready to start TLS
>   SMTP>> EHLO secure.superhost.gr
>   SMTP<< 250-mx.google.com at your service, [84.200.17.58]
>          250-SIZE 35882577
>          250-8BITMIME
>          250-ENHANCEDSTATUSCODES
>          250 CHUNKING
>   SMTP>> MAIL FROM:<ZYN1KGSCT9@JRV0CEI7TX.com> SIZE=2090
>   SMTP<< 250 2.1.0 OK e49si15825947eep.141 - gsmtp
>   SMTP>> RCPT TO:<nikos.gr33k@gmail.com>
>   SMTP<< 250 2.1.5 OK e49si15825947eep.141 - gsmtp
>   SMTP>> DATA
>   SMTP<< 354  Go ahead e49si15825947eep.141 - gsmtp
>   SMTP>> writing message and terminating "."
>   SMTP<< 250 2.0.0 OK 1379260407 e49si15825947eep.141 - gsmtp
>   SMTP>> QUIT
> LOG: MAIN
>   => nikos.gr33k@gmail.com R=lookuphost T=remote_smtp H=gmail-smtp-in.l.google.com [173.194.70.26] X=TLSv1:RC4-SHA:128
> LOG: MAIN
>   Completed
> [/code]
>
>
> Since all looks okey why the mail never gets delivered?
> --
> https://mail.python.org/mailman/listinfo/python-list

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Tryign to send mail via a python script by using the local MTA Ferrous Cranus <nikos.gr33k@gmail.com> - 2013-09-15 08:54 -0700
  Re: Tryign to send mail via a python script by using the local MTA Joost Molenaar <j.j.molenaar@gmail.com> - 2013-09-15 20:59 +0200
    Re: Tryign to send mail via a python script by using the local MTA SuperHost - Nikos <nikos@superhost.gr> - 2013-09-15 23:56 +0300
  Re: Tryign to send mail via a python script by using the local MTA Chris Angelico <rosuav@gmail.com> - 2013-09-16 07:31 +1000
  Re: Tryign to send mail via a python script by using the local MTA Joel Goldstick <joel.goldstick@gmail.com> - 2013-09-15 17:57 -0400
  Re: Tryign to send mail via a python script by using the local MTA Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-09-16 01:52 +0000
    Re: Tryign to send mail via a python script by using the local MTA Ferrous Cranus <nikos.gr33k@gmail.com> - 2013-09-16 09:44 +0300
    Re: Tryign to send mail via a python script by using the local MTA Antoon Pardon <antoon.pardon@rece.vub.ac.be> - 2013-09-16 09:29 +0200
      Re: Tryign to send mail via a python script by using the local MTA Ferrous Cranus <nikos.gr33k@gmail.com> - 2013-09-16 11:04 +0300
    Re: Tryign to send mail via a python script by using the local MTA Chris Angelico <rosuav@gmail.com> - 2013-09-16 17:44 +1000
    Re: Tryign to send mail via a python script by using the local MTA Chris Angelico <rosuav@gmail.com> - 2013-09-16 17:46 +1000
    Re: Tryign to send mail via a python script by using the local MTA Antoon Pardon <antoon.pardon@rece.vub.ac.be> - 2013-09-16 10:07 +0200
    Re: Tryign to send mail via a python script by using the local MTA Chris Angelico <rosuav@gmail.com> - 2013-09-16 18:12 +1000
    Re: Tryign to send mail via a python script by using the local MTA Antoon Pardon <antoon.pardon@rece.vub.ac.be> - 2013-09-16 10:12 +0200
    Re: Tryign to send mail via a python script by using the local MTA Chris Angelico <rosuav@gmail.com> - 2013-09-16 18:19 +1000
    Re: Tryign to send mail via a python script by using the local MTA Antoon Pardon <antoon.pardon@rece.vub.ac.be> - 2013-09-16 10:43 +0200
    Re: Tryign to send mail via a python script by using the local MTA Chris Angelico <rosuav@gmail.com> - 2013-09-16 18:48 +1000
    Re: Tryign to send mail via a python script by using the local MTA Antoon Pardon <antoon.pardon@rece.vub.ac.be> - 2013-09-16 11:40 +0200
      Re: Tryign to send mail via a python script by using the local MTA Ferrous Cranus <nikos.gr33k@gmail.com> - 2013-09-16 12:45 +0300
        Re: Tryign to send mail via a python script by using the local MTA Joost Molenaar <j.j.molenaar@gmail.com> - 2013-09-16 12:06 +0200
          Re: Tryign to send mail via a python script by using the local MTA Denis McMahon <denismfmcmahon@gmail.com> - 2013-09-16 11:21 +0000
            Re: Tryign to send mail via a python script by using the local MTA Ferrous Cranus <nikos.gr33k@gmail.com> - 2013-09-16 14:37 +0300
              Re: Tryign to send mail via a python script by using the local MTA Heiko Wundram <modelnine@modelnine.org> - 2013-09-16 13:44 +0200
                Re: Tryign to send mail via a python script by using the local MTA Ferrous Cranus <nikos.gr33k@gmail.com> - 2013-09-16 15:11 +0300
                Re: Tryign to send mail via a python script by using the local MTA Heiko Wundram <modelnine@modelnine.org> - 2013-09-16 14:17 +0200
                Re: Tryign to send mail via a python script by using the local MTA Antoon Pardon <antoon.pardon@rece.vub.ac.be> - 2013-09-16 14:56 +0200
                Re: Tryign to send mail via a python script by using the local MTA Ferrous Cranus <nikos.gr33k@gmail.com> - 2013-09-16 18:02 +0300
                Re: Tryign to send mail via a python script by using the local MTA Denis McMahon <denismfmcmahon@gmail.com> - 2013-09-16 19:09 +0000
                Re: Tryign to send mail via a python script by using the local MTA Joel Goldstick <joel.goldstick@gmail.com> - 2013-09-16 17:07 -0400
                Re: Tryign to send mail via a python script by using the local MTA Ferrous Cranus <nikos.gr33k@gmail.com> - 2013-09-17 00:18 +0300
                Re: Tryign to send mail via a python script by using the local MTA Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-09-16 23:41 +0000
                Re: Tryign to send mail via a python script by using the local MTA Heiko Wundram <modelnine@modelnine.org> - 2013-09-17 12:46 +0200
                Re: Tryign to send mail via a python script by using the local MTA Grant Edwards <invalid@invalid.invalid> - 2013-09-17 14:37 +0000
                Re: Tryign to send mail via a python script by using the local MTA Ferrous Cranus <nikos.gr33k@gmail.com> - 2013-09-17 18:17 +0300
                Re: Tryign to send mail via a python script by using the local MTA Denis McMahon <denismfmcmahon@gmail.com> - 2013-09-17 16:30 +0000
                Re: Tryign to send mail via a python script by using the local MTA Ferrous Cranus <nikos.gr33k@gmail.com> - 2013-09-18 00:42 +0300
                Re: Tryign to send mail via a python script by using the local MTA Chris Angelico <rosuav@gmail.com> - 2013-09-18 07:47 +1000
                Re: Tryign to send mail via a python script by using the local MTA William Ray Wing <wrw@mac.com> - 2013-09-17 18:34 -0400
                Re: Tryign to send mail via a python script by using the local MTA Denis McMahon <denismfmcmahon@gmail.com> - 2013-09-18 05:20 +0000
                Re: Tryign to send mail via a python script by using the local MTA Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-09-18 18:31 -0400
                Re: Tryign to send mail via a python script by using the local MTA Dave Angel <davea@davea.name> - 2013-09-18 23:55 +0000
                Re: Tryign to send mail via a python script by using the local MTA Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-09-17 19:29 -0400
                Re: Tryign to send mail via a python script by using the local MTA Νίκος <nikos.gr33k@gmail.com> - 2013-09-21 12:21 +0300
                Re: Tryign to send mail via a python script by using the local MTA William Ray Wing <wrw@mac.com> - 2013-09-21 09:29 -0400
                Re: Tryign to send mail via a python script by using the local MTA alex23 <wuwei23@gmail.com> - 2013-09-23 11:17 +1000
                Re: Tryign to send mail via a python script by using the local MTA Piet van Oostrum <piet@vanoostrum.org> - 2013-09-17 22:58 -0400
                Re: Tryign to send mail via a python script by using the local MTA Joel Goldstick <joel.goldstick@gmail.com> - 2013-09-17 07:55 -0400
                Re: Tryign to send mail via a python script by using the local MTA Ferrous Cranus <nikos.gr33k@gmail.com> - 2013-09-17 15:11 +0300
                Re: Tryign to send mail via a python script by using the local MTA Robert Kern <robert.kern@gmail.com> - 2013-09-17 13:51 +0100
                Re: Tryign to send mail via a python script by using the local MTA Antoon Pardon <antoon.pardon@rece.vub.ac.be> - 2013-09-17 14:52 +0200
                Re: Tryign to send mail via a python script by using the local MTA Jake Angulo <jake.angulo@gmail.com> - 2013-09-20 13:56 +1000
                Re: Tryign to send mail via a python script by using the local MTA feedthetroll@gmx.de - 2013-09-20 04:05 -0700
                Re: Tryign to send mail via a python script by using the local MTA Antoon Pardon <antoon.pardon@rece.vub.ac.be> - 2013-09-20 08:48 +0200
                Re: Tryign to send mail via a python script by using the local MTA Robert Kern <robert.kern@gmail.com> - 2013-09-20 10:26 +0100
                Re: Tryign to send mail via a python script by using the local MTA Heiko Wundram <modelnine@modelnine.org> - 2013-09-17 14:22 +0200
                Re: Tryign to send mail via a python script by using the local MTA Ferrous Cranus <nikos.gr33k@gmail.com> - 2013-09-16 19:15 +0300
                Re: Tryign to send mail via a python script by using the local MTA Ferrous Cranus <nikos.gr33k@gmail.com> - 2013-09-16 19:23 +0300
                Re: Tryign to send mail via a python script by using the local MTA Denis McMahon <denismfmcmahon@gmail.com> - 2013-09-16 19:07 +0000
                Re: Tryign to send mail via a python script by using the local MTA William Ray Wing <wrw@mac.com> - 2013-09-16 13:53 -0400
                Re: Tryign to send mail via a python script by using the local MTA Ferrous Cranus <nikos.gr33k@gmail.com> - 2013-09-17 00:15 +0300
                Re: Tryign to send mail via a python script by using the local MTA Tim Chase <python.list@tim.thechases.com> - 2013-09-16 20:40 -0500
                Re: Tryign to send mail via a python script by using the local MTA feedthetroll@gmx.de - 2013-09-16 23:15 -0700
            Re: Tryign to send mail via a python script by using the local MTA Heiko Wundram <modelnine@modelnine.org> - 2013-09-16 13:32 +0200

csiph-web