Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #54189
| References | <305a2044-a13e-47f8-9cc1-9e3482424616@googlegroups.com> |
|---|---|
| Date | 2013-09-15 20:59 +0200 |
| Subject | Re: Tryign to send mail via a python script by using the local MTA |
| From | Joost Molenaar <j.j.molenaar@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.5.1379271594.18130.python-list@python.org> (permalink) |
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 | Next — Previous in thread | Next in thread | Find similar | Unroll 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