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


Groups > comp.lang.python > #54188 > unrolled thread

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

Started byFerrous Cranus <nikos.gr33k@gmail.com>
First post2013-09-15 08:54 -0700
Last post2013-09-16 13:32 +0200
Articles 3 on this page of 63 — 20 participants

Back to article view | Back to comp.lang.python


Contents

  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

Page 4 of 4 — ← Prev page 1 2 3 [4]


#54261

FromTim Chase <python.list@tim.thechases.com>
Date2013-09-16 20:40 -0500
Message-ID<mailman.46.1379383858.18130.python-list@python.org>
In reply to#54246
On 2013-09-17 00:15, Ferrous Cranus wrote:
>>> X-AntiAbuse: This header was added to track abuse, please include
>>> it with any abuse report X-AntiAbuse: Primary Hostname -
>>> my.superhost.gr
>>> X-AntiAbuse: Original Domain - superhost.gr
>>> X-AntiAbuse: Originator/Caller UID/GID - [500 501] / [47 12]
>>> X-AntiAbuse: Sender Address Domain - mail.org
>>> X-Get-Message-Sender-Via: my.superhost.gr: authenticated_id:
>>> nikos/only user confirmed/virtual account not confirmed
> 
> For starters, does my MTA add them as additional headers to my mail
> or Google adds them by default ?

Given that there are headers in there that know about your UID/GID, it
has to be a locally-running process that adds them.  No remote server
(even as powerful as Gmail is) should/can know this legitimately
without being told.  Thus, it's clearly your local MTA.

> But i wish to try it, is there a way to try to remove them?

You could manage your own SMTP connection.  If only Python had some
built in library that handled SMTP, that would be great!  Then you
would be able to instantiate some SMTP object, connect to another
server, optionally authenticating, then send mail, and close the
connection.  That would be so awesome! :-D

-tkc


[toc] | [prev] | [next] | [standalone]


#54264

Fromfeedthetroll@gmx.de
Date2013-09-16 23:15 -0700
Message-ID<d4a5b757-83c6-4bc5-bff3-4217074b29e3@googlegroups.com>
In reply to#54261
Am Dienstag, 17. September 2013 03:40:06 UTC+2 schrieb Tim Chase:
> On 2013-09-17 00:15, Ferrous Cranus wrote:
>...
>> But i wish to try it, is there a way to try to remove them?
> 
> You could manage your own SMTP connection.  If only Python had some
> built in library that handled SMTP, that would be great!  Then you
> would be able to instantiate some SMTP object, connect to another
> server, optionally authenticating, then send mail, and close the
> connection.  That would be so awesome! :-D
Cool idea! But bad, bad GMail won't let me fake the FROM-Header. Bad, bad GMail. WHINE! ;-)
(Hey, we reached the start of the thread. Infinite loops are sooooooo cool ;-) )

> ... 

[toc] | [prev] | [next] | [standalone]


#54220

FromHeiko Wundram <modelnine@modelnine.org>
Date2013-09-16 13:32 +0200
Message-ID<mailman.24.1379331724.18130.python-list@python.org>
In reply to#54218
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am 16.09.2013 13:21, schrieb Denis McMahon:
> If he's trying to prove communication works, he might be better off
> using a message subject of "test" and a message body of "this is a
> test message".

Generally, he might be best off if he didn't use os.system() with
string-interpolated (without escaping or any such) and user-specified
(!) parameters to send out the mail using mailx though a sub-shell.

This begs of using his mailer script for code injection as his
web-server user, and I'm amazed that nobody has commented on that so far.

- -- 
- --- Heiko.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.20 (MingW32)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJSNuxTAAoJEDMqpHf921/Sd8IH/2BcapK/dNqbs/PDz3LZLiUS
JYYmNaWSjui7KYJsA/A8R3XVaM0eyHkYI8dr8Jx6hPdPJyeE27MCKddF3GlYs17Z
iO1AydR2J8kYjXgVLrCWtfH3taB6ryUko6sOe1j/u0hYbQOATxuBPvxTVK4Wmi85
1m8unw9NvlTelAREg6WLudqpE9i115dns87+FTNcgNd3ieppJw+Cv2Mp6z3Yn3he
y0W9yMqH1LV4oW/6arZVVIcaWDHCb1I0L++aC8JLnOHYz1osf+34BbHHBcY6Qkty
reon+sWKwrlJ56o8Zi1Lx97ymxXxuvUtJS/5WGpRh/XLWYVBGCX3XA42DKqscQk=
=xENG
-----END PGP SIGNATURE-----

[toc] | [prev] | [standalone]


Page 4 of 4 — ← Prev page 1 2 3 [4]

Back to top | Article view | comp.lang.python


csiph-web