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


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Solved SMTP connect() failed

    Tiny Tiny RSS
    tinytinyrss mail
    2
    7
    328
    Loading More Posts
    • 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
      p44 translator last edited by girish

      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 Reply Quote 0
      • girish
        girish Staff last edited by

        @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 Reply Quote 0
        • P
          p44 translator @girish last edited by

          @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 Reply Quote 0
          • P
            p44 translator last edited by

            @girish Dear Girish, any news about this problem?

            1 Reply Last reply Reply Quote 0
            • girish
              girish Staff last edited by

              @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 Reply Quote 0
              • P
                p44 translator @girish last edited by

                @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 Reply Quote 0
                • girish
                  girish Staff last edited by

                  @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 Reply Quote 0
                  • First post
                    Last post
                  Powered by NodeBB