summaryrefslogtreecommitdiff
path: root/100-mail.yarn
diff options
context:
space:
mode:
Diffstat (limited to '100-mail.yarn')
-rw-r--r--100-mail.yarn69
1 files changed, 0 insertions, 69 deletions
diff --git a/100-mail.yarn b/100-mail.yarn
deleted file mode 100644
index 60e0be9..0000000
--- a/100-mail.yarn
+++ /dev/null
@@ -1,69 +0,0 @@
-# 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
- AND mails for liw with subject $R get deleted
-
- 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
- AND mails for liw with subject $R get deleted
-
- 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
- AND mails for liw with subject $R get deleted
-
- 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
- AND mails for liw with subject $R get deleted
-
- 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
- AND mails for liw with subject $R get deleted
-
- GIVEN large random number R
- WHEN someone sends mail to liw-passthrough@liw.fi with subject $R
- THEN mailbox of liw has a mail with subject $R
- AND mails for liw with subject $R get deleted
-
- WHEN someone sends mail to bugs-passthrough@liw.fi with subject $R
- THEN mailbox of distix has a mail with subject $R
- AND mailbox of liw has a mail with subject $R
- AND mails for distix with subject $R get deleted
- AND mails for liw with subject $R get deleted
-
-`pieni.net` needs to accept mail from my various machines, and relay
-them anywhere. However, only from my machines, not any random spammer.
-
- SCENARIO mail relaying is denied
- WHEN client sends MAIL FROM:root@code.liw.fi
- AND client sends RCPT TO:liw@iki.fi
- THEN SMTP status code is 554
-
- SCENARIO mail relaying is allowed for pienirelay
- WHEN client SMTP authenticates as pienirelay
- AND client sends MAIL FROM:root@code.liw.fi
- AND client sends RCPT TO:liw@iki.fi
- THEN SMTP status code is 250