Test with non-default recipient_delimiter
This commit is contained in:
parent
99c721fb91
commit
9c2bfe0900
|
@ -1,2 +1,3 @@
|
|||
recipient_delimiter = -
|
||||
max_idle = 600s
|
||||
readme_directory = /tmp
|
|
@ -1,9 +1,9 @@
|
|||
HELO mail.external.tld
|
||||
MAIL FROM: user@external.tld
|
||||
RCPT TO: alias1+test@localhost.localdomain
|
||||
RCPT TO: alias1-test@localhost.localdomain
|
||||
DATA
|
||||
From: Docker Mail Server <dockermailserver@external.tld>
|
||||
To: Existing Local Alias <alias1+test@localhost.localdomain>
|
||||
To: Existing Local Alias <alias1-test@localhost.localdomain>
|
||||
Date: Sat, 22 May 2010 07:43:25 -0400
|
||||
Subject: Test Message
|
||||
This is a test mail.
|
||||
|
|
|
@ -273,9 +273,12 @@ load 'test_helper/bats-assert/load'
|
|||
}
|
||||
|
||||
@test "checking smtp: delivers mail to existing alias with recipient delimiter" {
|
||||
run docker exec mail /bin/sh -c "grep 'to=<user1+test@localhost.localdomain>, orig_to=<alias1+test@localhost.localdomain>' /var/log/mail/mail.log | grep 'status=sent' | wc -l"
|
||||
run docker exec mail /bin/sh -c "grep 'to=<user1-test@localhost.localdomain>, orig_to=<alias1-test@localhost.localdomain>' /var/log/mail/mail.log | grep 'status=sent' | wc -l"
|
||||
assert_success
|
||||
assert_output 1
|
||||
|
||||
run docker exec mail /bin/sh -c "grep 'to=<user1-test@localhost.localdomain>' /var/log/mail/mail.log | grep 'status=bounced'"
|
||||
assert_failure
|
||||
}
|
||||
|
||||
@test "checking smtp: delivers mail to existing catchall" {
|
||||
|
|
Loading…
Reference in New Issue