SMTP 3 ojs linux

How to determine the correct reason why smtp mailing does not work? where to watch the list of errors? the configuration is all correct. OS Linux debian 9. apache 2

Hi @eiavrn,

Since OJS 3.1.0, OJS will log sending errors in the PHP error log.

However, it’s very common for SMTP services to receive the message from OJS without reporting back any problems, and then fail to deliver the message. In that case OJS will never know that the message wasn’t delivered, and you’ll need to check the SMTP server’s delivery log (which you may or may not have access to).

If you have a local mail transfer agent (MTA) on your server and access to its sending logs, this can be easier to debug. To use the local MTA, disable SMTP in your config.inc.php.

The most common cause of occasional email failures is spam trapping or DMARC problems; see config.inc.php for some DMARC settings that may help.

Regards,
Alec Smecher
Public Knowledge Project Team

Hello @asmecher
Thank you very much!
Can you help? How to view php 7 error log in Debian 9? What is DMARC? I would be grateful for the help ! :))

Hi @eiavrn,

Here’s some general information on DMARC – essentially it’s an email server technology that tries to prevent impersonation and spamming.

For information on how to find your PHP error log, see How do I find my PHP error log? - #3 by asmecher

Regards,
Alec Smecher
Public Knowledge Project Team

Dear friend, friends. Could you provide a working (correct) config.inc.php file? in which smtp works.

Who has a sample of a properly configured config.inc file? That it worked SMTP. I would be grateful if someone laid out.

Hi @eiavrn,

Please find bellow the extract from my config.inc.php file. But I agree with asmecher, that you should search for problems outside of the OJS. The config in the OJS is rather simple and nothing to fail.

Regards, Primož

image

Hi @primozs
and all sketched fields are written in quotes? What fields are written in quotes? What problems can there be with OJS?

Hi @eiavrn,

Actually, in the example everything is without quotes. But I think quotes would work too.

Regards, Primož

[Mon Apr 01 20:41:55.625707 2019] [php7:notice] [pid 21369] [client 95.32.110.60:31497] SMTP connect() failed. Troubleshooting · PHPMailer/PHPMailer Wiki · GitHub, referer: http://crimexpert.pro:808/ojs/index.php/JFSC/login/lostPassword
[Mon Apr 01 20:51:35.594751 2019] [mpm_prefork:notice] [pid 21364] AH00169: caught SIGTERM, shutting down
[Mon Apr 01 20:51:35.700496 2019] [mpm_prefork:notice] [pid 21705] AH00163: Apache/2.4.29 (Ubuntu) configured – resuming normal operations
[Mon Apr 01 20:51:35.700582 2019] [core:notice] [pid 21705] AH00094: Command line: ‘/usr/sbin/apache2’
[Mon Apr 01 20:51:42.736769 2019] [php7:warn] [pid 21713] [client 95.32.110.60:31965] PHP Warning: Declaration of PKPUsageEventPlugin::getEnabled() should be compatible with LazyLoadPlugin::getEnabled($contextId = NULL) in /var/www/html/ojs/lib/pkp/plugins/generic/usageEvent/PKPUsageEventPlugin.inc.php on line 0, referer: http://crimexpert.pro:808/ojs/index.php/JFSC/login/requestResetPassword
[Mon Apr 01 20:51:44.000255 2019] [php7:warn] [pid 21713] [client 95.32.110.60:31965] PHP Warning: Declaration of PKPUsageEventPlugin::getEnabled() should be compatible with LazyLoadPlugin::getEnabled($contextId = NULL) in /var/www/html/ojs/lib/pkp/plugins/generic/usageEvent/PKPUsageEventPlugin.inc.php on line 0, referer: http://crimexpert.pro:808/ojs/index.php/JFSC/login
[Mon Apr 01 20:51:46.070419 2019] [php7:warn] [pid 21713] [client 95.32.110.60:31965] PHP Warning: Declaration of PKPUsageEventPlugin::getEnabled() should be compatible with LazyLoadPlugin::getEnabled($contextId = NULL) in /var/www/html/ojs/lib/pkp/plugins/generic/usageEvent/PKPUsageEventPlugin.inc.php on line 0, referer: http://crimexpert.pro:808/ojs/index.php/JFSC/login/lostPassword
[Mon Apr 01 20:51:46.541071 2019] [php7:notice] [pid 21713] [client 95.32.110.60:31965] SMTP connect() failed. Troubleshooting · PHPMailer/PHPMailer Wiki · GitHub, referer: http://crimexpert.pro:808/ojs/index.php/JFSC/login/lostPassword
[Mon Apr 01 20:56:08.738364 2019] [php7:warn] [pid 21717] [client 95.32.110.60:32215] PHP Warning: Declaration of PKPUsageEventPlugin::getEnabled() should be compatible with LazyLoadPlugin::getEnabled($contextId = NULL) in /var/www/html/ojs/lib/pkp/plugins/generic/usageEvent/PKPUsageEventPlugin.inc.php on line 0, referer: http://crimexpert.pro:808/ojs/index.php/JFSC/login/requestResetPassword
[Mon Apr 01 20:56:08.779504 2019] [php7:warn] [pid 21717] [client 95.32.110.60:32215] PHP Warning: Declaration of PKPUsageEventPlugin::getEnabled() should be compatible with LazyLoadPlugin::getEnabled($contextId = NULL) in /var/www/html/ojs/lib/pkp/plugins/generic/usageEvent/PKPUsageEventPlugin.inc.php on line 0, referer: http://crimexpert.pro:808/ojs/index.php/JFSC/login/requestResetPassword
[Mon Apr 01 20:56:08.787227 2019] [php7:notice] [pid 21717] [client 95.32.110.60:32215] PHP Notice: Only variables should be assigned by reference in /var/www/html/ojs/pages/index/IndexHandler.inc.php on line 68, referer: http://crimexpert.pro:808/ojs/index.php/JFSC/login/requestResetPassword
[Mon Apr 01 20:56:09.818330 2019] [php7:warn] [pid 21717] [client 95.32.110.60:32215] PHP Warning: Declaration of PKPUsageEventPlugin::getEnabled() should be compatible with LazyLoadPlugin::getEnabled($contextId = NULL) in /var/www/html/ojs/lib/pkp/plugins/generic/usageEvent/PKPUsageEventPlugin.inc.php on line 0, referer: http://crimexpert.pro:808/ojs/index.php/JFSC
[Mon Apr 01 20:56:10.633912 2019] [php7:warn] [pid 21717] [client 95.32.110.60:32215] PHP Warning: Declaration of PKPUsageEventPlugin::getEnabled() should be compatible with LazyLoadPlugin::getEnabled($contextId = NULL) in /var/www/html/ojs/lib/pkp/plugins/generic/usageEvent/PKPUsageEventPlugin.inc.php on line 0, referer: http://crimexpert.pro:808/ojs/index.php/JFSC/issue/archive
[Mon Apr 01 20:56:12.777919 2019] [php7:warn] [pid 21717] [client 95.32.110.60:32215] PHP Warning: Declaration of PKPUsageEventPlugin::getEnabled() should be compatible with LazyLoadPlugin::getEnabled($contextId = NULL) in /var/www/html/ojs/lib/pkp/plugins/generic/usageEvent/PKPUsageEventPlugin.inc.php on line 0, referer: http://crimexpert.pro:808/ojs/index.php/JFSC/announcement
[Mon Apr 01 20:56:14.552292 2019] [php7:warn] [pid 21717] [client 95.32.110.60:32215] PHP Warning: Declaration of PKPUsageEventPlugin::getEnabled() should be compatible with LazyLoadPlugin::getEnabled($contextId = NULL) in /var/www/html/ojs/lib/pkp/plugins/generic/usageEvent/PKPUsageEventPlugin.inc.php on line 0, referer: http://crimexpert.pro:808/ojs/index.php/JFSC/login
[Mon Apr 01 20:56:16.375807 2019] [php7:warn] [pid 21717] [client 95.32.110.60:32215] PHP Warning: Declaration of PKPUsageEventPlugin::getEnabled() should be compatible with LazyLoadPlugin::getEnabled($contextId = NULL) in /var/www/html/ojs/lib/pkp/plugins/generic/usageEvent/PKPUsageEventPlugin.inc.php on line 0, referer: http://crimexpert.pro:808/ojs/index.php/JFSC/login/lostPassword
[Mon Apr 01 20:56:16.850236 2019] [php7:notice] [pid 21717] [client 95.32.110.60:32215] SMTP connect() failed. Troubleshooting · PHPMailer/PHPMailer Wiki · GitHub, referer: http://crimexpert.pro:808/ojs/index.php/JFSC/login/lostPassword


and still doesn’t work (((