Test with non-default recipient_delimiter
This commit is contained in:
parent
99c721fb91
commit
9c2bfe0900
|
@ -1,2 +1,3 @@
|
||||||
|
recipient_delimiter = -
|
||||||
max_idle = 600s
|
max_idle = 600s
|
||||||
readme_directory = /tmp
|
readme_directory = /tmp
|
|
@ -1,9 +1,9 @@
|
||||||
HELO mail.external.tld
|
HELO mail.external.tld
|
||||||
MAIL FROM: user@external.tld
|
MAIL FROM: user@external.tld
|
||||||
RCPT TO: alias1+test@localhost.localdomain
|
RCPT TO: alias1-test@localhost.localdomain
|
||||||
DATA
|
DATA
|
||||||
From: Docker Mail Server <dockermailserver@external.tld>
|
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
|
Date: Sat, 22 May 2010 07:43:25 -0400
|
||||||
Subject: Test Message
|
Subject: Test Message
|
||||||
This is a test mail.
|
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" {
|
@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_success
|
||||||
assert_output 1
|
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" {
|
@test "checking smtp: delivers mail to existing catchall" {
|
||||||
|
|
Loading…
Reference in New Issue