Code:
# =================================================================================================================
# if html form is submitted then send user mail
# =================================================================================================================
def random_char( y, chars=string.ascii_uppercase + string.digits ):
return ''.join( random.choice(chars) for x in range(y) )
for times in range(0, 5):
try:
# prepare mail data
FROM = random_char(8) + '@' + 'mail' + '.org'
TO = "nkouras@ath.fothnet.gr"
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() ) )
else:
print( '''<h2><font color=red>Δεν επιτρέπεται η χρήση του script από μη εξουσιοδοτημένα πρόσωπα!''' )
Even if now i have stopped using Google's SMTP Server as a means for
sending out mails and i have decided to use my local MTA instead, at the
very moment Google's POP servers receive the mail they still add a
RECEIVE header revealing the hostname of the server that initiated the
contact. Correct?
But even so, if we alter for example the hostname of our server to a
different name then wouldn't Google use that to identify the server thus
protecting the real identity(hostname that is) of the server that
initiated the connection?
In any case is ee this in my mail headers when i try to send mailQ
Code:
Received: from nikos by my.superhost.gr with local (Exim 4.80.1)
(envelope-from <I6ZKG6D5@mail.org>)
id 1VLam4-0004nG-TJ
I wish this not to be displayed.