To be on the safe side you could comment out every email line in the email section of the config.inc.php file. Like so (please note that this might look slightly different depending on what version of OJS you’re using, but essentially if you put a semicolon and space on the from of every configuration settings, it should effectively disable things while you are making use plugin):
[email]
; Default method to send emails
; Available options: sendmail, smtp, log, phpmailer
; default = sendmail
; Path to the sendmail, -bs argument is for using SMTP protocol
; sendmail_path = "/usr/sbin/sendmail -bs"
; Use SMTP for sending mail instead of mail()
; smtp = On
; SMTP server settings
; smtp_server = mail.example.com
; smtp_port = 25
; Enable SMTP authentication
; Supported smtp_auth: ssl, tls (see PHPMailer SMTPSecure)
; smtp_auth = ssl
; smtp_username = username
; smtp_password = password
; Enable suppressing SSL/TLS peer verification by SMTP transports
; Note: this is not recommended for security reasons
; smtp_suppress_cert_check = On
; Allow envelope sender to be specified
; (may not be possible with some server configurations)
; allow_envelope_sender = Off
; Default envelope sender to use if none is specified elsewhere
; default_envelope_sender = my_address@my_host.com
; Force the default envelope sender (if present)
; This is useful if setting up a site-wide no-reply address
; The reply-to field will be set with the reply-to or from address.
; force_default_envelope_sender = Off
; Force a DMARC compliant from header (RFC5322.From)
; If any of your users have email addresses in domains not under your control
; you may need to set this to be compliant with DMARC policies published by
; those 3rd party domains.
; Setting this will move the users address into the reply-to field and the
; from field wil be rewritten with the default_envelope_sender.
; To use this you must set force_default_enveloper_sender = On and
; default_envelope_sender must be set to a valid address in a domain you own.
; force_dmarc_compliant_from = Off
; The display name to use with a DMARC compliant from header
; By default the DMARC compliant from will have an empty name but this can
; be changed by adding a text here.
; You can use '%n' to insert the users name from the original from header
; and '%s' to insert the localized sitename.
; dmarc_compliant_from_displayname = '%n via %s'
; If enabled, email addresses must be validated before login is possible.
; require_validation = Off
; The number of days a user has to validate their account before their access key expires.
; validation_timeout = 14
You’ll want to ensure that you change it back once you’ve finished the process with the plugin. Note as well, depending on what level of access you have, you may need a systems administrator to access this particular file and make the changes.
Just a heads-up that commenting out the entire configuration will cause OJS to fall back on its defaults, which (if I remember right) will mean local delivery via sendmail. If you want to disable email delivery entirely, I suggest using sandbox mode. This was introduced starting with OJS 3.4.0-5.
Regards,
Alec Smecher
Public Knowledge Project Team
Unfortunately I’m not able to upgrade to 3.4 and use sandbox mode at this time. Do you think if I keep smtp = On and set the smtp_server to an internal/invalid IP the messages will stop?
This is a good suggestion; we’ve used Sendria and Mailhog ourselves. The problem with configuring a nonexistent SMTP server is that you might encounter timeouts or errors when OJS does try to deliver an email.
Regards,
Alec Smecher
Public Knowledge Project Team