Having some issues to send mails using ssmtpSSMTP on Ubuntu 18.10 server stopped sending email through GMailUnable to send email using ssmtp from home computerPostfix can send but not receive mails - Recipient address rejectedHow to change default FROM address for mail command using sSMTP?Can't send mail from WordPress after configuring sSMTPHow to send e-mails from the terminal?Someone used my postfix to send mails

Is there an opposite to the "Weather Boost"?

I missed an important client meeting and hurt my standing. How can I recover?

What does “critical but stable” mean?

What is this old farm "combine"?

Where do "magic" hashing constants like 0x9e3779b9 and 0x9e3779b1 come from?

Can salted butter be used to make lemon curd?

Keeping face warm in the winter

Modeling in pure math

Toxic culture - I'm putting in more resources to help the project move faster, but people are slowing down

"Government transplant" been tried? At what scale, and what were the results?

Could earthquake cancellation work?

Is one spouse responsible if other failed to file taxes

Is it advisable to cover and uncover the clarinet mouthpiece to play each note?

What's the difference between "men of violence" and "violent men"?

Using only one terminal, can I interrupt a process that's hung on very early Unix versions?

How do you draw a path on a parametric sphere?

Senate Impeachment rule change?

What bit should I use to drill a two inch hole in a solid concrete wall?

Was I wrong to rebutt unjustified rewiewer comments in the review?

Which floor is the Hogwarts Library on?

Should I take a side in an external player conflict, or let my game die?

Why has Trump refused to recognize the Armenian Genocide?

Carlsen beat a high ranking GM with 1 Nh3. Conclusions?

Is a Finite State Machine a good way to model chess?



Having some issues to send mails using ssmtp


SSMTP on Ubuntu 18.10 server stopped sending email through GMailUnable to send email using ssmtp from home computerPostfix can send but not receive mails - Recipient address rejectedHow to change default FROM address for mail command using sSMTP?Can't send mail from WordPress after configuring sSMTPHow to send e-mails from the terminal?Someone used my postfix to send mails






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;









2


















Actually, I'm using a RaspberryPI 3b.

This is my /etc/ssmtp/ssmtp.conf:



root=gmail_user@gmail.com
mailhub=smtp.gmail.com:587
rewriteDomain=gmail.com
hostname=raspi
FromLineOverride=YES
UseTLS=Yes
UseSTARTTLS=YES
AuthUser=gmail_user
AuthPass=PASSWD


This is my /etc/ssmtp/revaliases:



root:gmail_user@gmail.com:smtp.gmail.com:587
pi:gmail_user@gmail.com:smtp.gmail.com:587


Trying to send a mail:



root@raspberrypi:~# echo "hola" | ssmtp filter.srv@gmail.com -v
[<-] 220 smtp.gmail.com ESMTP x129sm89284054wmg.44 - gsmtp
[->] EHLO raspi
[<-] 250 SMTPUTF8
[->] STARTTLS
[<-] 220 2.0.0 Ready to start TLS
[->] EHLO raspi
[<-]
ssmtp: (raspi)


hostname:



root@raspberrypi:~# hostname
raspberrypi


This is a ping to google and the DNS servers that I'm using:



root@raspberrypi:~# ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=54 time=13.1 ms
^C
--- 8.8.8.8 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 13.134/13.134/13.134/0.000 ms
root@raspberrypi:~# cat /etc/resolv.conf
# Generated by resolvconf
nameserver 8.8.8.8
nameserver 8.8.4.4


Also...



  • the GMail account have the thing to let less secure applications use the account.

  • to make sure the name and password where correct, used copy/paste to google Chrome (Using SSH, so that I can copy/paste things)

  • I have a Debian server which works well, also trying to copy/paste all the configuration and change the names from users and hostname, but it didn't work.









share|improve this question

































    2


















    Actually, I'm using a RaspberryPI 3b.

    This is my /etc/ssmtp/ssmtp.conf:



    root=gmail_user@gmail.com
    mailhub=smtp.gmail.com:587
    rewriteDomain=gmail.com
    hostname=raspi
    FromLineOverride=YES
    UseTLS=Yes
    UseSTARTTLS=YES
    AuthUser=gmail_user
    AuthPass=PASSWD


    This is my /etc/ssmtp/revaliases:



    root:gmail_user@gmail.com:smtp.gmail.com:587
    pi:gmail_user@gmail.com:smtp.gmail.com:587


    Trying to send a mail:



    root@raspberrypi:~# echo "hola" | ssmtp filter.srv@gmail.com -v
    [<-] 220 smtp.gmail.com ESMTP x129sm89284054wmg.44 - gsmtp
    [->] EHLO raspi
    [<-] 250 SMTPUTF8
    [->] STARTTLS
    [<-] 220 2.0.0 Ready to start TLS
    [->] EHLO raspi
    [<-]
    ssmtp: (raspi)


    hostname:



    root@raspberrypi:~# hostname
    raspberrypi


    This is a ping to google and the DNS servers that I'm using:



    root@raspberrypi:~# ping 8.8.8.8
    PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
    64 bytes from 8.8.8.8: icmp_seq=1 ttl=54 time=13.1 ms
    ^C
    --- 8.8.8.8 ping statistics ---
    1 packets transmitted, 1 received, 0% packet loss, time 0ms
    rtt min/avg/max/mdev = 13.134/13.134/13.134/0.000 ms
    root@raspberrypi:~# cat /etc/resolv.conf
    # Generated by resolvconf
    nameserver 8.8.8.8
    nameserver 8.8.4.4


    Also...



    • the GMail account have the thing to let less secure applications use the account.

    • to make sure the name and password where correct, used copy/paste to google Chrome (Using SSH, so that I can copy/paste things)

    • I have a Debian server which works well, also trying to copy/paste all the configuration and change the names from users and hostname, but it didn't work.









    share|improve this question





























      2













      2









      2








      Actually, I'm using a RaspberryPI 3b.

      This is my /etc/ssmtp/ssmtp.conf:



      root=gmail_user@gmail.com
      mailhub=smtp.gmail.com:587
      rewriteDomain=gmail.com
      hostname=raspi
      FromLineOverride=YES
      UseTLS=Yes
      UseSTARTTLS=YES
      AuthUser=gmail_user
      AuthPass=PASSWD


      This is my /etc/ssmtp/revaliases:



      root:gmail_user@gmail.com:smtp.gmail.com:587
      pi:gmail_user@gmail.com:smtp.gmail.com:587


      Trying to send a mail:



      root@raspberrypi:~# echo "hola" | ssmtp filter.srv@gmail.com -v
      [<-] 220 smtp.gmail.com ESMTP x129sm89284054wmg.44 - gsmtp
      [->] EHLO raspi
      [<-] 250 SMTPUTF8
      [->] STARTTLS
      [<-] 220 2.0.0 Ready to start TLS
      [->] EHLO raspi
      [<-]
      ssmtp: (raspi)


      hostname:



      root@raspberrypi:~# hostname
      raspberrypi


      This is a ping to google and the DNS servers that I'm using:



      root@raspberrypi:~# ping 8.8.8.8
      PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
      64 bytes from 8.8.8.8: icmp_seq=1 ttl=54 time=13.1 ms
      ^C
      --- 8.8.8.8 ping statistics ---
      1 packets transmitted, 1 received, 0% packet loss, time 0ms
      rtt min/avg/max/mdev = 13.134/13.134/13.134/0.000 ms
      root@raspberrypi:~# cat /etc/resolv.conf
      # Generated by resolvconf
      nameserver 8.8.8.8
      nameserver 8.8.4.4


      Also...



      • the GMail account have the thing to let less secure applications use the account.

      • to make sure the name and password where correct, used copy/paste to google Chrome (Using SSH, so that I can copy/paste things)

      • I have a Debian server which works well, also trying to copy/paste all the configuration and change the names from users and hostname, but it didn't work.









      share|improve this question
















      Actually, I'm using a RaspberryPI 3b.

      This is my /etc/ssmtp/ssmtp.conf:



      root=gmail_user@gmail.com
      mailhub=smtp.gmail.com:587
      rewriteDomain=gmail.com
      hostname=raspi
      FromLineOverride=YES
      UseTLS=Yes
      UseSTARTTLS=YES
      AuthUser=gmail_user
      AuthPass=PASSWD


      This is my /etc/ssmtp/revaliases:



      root:gmail_user@gmail.com:smtp.gmail.com:587
      pi:gmail_user@gmail.com:smtp.gmail.com:587


      Trying to send a mail:



      root@raspberrypi:~# echo "hola" | ssmtp filter.srv@gmail.com -v
      [<-] 220 smtp.gmail.com ESMTP x129sm89284054wmg.44 - gsmtp
      [->] EHLO raspi
      [<-] 250 SMTPUTF8
      [->] STARTTLS
      [<-] 220 2.0.0 Ready to start TLS
      [->] EHLO raspi
      [<-]
      ssmtp: (raspi)


      hostname:



      root@raspberrypi:~# hostname
      raspberrypi


      This is a ping to google and the DNS servers that I'm using:



      root@raspberrypi:~# ping 8.8.8.8
      PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
      64 bytes from 8.8.8.8: icmp_seq=1 ttl=54 time=13.1 ms
      ^C
      --- 8.8.8.8 ping statistics ---
      1 packets transmitted, 1 received, 0% packet loss, time 0ms
      rtt min/avg/max/mdev = 13.134/13.134/13.134/0.000 ms
      root@raspberrypi:~# cat /etc/resolv.conf
      # Generated by resolvconf
      nameserver 8.8.8.8
      nameserver 8.8.4.4


      Also...



      • the GMail account have the thing to let less secure applications use the account.

      • to make sure the name and password where correct, used copy/paste to google Chrome (Using SSH, so that I can copy/paste things)

      • I have a Debian server which works well, also trying to copy/paste all the configuration and change the names from users and hostname, but it didn't work.






      email ssmtp






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Aug 6 at 19:47







      Oriol Filter

















      asked Aug 6 at 19:18









      Oriol FilterOriol Filter

      235 bronze badges




      235 bronze badges























          1 Answer
          1






          active

          oldest

          votes


















          1



















          I had the same problem (on PC-x64) after updating from 18.04 to 18.10. As some other unrelated things got broken, I updated to 19.04 and even zero-installed 19.10 (currently beta). Now everything else works, but SSMTP still broken. It may be needing an unlisted dependent SSL/TLS library or something like that.



          Sadly, SSMTP is unmaintained and my searches turned up of no help too. After reading this question and the comments, I too gave up and installed MSMTP, which is supposed to be the actively maintained, basically following the instructions of that link:



          Install (I am assuming you use a debian-related distro on your pi):



          apt install msmtp msmtp-mta ca-certificates


          Edit /etc/msmtprc and put that minimal config:



          account default
          auth on
          tls on
          tls_trust_file /etc/ssl/certs/ca-certificates.crt
          logfile /var/log/mail.log
          host smtp.gmail.com
          port 587
          from username@gmail.com
          user username@gmail.com
          password plain-text-password


          On the Ubuntu 19.10 beta I saw that the package installer added a user/group "msmtp", and made the binary SGUID, so, for security and homogeneity regarding permissions of the config and log file, I did the same on my other systems:



          adduser --system --home /var/lib/msmtp --no-create-home --group msmtp
          chown root:msmtp /etc/msmtprc
          chmod 640 /etc/msmtprc
          chown syslog:msmtp /var/log/mail.log
          chmod 660 /var/log/mail.log


          Try that, it has more features than SSMTP (like multiple accounts and user-specific ~/.msmtprc config) but continues to be simple to configure.






          share|improve this answer




























            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/4.0/"u003ecc by-sa 4.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%2f1163881%2fhaving-some-issues-to-send-mails-using-ssmtp%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









            1



















            I had the same problem (on PC-x64) after updating from 18.04 to 18.10. As some other unrelated things got broken, I updated to 19.04 and even zero-installed 19.10 (currently beta). Now everything else works, but SSMTP still broken. It may be needing an unlisted dependent SSL/TLS library or something like that.



            Sadly, SSMTP is unmaintained and my searches turned up of no help too. After reading this question and the comments, I too gave up and installed MSMTP, which is supposed to be the actively maintained, basically following the instructions of that link:



            Install (I am assuming you use a debian-related distro on your pi):



            apt install msmtp msmtp-mta ca-certificates


            Edit /etc/msmtprc and put that minimal config:



            account default
            auth on
            tls on
            tls_trust_file /etc/ssl/certs/ca-certificates.crt
            logfile /var/log/mail.log
            host smtp.gmail.com
            port 587
            from username@gmail.com
            user username@gmail.com
            password plain-text-password


            On the Ubuntu 19.10 beta I saw that the package installer added a user/group "msmtp", and made the binary SGUID, so, for security and homogeneity regarding permissions of the config and log file, I did the same on my other systems:



            adduser --system --home /var/lib/msmtp --no-create-home --group msmtp
            chown root:msmtp /etc/msmtprc
            chmod 640 /etc/msmtprc
            chown syslog:msmtp /var/log/mail.log
            chmod 660 /var/log/mail.log


            Try that, it has more features than SSMTP (like multiple accounts and user-specific ~/.msmtprc config) but continues to be simple to configure.






            share|improve this answer































              1



















              I had the same problem (on PC-x64) after updating from 18.04 to 18.10. As some other unrelated things got broken, I updated to 19.04 and even zero-installed 19.10 (currently beta). Now everything else works, but SSMTP still broken. It may be needing an unlisted dependent SSL/TLS library or something like that.



              Sadly, SSMTP is unmaintained and my searches turned up of no help too. After reading this question and the comments, I too gave up and installed MSMTP, which is supposed to be the actively maintained, basically following the instructions of that link:



              Install (I am assuming you use a debian-related distro on your pi):



              apt install msmtp msmtp-mta ca-certificates


              Edit /etc/msmtprc and put that minimal config:



              account default
              auth on
              tls on
              tls_trust_file /etc/ssl/certs/ca-certificates.crt
              logfile /var/log/mail.log
              host smtp.gmail.com
              port 587
              from username@gmail.com
              user username@gmail.com
              password plain-text-password


              On the Ubuntu 19.10 beta I saw that the package installer added a user/group "msmtp", and made the binary SGUID, so, for security and homogeneity regarding permissions of the config and log file, I did the same on my other systems:



              adduser --system --home /var/lib/msmtp --no-create-home --group msmtp
              chown root:msmtp /etc/msmtprc
              chmod 640 /etc/msmtprc
              chown syslog:msmtp /var/log/mail.log
              chmod 660 /var/log/mail.log


              Try that, it has more features than SSMTP (like multiple accounts and user-specific ~/.msmtprc config) but continues to be simple to configure.






              share|improve this answer





























                1















                1











                1









                I had the same problem (on PC-x64) after updating from 18.04 to 18.10. As some other unrelated things got broken, I updated to 19.04 and even zero-installed 19.10 (currently beta). Now everything else works, but SSMTP still broken. It may be needing an unlisted dependent SSL/TLS library or something like that.



                Sadly, SSMTP is unmaintained and my searches turned up of no help too. After reading this question and the comments, I too gave up and installed MSMTP, which is supposed to be the actively maintained, basically following the instructions of that link:



                Install (I am assuming you use a debian-related distro on your pi):



                apt install msmtp msmtp-mta ca-certificates


                Edit /etc/msmtprc and put that minimal config:



                account default
                auth on
                tls on
                tls_trust_file /etc/ssl/certs/ca-certificates.crt
                logfile /var/log/mail.log
                host smtp.gmail.com
                port 587
                from username@gmail.com
                user username@gmail.com
                password plain-text-password


                On the Ubuntu 19.10 beta I saw that the package installer added a user/group "msmtp", and made the binary SGUID, so, for security and homogeneity regarding permissions of the config and log file, I did the same on my other systems:



                adduser --system --home /var/lib/msmtp --no-create-home --group msmtp
                chown root:msmtp /etc/msmtprc
                chmod 640 /etc/msmtprc
                chown syslog:msmtp /var/log/mail.log
                chmod 660 /var/log/mail.log


                Try that, it has more features than SSMTP (like multiple accounts and user-specific ~/.msmtprc config) but continues to be simple to configure.






                share|improve this answer
















                I had the same problem (on PC-x64) after updating from 18.04 to 18.10. As some other unrelated things got broken, I updated to 19.04 and even zero-installed 19.10 (currently beta). Now everything else works, but SSMTP still broken. It may be needing an unlisted dependent SSL/TLS library or something like that.



                Sadly, SSMTP is unmaintained and my searches turned up of no help too. After reading this question and the comments, I too gave up and installed MSMTP, which is supposed to be the actively maintained, basically following the instructions of that link:



                Install (I am assuming you use a debian-related distro on your pi):



                apt install msmtp msmtp-mta ca-certificates


                Edit /etc/msmtprc and put that minimal config:



                account default
                auth on
                tls on
                tls_trust_file /etc/ssl/certs/ca-certificates.crt
                logfile /var/log/mail.log
                host smtp.gmail.com
                port 587
                from username@gmail.com
                user username@gmail.com
                password plain-text-password


                On the Ubuntu 19.10 beta I saw that the package installer added a user/group "msmtp", and made the binary SGUID, so, for security and homogeneity regarding permissions of the config and log file, I did the same on my other systems:



                adduser --system --home /var/lib/msmtp --no-create-home --group msmtp
                chown root:msmtp /etc/msmtprc
                chmod 640 /etc/msmtprc
                chown syslog:msmtp /var/log/mail.log
                chmod 660 /var/log/mail.log


                Try that, it has more features than SSMTP (like multiple accounts and user-specific ~/.msmtprc config) but continues to be simple to configure.







                share|improve this answer















                share|improve this answer




                share|improve this answer








                edited Oct 2 at 14:31









                user3140225

                2,7104 gold badges12 silver badges24 bronze badges




                2,7104 gold badges12 silver badges24 bronze badges










                answered Oct 2 at 14:17









                Eliphas Levy TheodoroEliphas Levy Theodoro

                262 bronze badges




                262 bronze badges































                    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.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1163881%2fhaving-some-issues-to-send-mails-using-ssmtp%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

                    Distance measures on a map of a game The 2019 Stack Overflow Developer Survey Results Are Inmin distance in a graphShortest distance path on contour plotHow to plot a tilted map?Finding points outside of a diskDelaunay link distanceAnnulus from GeoDisks: drawing a ring on a mapNegative Correlation DistanceFind distance along a path (GPS coordinates)Finding position at given distance in a GeoPathMathematics behind distance estimation using camera

                    How to get a smooth, uniform ParametricPlot of a 2D Region?How to plot a complicated Region?How to exclude a region from ParametricPlotHow discretize a region placing vertices on a specific non-uniform gridHow to transform a Plot or a ParametricPlot into a RegionHow can I get a smooth plot of a bounded region?Smooth ParametricPlot3D with RegionFunction?Smooth border of a region ParametricPlotSmooth region boundarySmooth region plot from list of pointsGet minimum y of a certain x in a region

                    Genealogie vun de Merowenger Vum Merowech bis zum Chilperich I. | Navigatiounsmenü