2022-08-29 21:28:00 +02:00
|
|
|
# This config file will make matrixmailer
|
|
|
|
# - Bind the SMTP server on 1.2.3.4:2525
|
2022-09-02 14:54:57 +02:00
|
|
|
# - Reject receiving mail that is not sent to one of the allowed receiving email addresses in the
|
2022-08-29 21:28:00 +02:00
|
|
|
# - Forward all received mails
|
|
|
|
# - that were sent to warning@mydomain.com to the "warning" room using "@secondbot:example.com"
|
|
|
|
# - that were sent to critical@mydomain.com to the "important" room using "@firstbot:example.com"
|
|
|
|
# - ignore any other received mail
|
|
|
|
|
|
|
|
---
|
|
|
|
bind_address: "1.2.3.4"
|
|
|
|
bind_port: "2525"
|
2022-09-02 14:54:57 +02:00
|
|
|
allowed_receivers:
|
2022-08-29 21:28:00 +02:00
|
|
|
- "warning@mydomain.com"
|
|
|
|
- "critical@mydomain.com"
|
|
|
|
clients:
|
|
|
|
- mxid: "@firstbot:example.com"
|
|
|
|
password: "p@ssw0rd"
|
|
|
|
- mxid: "@secondbot:example.com"
|
|
|
|
password: "pwd"
|
|
|
|
mappings:
|
|
|
|
- to: "warning@mydomain.com"
|
|
|
|
sender_mxid: "@secondbot:example.com"
|
2022-09-06 20:36:52 +02:00
|
|
|
room: "!idofWARNINGroomyoucreatedbefore:example.com"
|
2022-08-29 21:28:00 +02:00
|
|
|
- to: "critical@mydomain.com"
|
|
|
|
sender_mxid: "@firstbot:example.com"
|
2022-09-06 20:36:52 +02:00
|
|
|
room: "#IMPORTANTroomyoucreatedbefore:example.com"
|