forked from jeboehm/docker-mailserver
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: Add support for catchall addresses (jeboehm#191)
fixes jeboehm#144
- Loading branch information
Showing
4 changed files
with
19 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,12 +43,14 @@ up: .env | |
.PHONY: fixtures | ||
fixtures: | ||
$(COMPOSE_PRODUCTION) run --rm web /usr/local/bin/fixtures.sh /opt/manager/bin/console domain:add example.com | ||
$(COMPOSE_PRODUCTION) run --rm web /usr/local/bin/fixtures.sh /opt/manager/bin/console domain:add example.org | ||
$(COMPOSE_PRODUCTION) run --rm web /usr/local/bin/fixtures.sh /opt/manager/bin/console user:add --admin --password=changeme --enable admin example.com | ||
$(COMPOSE_PRODUCTION) run --rm web /usr/local/bin/fixtures.sh /opt/manager/bin/console user:add --password=test1234 --enable --sendonly sendonly example.com | ||
$(COMPOSE_PRODUCTION) run --rm web /usr/local/bin/fixtures.sh /opt/manager/bin/console user:add --password=test1234 --enable --quota=1 quota example.com | ||
$(COMPOSE_PRODUCTION) run --rm web /usr/local/bin/fixtures.sh /opt/manager/bin/console user:add --password=test1234 disabled example.com | ||
$(COMPOSE_PRODUCTION) run --rm web /usr/local/bin/fixtures.sh /opt/manager/bin/console user:add --password=test1234 --sendonly disabledsendonly example.com | ||
$(COMPOSE_PRODUCTION) run --rm web /usr/local/bin/fixtures.sh /opt/manager/bin/console alias:add [email protected] [email protected] | ||
$(COMPOSE_PRODUCTION) run --rm web /usr/local/bin/fixtures.sh /opt/manager/bin/console alias:add --catchall @example.com [email protected] | ||
$(COMPOSE_PRODUCTION) run --rm web /usr/local/bin/fixtures.sh /opt/manager/bin/console dkim:setup example.com --enable --selector 1337 | ||
|
||
.PHONY: unofficial-sigs | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,16 @@ | |
[ "$status" -eq 0 ] | ||
} | ||
|
||
@test "send mail to unknown address (catchall)" { | ||
run swaks -s mta --to [email protected] --body "$BATS_TEST_DESCRIPTION" | ||
[ "$status" -eq 0 ] | ||
} | ||
|
||
@test "send mail to unknown address should fail" { | ||
run swaks -s mta --to [email protected] --body "$BATS_TEST_DESCRIPTION" | ||
[ "$status" -eq 24 ] | ||
} | ||
|
||
@test "authentification on smtp with disabled account should fail" { | ||
run swaks -s mta --to [email protected] --from [email protected] -a -au [email protected] -ap test1234 -tls --body "$BATS_TEST_DESCRIPTION" | ||
[ "$status" -eq 28 ] | ||
|
@@ -91,6 +101,11 @@ | |
[ "$status" -eq 0 ] | ||
} | ||
|
||
@test "catchall mail is delivered" { | ||
run grep -r "send mail to unknown address (catchall)" /var/vmail/example.com/admin/Maildir/ | ||
[ "$status" -eq 0 ] | ||
} | ||
|
||
@test "junk mail is assorted to the junk folder" { | ||
run grep -r "send junk mail to local address" /var/vmail/example.com/admin/Maildir/.Junk/ | ||
[ "$status" -eq 0 ] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ FROM roundcube/roundcubemail:1.5.x-fpm AS roundcube | |
FROM composer:2.3 AS composer | ||
FROM php:8.1-fpm-alpine | ||
|
||
ARG ADMIN_VER=2.0.6 # renovate: depName=jeboehm/mailserver-admin | ||
ARG ADMIN_VER=2.1.0 # renovate: depName=jeboehm/mailserver-admin | ||
|
||
LABEL maintainer="[email protected]" | ||
LABEL vendor="https://github.com/jeboehm/docker-mailserver" | ||
|