Update integration test for extension address Dovecot LMTP delivery to more wide case

This commit is contained in:
tyranron 2017-03-01 20:19:27 +02:00
parent 5a08ab5658
commit df9dee8ab1
4 changed files with 7 additions and 2 deletions

View File

@ -1 +1,2 @@
mail_max_userip_connections = 69
recipient_delimiter = ~

View File

@ -1,2 +1,3 @@
recipient_delimiter = ~
max_idle = 600s
readme_directory = /tmp

View File

@ -1,6 +1,6 @@
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 With Delimiter <alias1+test@localhost.localdomain>

View File

@ -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" {