This question already has an answer here:

I am doing a test where we want to asses whether an email with a benign virus in it, exits a network.

I need a means to receive the test emails I am sending from inside the network, without any antivirus or spam filters, and I need to receive them outside the network.

The problem is that all the online email services I have access to have anti virus protection, and will delete any messages sent from the network containing viruses before they reach my inbox. This makes it impossible to assess whether the emails where sent and received, and what viruses they contained.

Do you know of any email solutions (preferably online) without antivirus, or where I can turn it off?

I ended up setting up my own mail service on a server using pythons smtpd module and configuring mx records to point to my new service.

This solution is cumbersome to me and if you have an easier one, then please let me know.

marked as duplicate by Rory Alsop Nov 25 '15 at 15:32

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • You should first search the question before asking one, please see if this helps. security.stackexchange.com/questions/15327/… – Krishna Pandey Nov 25 '15 at 13:08
  • I'm not sure of the question - if none of the e-mail you have access to can send a virus, doesn't this answer your question..? And if you're using an external online e-mail solution, doesn't it by definition live outside of the network? – lorenzog Nov 25 '15 at 13:20
  • @K.P. - so my problem is the opposite of your link. I need to check if it exits the network, making it outbound, not inbound. – tsett Nov 25 '15 at 14:19
  • @lorenzog - sorry if my question wasn't clear. Yes, online email services live outside the network, but their antivirus filters my messages without my control, and without alerting me, thus making it impossible to assess whether some email that might or might not have gotten filtered, contained a virus. – tsett Nov 25 '15 at 14:21
  • Did you even read the question in the link which I sent? It says "Does anybody know about MTA that doesn't check for viruses in outbound emails? I can create MTA for test purposes but using existing one is easier" – Krishna Pandey Nov 25 '15 at 15:16

What about a minimal UNIX VM somewhere on your network (e.g. an Ubuntu live on your workstation) and then use the mail command?

You might want to configure a basic mail transfer agent to correctly queue mail to your SMTP server. Ubuntu uses Postfix, but there are many more such as Qmail and if you're brave, Sendmail.

Configuring a mail server is not an easy task and it might break your company policy. Make sure you're not doing anything contrary to your company's policies here.

Your solution with Python is also a good one.

And for a very, very basic solution there's also telnet.

Not the answer you're looking for? Browse other questions tagged or ask your own question.