Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm guessing that this isn't really a problem, but new to running an email server so want to check.

If email goes through my email server (running hMailServer), and it has a virus, it can't just cause it's self to be executed, or be executed by some other process on the server can it? It would need to be launched by something, which shouldn't happen. The attachments look to be stored in .eml files as a byte string so aren't in a form in which they can be executed.


share|improve this question
up vote 2 down vote accepted


Think of it as paper mail. If a blackmailer sends an extortion letter (the virus) then the post office itself is safe. it merely handles the closed letter.

share|improve this answer
MOSTLY true. If an exploit in the mail server is used, the comparison of serious poison or a strong magnet in the letter becomes more fitting - the closed envelope will still be stuck to the nearest metal object or a dead mailman. Such vulnerabilities if they exist are VERY likely though to become very well known in the geek media - you won't read that on cert, you will read it on slashdot and heise if it concerns a well known mail server software. – rackandboneman Jun 12 '12 at 18:10

Unless there is some very serious bug in your mail server, or any attached mail anti-spam, anti-virus scanners, then your mail server is safe.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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