Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!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.013 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'subsequent': 0.05; '21,': 0.07; 'modify': 0.07; 'conf': 0.09; 'subject:script': 0.09; 'subject:using': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; 'configuring': 0.16; 'headers,': 0.16; 'headers.': 0.16; 'hostname': 0.16; 'possible?': 0.16; 'received:mac.com': 0.16; 'subject:send': 0.16; 'through.': 0.16; 'underlying': 0.16; 'subject:python': 0.16; 'wrote:': 0.18; 'received:10.0.1': 0.19; '>>>': 0.22; 'cc:addr:python.org': 0.22; 'cc:2**1': 0.23; 'adds': 0.24; 'headers': 0.24; 'passes': 0.24; 'cc:no real name:2**0': 0.24; 'least': 0.26; 'host': 0.29; 'am,': 0.29; 'url:mailman': 0.30; 'work.': 0.31; 'flags': 0.31; 'please.': 0.31; 'sep': 0.31; 'url:python': 0.33; 'subject:the': 0.34; "can't": 0.35; 'agree': 0.35; 'but': 0.35; 'add': 0.35; 'there': 0.35; 'done': 0.36; 'url:listinfo': 0.36; 'received:10.0': 0.36; 'url:org': 0.36; 'received:10': 0.37; 'filter': 0.38; 'received:17': 0.38; 'url:mail': 0.40; 'even': 0.60; 'eventually': 0.60; 'hardware': 0.61; 'real': 0.63; 'confirm': 0.64; 'our': 0.64; 'spam.': 0.64; 'more': 0.64; 'to:addr:gmail.com': 0.65; 'foreign': 0.74; 'address,': 0.75; "can't...": 0.84; 'header:In-reply-to:1': 0.84; 'subject:via': 0.84; '2013,': 0.91; '2013': 0.98 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.10.8794,1.0.431,0.0.0000 definitions=2013-09-21_01:2013-09-20,2013-09-21,1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 suspectscore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=7.0.1-1308280000 definitions=main-1309210068 Content-type: text/plain; charset=utf-8 MIME-version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Subject: Re: Tryign to send mail via a python script by using the local MTA From: William Ray Wing In-reply-to: Date: Sat, 21 Sep 2013 09:29:26 -0400 Content-transfer-encoding: quoted-printable References: <52379718$0$29988$c3e8da3$5496439d@news.astraweb.com> To: =?utf-8?B?zp3Or866zr/Pgg==?= X-Mailer: Apple Mail (2.1508) Cc: python-list@python.org, William Ray Wing 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: 39 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1379770176 news.xs4all.nl 15933 [2001:888:2000:d::a6]:60570 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:54555 On Sep 21, 2013, at 5:21 AM, =CE=9D=CE=AF=CE=BA=CE=BF=CF=82 = wrote: > On 18/9/2013 2:29 =CF=80=CE=BC, Dennis Lee Bieber wrote: >> On Tue, 17 Sep 2013 18:17:43 +0300, Ferrous Cranus = >> declaimed the following: >>=20 >>> So cant this be done in python or not? >>> or is a mtetr of configuring the MTA? conf file? >>=20 >> You can't... Those headers get added by the ISP and any other = host the >> mail passes through. >>=20 >> 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. >>=20 > =CE=A5es Denis every foreign MTA adds headers as mail passes over it ( = as proved to be done at least from the gmail's smtp) >=20 > 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. >=20 > =CE=99sn't this possible? that is to fake our hostname and ip address? > --=20 > https://mail.python.org/mailman/listinfo/python-list =CE=9D=CE=AF=CE=BA=CE=BF=CF=82 , 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=