top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How to send an anonymous mail via Python script?

+1 vote
936 views
How to send an anonymous mail via Python script?
posted Sep 21, 2013 by Sanketi Garg

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

2 Answers

+1 vote

The nearest you could come to anonymous mail would be sending via a botnet (to hide your IP address) and forging the from address. So unless you *want* your mail to be flagged as spam and detested by the entire world, NO THERE IS NO WAY to send it anonymously.

answer Sep 21, 2013 by Garima Jain
How about an anonymous remailer then?
+1 vote

The internet can't be built on certainties, so it's built on trust. Especially with the detection of spam, it's mainly a matter of trust - trusting the sending computer, trusting the sending domain, and trusting that the email in question really was sent by that domain.
Most anti-spam measures are aimed at one of those - for instance, SPF is all about demonstrating that the sending computer belongs to the sending domain, and DKIM is about matching the contents of the email
to its domain. The receiving MTA has to decide: Do I trust this sender enough to accept this email, or will I reject it? As an example, my own mail server checks a lot of things, including:
* How well the sender complies with the SMTP specification (if you can't get protocol right, I don't want to talk to you; if you deliberately violate protocol to try to conceal yourself, I definitely don't want to talk to you)
* Whether the hostname and IP address match
* Whether the reverse DNS for the IP address has four numbers in it (a common indication of home senders - c122-107-147-136.eburwd5.vic.optusnet.com.au looks like a home user); this doesn't prevent mail delivery, but it's marked down
* The SPF record for the sending domain, if it has one
* Certain source or destination addresses that have been blacklisted
* Bayesian similarity to emails previously marked as spam
* A few other details that I won't discuss in public, so you can't game the system and send me a pile of spam :)

Some of these checks are "below the waterline" requirements - for instance, if you don't say HELO or EHLO at the beginning of your SMTP request, I'm not going to accept any mail from you. Others are "above the waterline" - I'll still take the mail, but it's more likely to go in the junk folder, because I don't trust you that much.

Violating the internet's standards will often mean your mail gets rejected. There's a reason for that; trying to hide is usually a bad idea. Be honest; establish a domain and a (small) set of IP addresses that send its mail, and you can build up a record of trust ("Every message I've ever seen from foo.example.com (IP address 203.0.113.54 as per its SPF record) has been accepted by my users as legitimate, so I'm going to assume that this one, from the same domain and IP, is legit"). It's not even all that hard to do - just deploy one of the well-known mail servers like exim or Postfix, set up an SPF record (not actually necessary, but it's so easy and can help so much that I think everyone should do it), and let the rest take care of itself.

answer Sep 21, 2013 by Amit Parthsarthi
Similar Questions
0 votes

I have a dilemma I cant figure out how to send multiple files as an attachment to my email using python script. I can only send a single file attachment .

+2 votes

How we can send mail with attachment in Python? Is it any prerequisite for it?

0 votes

When no MTA is installed, How to send an email with a cronjob? I have below entry in my cronjob? My /etc/cron.d/backup file looks like this.

MAILTO=myemail@example.com
15 11 * * * root /root/scripts/backup.sh

Can I send this email via SMTP server?

+3 votes

I need disable using of any mail command from my hosting, so I'm not sure if is sufficiently put "mail" to disable_functions in php.ini:

disable_functions = mail

I want force obligatorily use of smtp authentication, Is it enough disable "mail"? or do I need add other command to disable_functions?

i.e.: using joomla I see: phpmail and sendmail

...