Sending mail without any account

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












0















I want to send e-mails from my Raspberry Pi. I saw many methods but they are using an existing e-mail account (Gmail for example), I don't want to do this. I want to send my mail just knowing the receiver e-mail address.
Gmail can do this so I believe I can, I just couldn't find any proper explanation of what I need.



Thanks,










share|improve this question


























    0















    I want to send e-mails from my Raspberry Pi. I saw many methods but they are using an existing e-mail account (Gmail for example), I don't want to do this. I want to send my mail just knowing the receiver e-mail address.
    Gmail can do this so I believe I can, I just couldn't find any proper explanation of what I need.



    Thanks,










    share|improve this question
























      0












      0








      0








      I want to send e-mails from my Raspberry Pi. I saw many methods but they are using an existing e-mail account (Gmail for example), I don't want to do this. I want to send my mail just knowing the receiver e-mail address.
      Gmail can do this so I believe I can, I just couldn't find any proper explanation of what I need.



      Thanks,










      share|improve this question














      I want to send e-mails from my Raspberry Pi. I saw many methods but they are using an existing e-mail account (Gmail for example), I don't want to do this. I want to send my mail just knowing the receiver e-mail address.
      Gmail can do this so I believe I can, I just couldn't find any proper explanation of what I need.



      Thanks,







      linux email raspberry-pi






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 13 '17 at 10:57









      Enis Turgut YalçınkayaEnis Turgut Yalçınkaya

      11




      11




















          1 Answer
          1






          active

          oldest

          votes


















          0














          You either need to have an own domain (www.somedomain.net) with an smtp server or you need to use freemailers like gmail, yahoo, etc. to send mails via smtp.



          If this wouldn't be the case, we'd have to deal with much more SPAM mails.



          A simple tool to send mail is swaks (install with apt-get install swaks)




          Swiss Army Knife SMTP, the all-purpose smtp transaction tester




          Here is an (untested) example that might work with gmail (unless you've enabled two factor authentication), or with any other smtp server.



           echo "Hello world" | swaks -4 --server smtp.gmail.com:587 --from user@gmail.com 
          --to user@example.net -tls --tls-protocol sslv3 --auth PLAIN --auth-user user@gmail.com
          --auth-password my_secret_password --h-Subject "Test message" --body -





          share|improve this answer


















          • 1





            Historical remark: In the mid-90ies I've accidently become sysadmin. Back then it was still common that everybody could send e-mails from their command lines without creating any user accounts. Our HP-UX boxes were configured with sendmail to relay anything until someone found them to serve as spam relays and our machines got blacklisted. I tried to port sendmail 8 (first version with authentication) to HP-UX (which didn't succeed) and finally switched to qmail.

            – Philippos
            Mar 13 '17 at 13:03






          • 1





            (continued...) It was hard work to get our mail server from the blacklists. Since those days you can theoretical still send e-mails directly from your machine, but you won't find many recipient servers that will accept those e-mails.

            – Philippos
            Mar 13 '17 at 13:04











          • Can I run smtp server on Raspberry Pi (without any static ip or something) and use something like swaks --server localhost:587 ?

            – Enis Turgut Yalçınkaya
            Mar 14 '17 at 10:36






          • 1





            You surly can install a MTA like postfix and send mails with the mail command. But the emails would be rejected.

            – Michael D.
            Mar 14 '17 at 11:01










          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',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          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%2funix.stackexchange.com%2fquestions%2f351090%2fsending-mail-without-any-account%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









          0














          You either need to have an own domain (www.somedomain.net) with an smtp server or you need to use freemailers like gmail, yahoo, etc. to send mails via smtp.



          If this wouldn't be the case, we'd have to deal with much more SPAM mails.



          A simple tool to send mail is swaks (install with apt-get install swaks)




          Swiss Army Knife SMTP, the all-purpose smtp transaction tester




          Here is an (untested) example that might work with gmail (unless you've enabled two factor authentication), or with any other smtp server.



           echo "Hello world" | swaks -4 --server smtp.gmail.com:587 --from user@gmail.com 
          --to user@example.net -tls --tls-protocol sslv3 --auth PLAIN --auth-user user@gmail.com
          --auth-password my_secret_password --h-Subject "Test message" --body -





          share|improve this answer


















          • 1





            Historical remark: In the mid-90ies I've accidently become sysadmin. Back then it was still common that everybody could send e-mails from their command lines without creating any user accounts. Our HP-UX boxes were configured with sendmail to relay anything until someone found them to serve as spam relays and our machines got blacklisted. I tried to port sendmail 8 (first version with authentication) to HP-UX (which didn't succeed) and finally switched to qmail.

            – Philippos
            Mar 13 '17 at 13:03






          • 1





            (continued...) It was hard work to get our mail server from the blacklists. Since those days you can theoretical still send e-mails directly from your machine, but you won't find many recipient servers that will accept those e-mails.

            – Philippos
            Mar 13 '17 at 13:04











          • Can I run smtp server on Raspberry Pi (without any static ip or something) and use something like swaks --server localhost:587 ?

            – Enis Turgut Yalçınkaya
            Mar 14 '17 at 10:36






          • 1





            You surly can install a MTA like postfix and send mails with the mail command. But the emails would be rejected.

            – Michael D.
            Mar 14 '17 at 11:01















          0














          You either need to have an own domain (www.somedomain.net) with an smtp server or you need to use freemailers like gmail, yahoo, etc. to send mails via smtp.



          If this wouldn't be the case, we'd have to deal with much more SPAM mails.



          A simple tool to send mail is swaks (install with apt-get install swaks)




          Swiss Army Knife SMTP, the all-purpose smtp transaction tester




          Here is an (untested) example that might work with gmail (unless you've enabled two factor authentication), or with any other smtp server.



           echo "Hello world" | swaks -4 --server smtp.gmail.com:587 --from user@gmail.com 
          --to user@example.net -tls --tls-protocol sslv3 --auth PLAIN --auth-user user@gmail.com
          --auth-password my_secret_password --h-Subject "Test message" --body -





          share|improve this answer


















          • 1





            Historical remark: In the mid-90ies I've accidently become sysadmin. Back then it was still common that everybody could send e-mails from their command lines without creating any user accounts. Our HP-UX boxes were configured with sendmail to relay anything until someone found them to serve as spam relays and our machines got blacklisted. I tried to port sendmail 8 (first version with authentication) to HP-UX (which didn't succeed) and finally switched to qmail.

            – Philippos
            Mar 13 '17 at 13:03






          • 1





            (continued...) It was hard work to get our mail server from the blacklists. Since those days you can theoretical still send e-mails directly from your machine, but you won't find many recipient servers that will accept those e-mails.

            – Philippos
            Mar 13 '17 at 13:04











          • Can I run smtp server on Raspberry Pi (without any static ip or something) and use something like swaks --server localhost:587 ?

            – Enis Turgut Yalçınkaya
            Mar 14 '17 at 10:36






          • 1





            You surly can install a MTA like postfix and send mails with the mail command. But the emails would be rejected.

            – Michael D.
            Mar 14 '17 at 11:01













          0












          0








          0







          You either need to have an own domain (www.somedomain.net) with an smtp server or you need to use freemailers like gmail, yahoo, etc. to send mails via smtp.



          If this wouldn't be the case, we'd have to deal with much more SPAM mails.



          A simple tool to send mail is swaks (install with apt-get install swaks)




          Swiss Army Knife SMTP, the all-purpose smtp transaction tester




          Here is an (untested) example that might work with gmail (unless you've enabled two factor authentication), or with any other smtp server.



           echo "Hello world" | swaks -4 --server smtp.gmail.com:587 --from user@gmail.com 
          --to user@example.net -tls --tls-protocol sslv3 --auth PLAIN --auth-user user@gmail.com
          --auth-password my_secret_password --h-Subject "Test message" --body -





          share|improve this answer













          You either need to have an own domain (www.somedomain.net) with an smtp server or you need to use freemailers like gmail, yahoo, etc. to send mails via smtp.



          If this wouldn't be the case, we'd have to deal with much more SPAM mails.



          A simple tool to send mail is swaks (install with apt-get install swaks)




          Swiss Army Knife SMTP, the all-purpose smtp transaction tester




          Here is an (untested) example that might work with gmail (unless you've enabled two factor authentication), or with any other smtp server.



           echo "Hello world" | swaks -4 --server smtp.gmail.com:587 --from user@gmail.com 
          --to user@example.net -tls --tls-protocol sslv3 --auth PLAIN --auth-user user@gmail.com
          --auth-password my_secret_password --h-Subject "Test message" --body -






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Mar 13 '17 at 11:42









          Michael D.Michael D.

          1,662816




          1,662816







          • 1





            Historical remark: In the mid-90ies I've accidently become sysadmin. Back then it was still common that everybody could send e-mails from their command lines without creating any user accounts. Our HP-UX boxes were configured with sendmail to relay anything until someone found them to serve as spam relays and our machines got blacklisted. I tried to port sendmail 8 (first version with authentication) to HP-UX (which didn't succeed) and finally switched to qmail.

            – Philippos
            Mar 13 '17 at 13:03






          • 1





            (continued...) It was hard work to get our mail server from the blacklists. Since those days you can theoretical still send e-mails directly from your machine, but you won't find many recipient servers that will accept those e-mails.

            – Philippos
            Mar 13 '17 at 13:04











          • Can I run smtp server on Raspberry Pi (without any static ip or something) and use something like swaks --server localhost:587 ?

            – Enis Turgut Yalçınkaya
            Mar 14 '17 at 10:36






          • 1





            You surly can install a MTA like postfix and send mails with the mail command. But the emails would be rejected.

            – Michael D.
            Mar 14 '17 at 11:01












          • 1





            Historical remark: In the mid-90ies I've accidently become sysadmin. Back then it was still common that everybody could send e-mails from their command lines without creating any user accounts. Our HP-UX boxes were configured with sendmail to relay anything until someone found them to serve as spam relays and our machines got blacklisted. I tried to port sendmail 8 (first version with authentication) to HP-UX (which didn't succeed) and finally switched to qmail.

            – Philippos
            Mar 13 '17 at 13:03






          • 1





            (continued...) It was hard work to get our mail server from the blacklists. Since those days you can theoretical still send e-mails directly from your machine, but you won't find many recipient servers that will accept those e-mails.

            – Philippos
            Mar 13 '17 at 13:04











          • Can I run smtp server on Raspberry Pi (without any static ip or something) and use something like swaks --server localhost:587 ?

            – Enis Turgut Yalçınkaya
            Mar 14 '17 at 10:36






          • 1





            You surly can install a MTA like postfix and send mails with the mail command. But the emails would be rejected.

            – Michael D.
            Mar 14 '17 at 11:01







          1




          1





          Historical remark: In the mid-90ies I've accidently become sysadmin. Back then it was still common that everybody could send e-mails from their command lines without creating any user accounts. Our HP-UX boxes were configured with sendmail to relay anything until someone found them to serve as spam relays and our machines got blacklisted. I tried to port sendmail 8 (first version with authentication) to HP-UX (which didn't succeed) and finally switched to qmail.

          – Philippos
          Mar 13 '17 at 13:03





          Historical remark: In the mid-90ies I've accidently become sysadmin. Back then it was still common that everybody could send e-mails from their command lines without creating any user accounts. Our HP-UX boxes were configured with sendmail to relay anything until someone found them to serve as spam relays and our machines got blacklisted. I tried to port sendmail 8 (first version with authentication) to HP-UX (which didn't succeed) and finally switched to qmail.

          – Philippos
          Mar 13 '17 at 13:03




          1




          1





          (continued...) It was hard work to get our mail server from the blacklists. Since those days you can theoretical still send e-mails directly from your machine, but you won't find many recipient servers that will accept those e-mails.

          – Philippos
          Mar 13 '17 at 13:04





          (continued...) It was hard work to get our mail server from the blacklists. Since those days you can theoretical still send e-mails directly from your machine, but you won't find many recipient servers that will accept those e-mails.

          – Philippos
          Mar 13 '17 at 13:04













          Can I run smtp server on Raspberry Pi (without any static ip or something) and use something like swaks --server localhost:587 ?

          – Enis Turgut Yalçınkaya
          Mar 14 '17 at 10:36





          Can I run smtp server on Raspberry Pi (without any static ip or something) and use something like swaks --server localhost:587 ?

          – Enis Turgut Yalçınkaya
          Mar 14 '17 at 10:36




          1




          1





          You surly can install a MTA like postfix and send mails with the mail command. But the emails would be rejected.

          – Michael D.
          Mar 14 '17 at 11:01





          You surly can install a MTA like postfix and send mails with the mail command. But the emails would be rejected.

          – Michael D.
          Mar 14 '17 at 11:01

















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Unix & Linux Stack Exchange!


          • 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%2funix.stackexchange.com%2fquestions%2f351090%2fsending-mail-without-any-account%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

          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?