move submission server tests to the howto section authored by anarcat's avatar anarcat
It's where I was looking for it and couldn't find it. I kept a ref
backwards so it can still be found in the standard testing section.
...@@ -353,6 +353,25 @@ and reverse IP configuration and reply with a report by email. ...@@ -353,6 +353,25 @@ and reverse IP configuration and reply with a report by email.
Interestingly, ran by [sparkpost](https://www.sparkpost.com/). Interestingly, ran by [sparkpost](https://www.sparkpost.com/).
### Testing the submission server
The above applies if you're sending mail from an existing TPA-managed
server. If you're trying to send mail through the submission server,
you should follow the above [tutorial](#tutorial) to configure your email
client and send email normally.
If that fails, you can try using the command-line [swaks](https://tracker.debian.org/swaks) tool 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@torproject.org -t anarcat@torproject.org -s submission.torproject.org -tls -p 587 -au anarcat -ap -pp
If you do not have a password set in LDAP, follow the [setting an
email password](#setting an email password) instructions (for your own user) or (if you are an
admin debugging for another user) the [Resetting another user mail
password](#resetting-another-user-mail-password) instructions.
## Resetting another user mail password ## Resetting another user mail password
To set a new password by hand in LDAP, you can use `doveadm` to To set a new password by hand in LDAP, you can use `doveadm` to
...@@ -879,20 +898,7 @@ dashboard](https://grafana.torproject.org/d/Ds5BxBYGk/postfix-mtail?orgId=1&var- ...@@ -879,20 +898,7 @@ dashboard](https://grafana.torproject.org/d/Ds5BxBYGk/postfix-mtail?orgId=1&var-
### Submission server ### Submission server
To test delivery manually, make sure you have an `emailPassword` set See [Testing the submission server](#testing-the-submission-server).
(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@torproject.org -t anarcat@torproject.org -s submission.torproject.org -tls -p 587 -au anarcat -ap -pp
If you do not have a password set in LDAP, follow the [setting an
email password](#setting an email password) instructions (for your own user) or (if you are an
admin debugging for another user) the [Resetting another user mail
password](#resetting-another-user-mail-password) instructions.
## Logs ## Logs
... ...
......