Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Tiny Tiny RSS
  3. SMTP connect() failed

SMTP connect() failed

Scheduled Pinned Locked Moved Solved Tiny Tiny RSS
tinytinyrssmail
7 Posts 2 Posters 1.4k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P Offline
      P Offline
      p44
      translator
      wrote on last edited by girish
      #1

      Dear all,

      I got this error when sending an email via Tiny Tiny Rss ("Email share article" plugin):

      SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting

      In the error log i get this error:

      Aug 20 20:15:39 sh: 1: /usr/sbin/sendmail: not found
      

      Email settings of app it seems to works fine...

      Where I have to take a look?

      Thank's a lot!

      1 Reply Last reply
      0
      • girishG Offline
        girishG Offline
        girish
        Staff
        wrote on last edited by
        #2

        @p44 Which package version are you on? This is supposed to be fixed in v1.25.0 .

        Can you check the SMTP settings in /app/data/config.php ? It should have a section like this:

            // *********************************
            // *** Email and digest settings ***
            // *********************************
        
            define('SMTP_FROM_NAME', 'Tiny Tiny RSS');
            define('SMTP_FROM_ADDRESS', getenv('CLOUDRON_MAIL_FROM'));
            // Name, address and subject for sending outgoing mail. This applies
            // to password reset notifications, digest emails and any other mail.
        
            define('DIGEST_SUBJECT', '[tt-rss] New headlines for last 24 hours');
            // Subject line for email digests
        
            define('SMTP_SERVER', getenv('CLOUDRON_ENV_SMTP_SERVER') . ':' . getenv('CLOUDRON_MAIL_SMTP_PORT'));
            // Hostname:port combination to send outgoing mail (i.e. localhost:25).
            // Blank - use system MTA.
        
            define('SMTP_LOGIN', getenv('CLOUDRON_MAIL_SMTP_USERNAME'));
            define('SMTP_PASSWORD', getenv('CLOUDRON_MAIL_SMTP_PASSWORD'));
            // These two options enable SMTP authentication when sending
            // outgoing mail. Only used with SMTP_SERVER.
        
            define('SMTP_SECURE', '');
            // Used to select a secure SMTP connection. Allowed values: ssl, tls,
            // or empty.
        
        P 1 Reply Last reply
        0
        • girishG girish

          @p44 Which package version are you on? This is supposed to be fixed in v1.25.0 .

          Can you check the SMTP settings in /app/data/config.php ? It should have a section like this:

              // *********************************
              // *** Email and digest settings ***
              // *********************************
          
              define('SMTP_FROM_NAME', 'Tiny Tiny RSS');
              define('SMTP_FROM_ADDRESS', getenv('CLOUDRON_MAIL_FROM'));
              // Name, address and subject for sending outgoing mail. This applies
              // to password reset notifications, digest emails and any other mail.
          
              define('DIGEST_SUBJECT', '[tt-rss] New headlines for last 24 hours');
              // Subject line for email digests
          
              define('SMTP_SERVER', getenv('CLOUDRON_ENV_SMTP_SERVER') . ':' . getenv('CLOUDRON_MAIL_SMTP_PORT'));
              // Hostname:port combination to send outgoing mail (i.e. localhost:25).
              // Blank - use system MTA.
          
              define('SMTP_LOGIN', getenv('CLOUDRON_MAIL_SMTP_USERNAME'));
              define('SMTP_PASSWORD', getenv('CLOUDRON_MAIL_SMTP_PASSWORD'));
              // These two options enable SMTP authentication when sending
              // outgoing mail. Only used with SMTP_SERVER.
          
              define('SMTP_SECURE', '');
              // Used to select a secure SMTP connection. Allowed values: ssl, tls,
              // or empty.
          
          P Offline
          P Offline
          p44
          translator
          wrote on last edited by
          #3

          @girish Dear Girish, thank's a lot for your reply!

          I've v1.25.0 package and yes, config.php appears exactly as you described.

          I double checked in config.php using the new fantastic FileManager 🙂

          Let me know if I can do other checks to fix this problem.

          Thank's a lot!

          1 Reply Last reply
          0
          • P Offline
            P Offline
            p44
            translator
            wrote on last edited by
            #4

            @girish Dear Girish, any news about this problem?

            1 Reply Last reply
            0
            • girishG Offline
              girishG Offline
              girish
              Staff
              wrote on last edited by
              #5

              @p44 Can you also check if the same /app/data/config.php has a line like this?

                  define('PLUGINS', 'auth_ldap, mailer_smtp, note');
              

              The above enables the SMTP plugin and the email settings (above) set the SMTP credentials.

              With these both, there is no reason for ttrss to use sendmail. How are you testing this btw? Is this the digest feature?

              P 1 Reply Last reply
              0
              • girishG girish

                @p44 Can you also check if the same /app/data/config.php has a line like this?

                    define('PLUGINS', 'auth_ldap, mailer_smtp, note');
                

                The above enables the SMTP plugin and the email settings (above) set the SMTP credentials.

                With these both, there is no reason for ttrss to use sendmail. How are you testing this btw? Is this the digest feature?

                P Offline
                P Offline
                p44
                translator
                wrote on last edited by
                #6

                @girish all perfectly as you described... but still have that problem... I'm using the "Forward Email" function

                Schermata 2020-09-01 alle 20.00.08.png

                1 Reply Last reply
                0
                • girishG Offline
                  girishG Offline
                  girish
                  Staff
                  wrote on last edited by
                  #7

                  @p44 Where is this button? In the feeds or in preferences? I can't seem to find it in my installation.

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • Bookmarks
                    • Search