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

William Ray Wing wrw at mac.com
Sat Sep 21 09:29:26 EDT 2013


On Sep 21, 2013, at 5:21 AM, Νίκος <nikos.gr33k at gmail.com> wrote:

> On 18/9/2013 2:29 πμ, Dennis Lee Bieber wrote:
>> On Tue, 17 Sep 2013 18:17:43 +0300, Ferrous Cranus <nikos.gr33k at gmail.com>
>> declaimed the following:
>> 
>>> So cant this be done in python or not?
>>> or is a mtetr of configuring the MTA? conf file?
>> 
>> 	You can't... Those headers get added by the ISP and any other host the
>> mail passes through.
>> 
>> 	The more you fake the originator IP/user the more the subsequent
>> servers will add flags that they can't confirm who sent the mail... And
>> eventually some filter may drop it as spam.
>> 
> Υes Denis every foreign MTA adds headers as mail passes over it ( as proved to be done at least from the gmail's smtp)
> 
> But if we set up our local MTA to modify the headers, hostname, ip address, user) to our own likign then the local MTA will connect to the foreign MTA and passes it out modifed data , not the real one.
> 
> Ιsn't this possible? that is to fake our hostname and ip address?
> -- 
> https://mail.python.org/mailman/listinfo/python-list

Νίκος ,
  You CLEARLY don't understand.  Please.  There are Mail headers and there are IP packet network headers.  They have to agree with each other or spam/malware alarms go off.  Even if you fake the mail headers, there is no way you can use fake IP packet headers, they are necessary for the underlying network hardware to work.

-Bill


More information about the Python-list mailing list