SMTP connect() failed
-
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!
-
@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.
-
@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!
-
@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?