Setup a local testing SMTP server












16














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



























    16














    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

























      16












      16








      16


      5





      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













      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?







      smtp






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Sep 13 '10 at 17:04









      Dmitriy Likhten

      69961129




      69961129






















          1 Answer
          1






          active

          oldest

          votes


















          26














          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








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "89"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f4118%2fsetup-a-local-testing-smtp-server%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          26














          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
















          26














          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














          26












          26








          26






          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












          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












          share|improve this answer



          share|improve this answer










          answered Sep 13 '10 at 18:26









          Jacob Peddicord

          3,33911722




          3,33911722












          • 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


















          • 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
















          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




          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


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Ask Ubuntu!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f4118%2fsetup-a-local-testing-smtp-server%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Category:香港粉麵

          List *all* the tuples!

          Channel [V]