How to send an email to myself on the same local machine (tcp port 25)

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












Does anyone know how to sent email to myself?

I am trying to generate TCP traffic on port 25.










share|improve this question



















  • 2




    Do you just want the email, or do you want to test an SMTP server on your machine?
    – Keith
    Jan 21 '13 at 1:54










  • You open up your favorite email program, fire up a new message editing window, put your email address in the "to"-field and you're good to go. Assuming your email program is configured correctly that will generate traffic on port 25 at least once on at least one host which goes beyond TCP connection requests. I think you need to put more effort into asking your question because the simple answer is "yes".
    – Bananguin
    Jan 22 '13 at 13:24















up vote
0
down vote

favorite












Does anyone know how to sent email to myself?

I am trying to generate TCP traffic on port 25.










share|improve this question



















  • 2




    Do you just want the email, or do you want to test an SMTP server on your machine?
    – Keith
    Jan 21 '13 at 1:54










  • You open up your favorite email program, fire up a new message editing window, put your email address in the "to"-field and you're good to go. Assuming your email program is configured correctly that will generate traffic on port 25 at least once on at least one host which goes beyond TCP connection requests. I think you need to put more effort into asking your question because the simple answer is "yes".
    – Bananguin
    Jan 22 '13 at 13:24













up vote
0
down vote

favorite









up vote
0
down vote

favorite











Does anyone know how to sent email to myself?

I am trying to generate TCP traffic on port 25.










share|improve this question















Does anyone know how to sent email to myself?

I am trying to generate TCP traffic on port 25.







email tcp traffic






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 21 '13 at 8:54









manatwork

21.1k38284




21.1k38284










asked Jan 21 '13 at 1:13









Alex

310149




310149







  • 2




    Do you just want the email, or do you want to test an SMTP server on your machine?
    – Keith
    Jan 21 '13 at 1:54










  • You open up your favorite email program, fire up a new message editing window, put your email address in the "to"-field and you're good to go. Assuming your email program is configured correctly that will generate traffic on port 25 at least once on at least one host which goes beyond TCP connection requests. I think you need to put more effort into asking your question because the simple answer is "yes".
    – Bananguin
    Jan 22 '13 at 13:24













  • 2




    Do you just want the email, or do you want to test an SMTP server on your machine?
    – Keith
    Jan 21 '13 at 1:54










  • You open up your favorite email program, fire up a new message editing window, put your email address in the "to"-field and you're good to go. Assuming your email program is configured correctly that will generate traffic on port 25 at least once on at least one host which goes beyond TCP connection requests. I think you need to put more effort into asking your question because the simple answer is "yes".
    – Bananguin
    Jan 22 '13 at 13:24








2




2




Do you just want the email, or do you want to test an SMTP server on your machine?
– Keith
Jan 21 '13 at 1:54




Do you just want the email, or do you want to test an SMTP server on your machine?
– Keith
Jan 21 '13 at 1:54












You open up your favorite email program, fire up a new message editing window, put your email address in the "to"-field and you're good to go. Assuming your email program is configured correctly that will generate traffic on port 25 at least once on at least one host which goes beyond TCP connection requests. I think you need to put more effort into asking your question because the simple answer is "yes".
– Bananguin
Jan 22 '13 at 13:24





You open up your favorite email program, fire up a new message editing window, put your email address in the "to"-field and you're good to go. Assuming your email program is configured correctly that will generate traffic on port 25 at least once on at least one host which goes beyond TCP connection requests. I think you need to put more effort into asking your question because the simple answer is "yes".
– Bananguin
Jan 22 '13 at 13:24











3 Answers
3






active

oldest

votes

















up vote
1
down vote













Do you need to test if an smtp server works or to send some email by a shell script?




SWAKS - Swiss Army Knife for SMTP



Swaks is a featureful, flexible, scriptable, transaction-oriented 
SMTP test tool written and maintained by John Jetmore. Features include:
* SMTP extensions including TLS, authentication, and pipelining
* Protocols including SMTP, ESMTP, and LMTP
* Transports including unix-domain sockets, internet-domain sockets
(IPv4 and IPv6), and pipes to spawned processes
* Completely scriptable configuration, with option specification
via environment variables, configuration files, and command line





share|improve this answer



























    up vote
    1
    down vote













    telnet (to test out smtp protocol)



    If you are trying to send email to yourself on the email server



    telnet localhost 25


    In this case you properly do not need to worry about correct HELO or login stuff, as email server generally will accept anything from localhost.



    If you are trying to send email to yourself to an email server



    telnet <email-server> 25


    In this case depends on the configuration, the email server may reject your email if your box is not an email server(no mx record or spf record, etc).



    Then follow this Tutorial link






    share|improve this answer






















    • Instead of telnet, you can also use netcat.
      – jofel
      Jan 21 '13 at 9:11










    • @jofel True, it is almost identical in this usage.
      – John Siu
      Jan 21 '13 at 21:27










    • yet you are not sending an email to anybody and calling an established TCP connection "generating traffic on port 25" is a little optimistic as well :-)
      – Bananguin
      Jan 22 '13 at 13:26










    • @user1129682 I included the tutorial link for it.
      – John Siu
      Jan 22 '13 at 17:39

















    up vote
    0
    down vote













    # echo "This is message body" | mail -s "This is subject" you@domain.com


    Or



    # mail -s "My Subject" you@yourdomain.com < msg.txt





    share|improve this answer




















    • Originally I included this in my answer. However, after verifying the mail.log, the mail command seems to call mail queue directly, which bypass TCP/IP.
      – John Siu
      Jan 24 '13 at 2:20










    • That's good to know. Hope that helps someone too. Thank you.
      – Mardanian
      Jan 24 '13 at 15:31










    Your Answer







    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "106"
    ;
    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',
    convertImagesToLinks: false,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













     

    draft saved


    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f61952%2fhow-to-send-an-email-to-myself-on-the-same-local-machine-tcp-port-25%23new-answer', 'question_page');

    );

    Post as a guest






























    3 Answers
    3






    active

    oldest

    votes








    3 Answers
    3






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    1
    down vote













    Do you need to test if an smtp server works or to send some email by a shell script?




    SWAKS - Swiss Army Knife for SMTP



    Swaks is a featureful, flexible, scriptable, transaction-oriented 
    SMTP test tool written and maintained by John Jetmore. Features include:
    * SMTP extensions including TLS, authentication, and pipelining
    * Protocols including SMTP, ESMTP, and LMTP
    * Transports including unix-domain sockets, internet-domain sockets
    (IPv4 and IPv6), and pipes to spawned processes
    * Completely scriptable configuration, with option specification
    via environment variables, configuration files, and command line





    share|improve this answer
























      up vote
      1
      down vote













      Do you need to test if an smtp server works or to send some email by a shell script?




      SWAKS - Swiss Army Knife for SMTP



      Swaks is a featureful, flexible, scriptable, transaction-oriented 
      SMTP test tool written and maintained by John Jetmore. Features include:
      * SMTP extensions including TLS, authentication, and pipelining
      * Protocols including SMTP, ESMTP, and LMTP
      * Transports including unix-domain sockets, internet-domain sockets
      (IPv4 and IPv6), and pipes to spawned processes
      * Completely scriptable configuration, with option specification
      via environment variables, configuration files, and command line





      share|improve this answer






















        up vote
        1
        down vote










        up vote
        1
        down vote









        Do you need to test if an smtp server works or to send some email by a shell script?




        SWAKS - Swiss Army Knife for SMTP



        Swaks is a featureful, flexible, scriptable, transaction-oriented 
        SMTP test tool written and maintained by John Jetmore. Features include:
        * SMTP extensions including TLS, authentication, and pipelining
        * Protocols including SMTP, ESMTP, and LMTP
        * Transports including unix-domain sockets, internet-domain sockets
        (IPv4 and IPv6), and pipes to spawned processes
        * Completely scriptable configuration, with option specification
        via environment variables, configuration files, and command line





        share|improve this answer












        Do you need to test if an smtp server works or to send some email by a shell script?




        SWAKS - Swiss Army Knife for SMTP



        Swaks is a featureful, flexible, scriptable, transaction-oriented 
        SMTP test tool written and maintained by John Jetmore. Features include:
        * SMTP extensions including TLS, authentication, and pipelining
        * Protocols including SMTP, ESMTP, and LMTP
        * Transports including unix-domain sockets, internet-domain sockets
        (IPv4 and IPv6), and pipes to spawned processes
        * Completely scriptable configuration, with option specification
        via environment variables, configuration files, and command line






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jan 21 '13 at 8:52









        andcoz

        12.1k32938




        12.1k32938






















            up vote
            1
            down vote













            telnet (to test out smtp protocol)



            If you are trying to send email to yourself on the email server



            telnet localhost 25


            In this case you properly do not need to worry about correct HELO or login stuff, as email server generally will accept anything from localhost.



            If you are trying to send email to yourself to an email server



            telnet <email-server> 25


            In this case depends on the configuration, the email server may reject your email if your box is not an email server(no mx record or spf record, etc).



            Then follow this Tutorial link






            share|improve this answer






















            • Instead of telnet, you can also use netcat.
              – jofel
              Jan 21 '13 at 9:11










            • @jofel True, it is almost identical in this usage.
              – John Siu
              Jan 21 '13 at 21:27










            • yet you are not sending an email to anybody and calling an established TCP connection "generating traffic on port 25" is a little optimistic as well :-)
              – Bananguin
              Jan 22 '13 at 13:26










            • @user1129682 I included the tutorial link for it.
              – John Siu
              Jan 22 '13 at 17:39














            up vote
            1
            down vote













            telnet (to test out smtp protocol)



            If you are trying to send email to yourself on the email server



            telnet localhost 25


            In this case you properly do not need to worry about correct HELO or login stuff, as email server generally will accept anything from localhost.



            If you are trying to send email to yourself to an email server



            telnet <email-server> 25


            In this case depends on the configuration, the email server may reject your email if your box is not an email server(no mx record or spf record, etc).



            Then follow this Tutorial link






            share|improve this answer






















            • Instead of telnet, you can also use netcat.
              – jofel
              Jan 21 '13 at 9:11










            • @jofel True, it is almost identical in this usage.
              – John Siu
              Jan 21 '13 at 21:27










            • yet you are not sending an email to anybody and calling an established TCP connection "generating traffic on port 25" is a little optimistic as well :-)
              – Bananguin
              Jan 22 '13 at 13:26










            • @user1129682 I included the tutorial link for it.
              – John Siu
              Jan 22 '13 at 17:39












            up vote
            1
            down vote










            up vote
            1
            down vote









            telnet (to test out smtp protocol)



            If you are trying to send email to yourself on the email server



            telnet localhost 25


            In this case you properly do not need to worry about correct HELO or login stuff, as email server generally will accept anything from localhost.



            If you are trying to send email to yourself to an email server



            telnet <email-server> 25


            In this case depends on the configuration, the email server may reject your email if your box is not an email server(no mx record or spf record, etc).



            Then follow this Tutorial link






            share|improve this answer














            telnet (to test out smtp protocol)



            If you are trying to send email to yourself on the email server



            telnet localhost 25


            In this case you properly do not need to worry about correct HELO or login stuff, as email server generally will accept anything from localhost.



            If you are trying to send email to yourself to an email server



            telnet <email-server> 25


            In this case depends on the configuration, the email server may reject your email if your box is not an email server(no mx record or spf record, etc).



            Then follow this Tutorial link







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Jan 22 '13 at 17:39

























            answered Jan 21 '13 at 3:09









            John Siu

            3,33011517




            3,33011517











            • Instead of telnet, you can also use netcat.
              – jofel
              Jan 21 '13 at 9:11










            • @jofel True, it is almost identical in this usage.
              – John Siu
              Jan 21 '13 at 21:27










            • yet you are not sending an email to anybody and calling an established TCP connection "generating traffic on port 25" is a little optimistic as well :-)
              – Bananguin
              Jan 22 '13 at 13:26










            • @user1129682 I included the tutorial link for it.
              – John Siu
              Jan 22 '13 at 17:39
















            • Instead of telnet, you can also use netcat.
              – jofel
              Jan 21 '13 at 9:11










            • @jofel True, it is almost identical in this usage.
              – John Siu
              Jan 21 '13 at 21:27










            • yet you are not sending an email to anybody and calling an established TCP connection "generating traffic on port 25" is a little optimistic as well :-)
              – Bananguin
              Jan 22 '13 at 13:26










            • @user1129682 I included the tutorial link for it.
              – John Siu
              Jan 22 '13 at 17:39















            Instead of telnet, you can also use netcat.
            – jofel
            Jan 21 '13 at 9:11




            Instead of telnet, you can also use netcat.
            – jofel
            Jan 21 '13 at 9:11












            @jofel True, it is almost identical in this usage.
            – John Siu
            Jan 21 '13 at 21:27




            @jofel True, it is almost identical in this usage.
            – John Siu
            Jan 21 '13 at 21:27












            yet you are not sending an email to anybody and calling an established TCP connection "generating traffic on port 25" is a little optimistic as well :-)
            – Bananguin
            Jan 22 '13 at 13:26




            yet you are not sending an email to anybody and calling an established TCP connection "generating traffic on port 25" is a little optimistic as well :-)
            – Bananguin
            Jan 22 '13 at 13:26












            @user1129682 I included the tutorial link for it.
            – John Siu
            Jan 22 '13 at 17:39




            @user1129682 I included the tutorial link for it.
            – John Siu
            Jan 22 '13 at 17:39










            up vote
            0
            down vote













            # echo "This is message body" | mail -s "This is subject" you@domain.com


            Or



            # mail -s "My Subject" you@yourdomain.com < msg.txt





            share|improve this answer




















            • Originally I included this in my answer. However, after verifying the mail.log, the mail command seems to call mail queue directly, which bypass TCP/IP.
              – John Siu
              Jan 24 '13 at 2:20










            • That's good to know. Hope that helps someone too. Thank you.
              – Mardanian
              Jan 24 '13 at 15:31














            up vote
            0
            down vote













            # echo "This is message body" | mail -s "This is subject" you@domain.com


            Or



            # mail -s "My Subject" you@yourdomain.com < msg.txt





            share|improve this answer




















            • Originally I included this in my answer. However, after verifying the mail.log, the mail command seems to call mail queue directly, which bypass TCP/IP.
              – John Siu
              Jan 24 '13 at 2:20










            • That's good to know. Hope that helps someone too. Thank you.
              – Mardanian
              Jan 24 '13 at 15:31












            up vote
            0
            down vote










            up vote
            0
            down vote









            # echo "This is message body" | mail -s "This is subject" you@domain.com


            Or



            # mail -s "My Subject" you@yourdomain.com < msg.txt





            share|improve this answer












            # echo "This is message body" | mail -s "This is subject" you@domain.com


            Or



            # mail -s "My Subject" you@yourdomain.com < msg.txt






            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Jan 22 '13 at 17:49









            Mardanian

            1613




            1613











            • Originally I included this in my answer. However, after verifying the mail.log, the mail command seems to call mail queue directly, which bypass TCP/IP.
              – John Siu
              Jan 24 '13 at 2:20










            • That's good to know. Hope that helps someone too. Thank you.
              – Mardanian
              Jan 24 '13 at 15:31
















            • Originally I included this in my answer. However, after verifying the mail.log, the mail command seems to call mail queue directly, which bypass TCP/IP.
              – John Siu
              Jan 24 '13 at 2:20










            • That's good to know. Hope that helps someone too. Thank you.
              – Mardanian
              Jan 24 '13 at 15:31















            Originally I included this in my answer. However, after verifying the mail.log, the mail command seems to call mail queue directly, which bypass TCP/IP.
            – John Siu
            Jan 24 '13 at 2:20




            Originally I included this in my answer. However, after verifying the mail.log, the mail command seems to call mail queue directly, which bypass TCP/IP.
            – John Siu
            Jan 24 '13 at 2:20












            That's good to know. Hope that helps someone too. Thank you.
            – Mardanian
            Jan 24 '13 at 15:31




            That's good to know. Hope that helps someone too. Thank you.
            – Mardanian
            Jan 24 '13 at 15:31

















             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f61952%2fhow-to-send-an-email-to-myself-on-the-same-local-machine-tcp-port-25%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            How to check contact read email or not when send email to Individual?

            Displaying single band from multi-band raster using QGIS

            How many registers does an x86_64 CPU actually have?