Disabling email in test environments
In test environments, disabling email prevents the test instance from sending email updates to your users.
Your production instance is typically set up to both send email notifications (SMTP) and access an email account (email monitor) or server (advanced incoming email). For your test instances, we strongly recommend changing these settings; otherwise, you may find that the new test instance generates email notifications that look like they're coming from your production instance. This can be very confusing to users and might end up unnecessarily burdening your email servers.
You can disable mailing for test environments as follows:
- Change all email addresses to a dummy value with:
UPDATE jiveuser SET email = 'dummy@localhost';
- Turn off SMTP by changing the SMTP server name to
nomail
. - Disconnect or reconfigure the email monitor to point to a different mailbox.
- Disconnect or reconfigure the advanced incoming email feature.
Note that if you have customized email templates, they are not overwritten during an upgrade. We recommend testing them after an upgrade to ensure your customizations have been maintained.