diff options
author | Lars Wirzenius <liw@liw.fi> | 2017-01-31 19:55:51 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2017-01-31 19:55:51 +0200 |
commit | 7b29338ff9646755e91442ff96f9968741daf1b6 (patch) | |
tree | c2005eac99cb0ffc0a5288ae87126c550887e388 /100-mail.yarn | |
parent | 14cd81f6418b5a81124b000cc950d70bf301b359 (diff) | |
download | server-yarns-7b29338ff9646755e91442ff96f9968741daf1b6.tar.gz |
Start mail handling scenario
Diffstat (limited to '100-mail.yarn')
-rw-r--r-- | 100-mail.yarn | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/100-mail.yarn b/100-mail.yarn new file mode 100644 index 0000000..48a2f1a --- /dev/null +++ b/100-mail.yarn @@ -0,0 +1,51 @@ +# Mail handling + +`pieni.net` is what handles all my incoming mail. There are several +important addresses on a couple of domains. Let's see if they all +work. We do this by sending mail (over SMTP+TLS) and checking it +arrives (over IMAP+TLS). For each mail we use a large random number as +the subject, making each mail unique and easy to check for. + +To run these tests we need to be able to log in via IMAP. For this, +we'll need passwords, and we will get the passwords with the `pass` +utility. Each password should be stored using a name +`server-yarns/imap/username@server` where `username` is the user and +`server` the address used for IMAP. + + SCENARIO server handles incoming mail + + GIVEN server is also known as pieni.net + + GIVEN large random number R + WHEN someone sends mail to postmaster@pieni.net with subject $R + THEN mailbox of liw has a mail with subject $R + + GIVEN large random number R + WHEN someone sends mail to root@pieni.net with subject $R + THEN mailbox of liw has a mail with subject $R + + GIVEN large random number R + WHEN someone sends mail to abuse@pieni.net with subject $R + THEN mailbox of liw has a mail with subject $R + + GIVEN large random number R + WHEN someone sends mail to postmaster@pieni.net with subject $R + THEN mailbox of liw has a mail with subject $R + + GIVEN server is also known as liw.fi + + GIVEN large random number R + WHEN someone sends mail to postmaster@liw.fi with subject $R + THEN mailbox of liw has a mail with subject $R + + GIVEN large random number R + WHEN someone sends mail to abuse@liw.fi with subject $R + THEN mailbox of liw has a mail with subject $R + + GIVEN large random number R + WHEN someone sends mail to liw@liw.fi with subject $R + THEN mailbox of liw has a mail with subject $R + + WHEN someone sends mail to bugs@liw.fi with subject $R + THEN mailbox of distix has a mail with subject $R + AND mailbox of distix has a mail with subject $R |