Update integration test for extension address Dovecot LMTP delivery to more wide case
This commit is contained in:
parent
5a08ab5658
commit
df9dee8ab1
|
@ -1 +1,2 @@
|
||||||
mail_max_userip_connections = 69
|
mail_max_userip_connections = 69
|
||||||
|
recipient_delimiter = ~
|
||||||
|
|
|
@ -1,2 +1,3 @@
|
||||||
|
recipient_delimiter = ~
|
||||||
max_idle = 600s
|
max_idle = 600s
|
||||||
readme_directory = /tmp
|
readme_directory = /tmp
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
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 With Delimiter <alias1+test@localhost.localdomain>
|
To: Existing Local Alias With Delimiter <alias1+test@localhost.localdomain>
|
||||||
|
|
|
@ -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