Your own mail server and webhooks
Open Settings, then Mail and webhooks. Only an Organization admin sees this page.
Send email through your own mail server
By default RemediForge sends your organization's email through the mail server it was set up with. If you want mail to leave from your own server, for example so it comes from your own address and your own mail policies apply, enter it here:
| Field | What to enter |
|---|---|
| Mail server | The host name, such as smtp.example.com |
| Port | 587 (recommended), 465, 25 or 2525 |
| User name and Password | What the server asks you to sign in with. Leave both empty if it does not ask |
| Send from | The address emails come from, such as alerts@example.com |
| Use STARTTLS | On for port 587 |
Choose Save, then Send a test email. The test goes to your own address. Only when it arrives does RemediForge start using your mail server; until then, and after any change you make, your mail keeps going the way it did. If the test fails, the page says why, and nothing changes. If your mail server stops working later, mail goes through RemediForge's own mail server instead, where there is one, so sign-in codes and password resets still reach people; fix the settings and test them again.
The password is kept encrypted and is never shown again. To change the server but keep the password, leave the password field empty. Remove puts everything back to the way it was.
Your own mail server carries your organization's sign-in codes, password reset links, invitations, notifications and scheduled reports. Emails about your plan and invoices always come from RemediForge.
Your mail server must allow RemediForge to send as that address (for the address's domain, add the sending server to its SPF record), or the mail may be treated as spam.
Webhooks
A webhook sends the same notifications as email, to a chat tool or a service of your own, so your team sees them where it already looks.
- Choose Add webhook.
- Give it a Name and choose its type:
- Slack: paste the address of an incoming webhook from Slack.
- Mattermost: paste the address of an incoming webhook from Mattermost.
- Generic: any address that accepts a JSON
POST. RemediForge signs each request, and shows you the signing secret once, when you add it. Copy it then; to get a new one, choose New signing secret.
- Choose which events it receives. These are the same events as in Email notifications; with none chosen it receives all of them.
- Choose Send a test to see it arrive.
The list shows each webhook's host, when it last worked, and the last messages sent to it. The address itself is never shown again, because for Slack and Mattermost it contains a secret.
If a webhook fails five times in a row, RemediForge switches it off and emails the Organization admins. Fix the address, then switch it on again. Email is never affected.
You can have up to ten webhooks.
The address must start with https:// and be reachable from the internet.
RemediForge does not call addresses on private networks, such as
10.0.0.5 or localhost, from a hosted service.
On a server of your own, ask whoever runs it to allow private addresses if
your Mattermost or mail server is on your internal network.
What a generic webhook receives
Each call is a JSON object with id, event, title, text, details (a
list of label and value), link and sent_at. The headers
X-RemediForge-Timestamp and X-RemediForge-Signature let you check that
RemediForge sent it: the signature is sha256= followed by the hex
HMAC-SHA256, with your signing secret as the key, of the timestamp, a dot and
the request body. Refuse a request whose timestamp is more than a few minutes
old.