Fixed #230 adding postifx configuration. Also added tests.

This commit is contained in:
Thomas VIAL 2016-07-23 21:01:01 +02:00
parent 4d164bb71b
commit 0f7e7bb693
No known key found for this signature in database
GPG key ID: 0394CEE552FAFEFC
5 changed files with 20 additions and 3 deletions

View file

@ -131,7 +131,7 @@
@test "checking smtp: delivers mail to existing account" {
run docker exec mail /bin/sh -c "grep 'status=sent (delivered via dovecot service)' /var/log/mail/mail.log | wc -l"
[ "$status" -eq 0 ]
[ "$output" -eq 4 ]
[ "$output" -eq 5 ]
}
@test "checking smtp: delivers mail to existing alias" {
@ -149,7 +149,7 @@
@test "checking smtp: user1 should have received 3 mails" {
run docker exec mail /bin/sh -c "ls -A /var/mail/localhost.localdomain/user1/new | wc -l"
[ "$status" -eq 0 ]
[ "$output" = 3 ]
[ "$output" = 4 ]
}
@test "checking smtp: rejects mail to unknown user" {
@ -427,6 +427,8 @@
@test "checking system: /var/log/mail/mail.log is error free" {
run docker exec mail grep 'non-null host address bits in' /var/log/mail/mail.log
[ "$status" -eq 1 ]
run docker exec mail grep 'mail system configuration error' /var/log/mail/mail.log
[ "$status" -eq 1 ]
run docker exec mail grep ': error:' /var/log/mail/mail.log
[ "$status" -eq 1 ]
run docker exec mail_pop3 grep 'non-null host address bits in' /var/log/mail/mail.log