Hi,
I have a test site that is a clone of an OJS 3 journal. We use it to test upgrades and new plugins. Before any test I clone the production database. Sometimes the test server sends out reminder emails for things that were due during the last cloning, that are long since handled in production, which confuses referees and authors. Is there a configuration switch that simply turns off email? The solution I’m using now is to activate SMTP but with settings that won’t work, which isn’t very pretty.
Simon
Hi @simonmitternacht ,
When working with test copies, I tend to neuter certain fields in the database, for example:
UPDATE users SET email=CONCAT(username,'@mailinator.com'), password=SHA1(CONCAT(username,username));
Regards,
Alec Smecher
Public Knowledge Project Team
mirkh
October 13, 2023, 6:32am
3
It is important to remember that there is also the table “authors” that contains email addresses. Do for example:
update authors set email=‘none@mailinator.com’;
I noticed there is work on disabling email totally (for a test server), but it has not been included into a release yet, correct?
Kind regards,
Maria
Hi all,
There is an issue filed to add a sandbox mode, where email delivery, CrossRef deposits, etc. are all disabled:
opened 11:27AM - 12 Sep 23 UTC
**Describe the bug**
When taking an installation from a production environment … into a testing environment, certain activities should be prevented -- sending emails, depositing issues/articles, etc.
So far we have maintained lists of individual features to disable, but it would be better to have a single configuration setting (e.g. in `config.inc.php`) to refer to.
(To be considered: what about making LessCSS cache less obtrusive for developers? The LessCSS compilation takes too long to disable entirely, but perhaps sandbox mode could consider setting no-cache directives and letting e.g. inotifywait be used on the developer side to automatically delete cache files when a .less file changes.)
Things to disable:
- Emails
- CrossRef deposits (switch to sandbox)
- DataCite deposits (switch to sandbox)
- ORCiD (switch to sandbox)
However, there has been no development work on that yet.
Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
Closed
October 23, 2023, 3:00pm
5
This topic was automatically closed after 10 days. New replies are no longer allowed.