Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I need to set up an SMTP server, really the goal is so that this server has no communication with the outside world, I would create the server, and would want a mail client looking at messages the server generates (brownie points if all messages go into the same inbox). This is basically to test out my mail system and see how it looks on different clients, while at the same time not actually sending emails to people.

Any advice, any known systems that do this?

share|improve this question

1 Answer 1

up vote 14 down vote accepted

There are two solutions off the top of my head:

The first is to install postfix and accept the default configuration. Any mail sent to username@server (or just a username if it's all on one server) would be delivered to that specific user. It's fairly easy to get going and can be expanded to a full mail system in the future without much pain.

The second solution, which I leaned of in the Django documentation, is to run:

python -m smtpd -n -c DebuggingServer localhost:25

You may need to run this as root to claim the port. Any mail that is sent to your server will appear on the terminal as long as you have this running. It's great for testing out mail in different applications.

share|improve this answer
    
Wonderful!!! I do need to test this out in a mail application though. As in how will this email render in thunderbird/ms outlook/gmail. –  Dmitriy Likhten Sep 24 '10 at 17:56

Your Answer

 
discard

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.