Skip to content

Commit 4b958e5

Browse files
committed
Add support for parsing relay config values
1 parent 728267d commit 4b958e5

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
lines changed

sail.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ ListenAddress 127.0.0.1
22
Port 8000
33
Maildir maildir/{destination user:strip and lowercase}/{destination domain:uppercase}
44
Hostnames localhost
5-
Relayables sail_testing@nyble.dev
5+
Relays nyble.dev

saild/test/integration_tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from os import listdir
77

88
process: subprocess.Popen[bytes] | None = None
9-
testfiles = [("happy_path.txt", ["snep", "coati"]), ("abortive.txt", [])]
9+
testfiles = [("happy_path.txt", ["snep", "coati"]), ("abortive.txt", []), ("relay.txt", [])]
1010
is_error: bool = True
1111

1212
@dataclass

saild/test/relay.txt

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
S: 220 localhost (Sail) ready
2+
C: EHLO test.domain
3+
S: 250-localhost (sail) greets test.domain
4+
S: 250 Help
5+
C: MAIL FROM:<[email protected]>
6+
S: 250 Okay
7+
C: RCPT TO:<[email protected]>
8+
S: 250 Okay
9+
C: DATA
10+
S: 354 Start mail input
11+
C: Autogenerated mail from a saild integration test :)
12+
C: .
13+
S: 250
14+
C: QUIT
15+
S: 221 localhost Goodbye

0 commit comments

Comments
 (0)