diff --git a/howto/submission.md b/howto/submission.md index 59d14a09afa4e16d314e5351d26f8ed08f0c3bb2..3edace28e35d6ee572304959f3658955da70c456 100644 --- a/howto/submission.md +++ b/howto/submission.md @@ -119,12 +119,19 @@ the upstream, see [LDAP docs](howto/ldap#maintainer-users-and-upstream) for deta ## Monitoring and testing -TODO: monitoring and testing +The submission server is monitored like other mail servers that have +`mail_processing` enabled, which is that it has the `mtail` exporter +(`profile::prometheus::postfix_mtail_exporter`). -<!-- describe how this service is monitored and how it can be tested --> -<!-- after major changes like IP address changes or upgrades. describe --> -<!-- CI, test suites, linting, how security issues and upgrades are --> -<!-- tracked --> +To test delivery, make sure you have an `emailPassword` set +(e.g. through [update.cgi](https://db.torproject.org/update.cgi)). Then you should be able to use the +[swaks](https://tracker.debian.org/swaks) to test delivery: + +This will try to relay an email through server example.net to the +example.com domain using TLS over the submission port (587) with user +name anarcat and a prompted password (`-ap -pp`). + + swaks -f anarcat@example.net -t anarcat@example.com -s example.net -tls -p 587 -au anarcat -ap -pp ## Logs and metrics