1
0
mirror of https://github.com/Mailu/Mailu.git synced 2025-08-10 22:31:47 +02:00

Forgot to create the mailu.io domain as the first step in tests

This commit is contained in:
Dimitri Huisman
2024-03-22 15:23:12 +00:00
parent 2558ae3bc9
commit 18d5fb8a1b
2 changed files with 21 additions and 1 deletions

View File

@@ -1,5 +1,25 @@
# create user admin@maiu.io
echo "Create users"
curl --silent --insecure -X 'POST' \
'https://localhost/api/v1/domain' \
-H 'accept: application/json' \
-H 'Authorization: Bearer apitest' \
-H 'Content-Type: application/json' \
-d '{
"name": "mailu.io",
"comment": "internal domain for testing",
"max_users": -1,
"max_aliases": -1,
"max_quota_bytes": 0,
"signup_enabled": false
}' | grep 200
if [ $? -ne 0 ]; then
exit 1
fi
echo "Domain mail.io has been created successfully"
curl --silent --insecure -X 'POST' \
'https://localhost/api/v1/user' \
-H 'accept: application/json' \

View File

@@ -148,4 +148,4 @@ REAL_IP_FROM=
# choose wether mailu bounces (no) or rejects (yes) mail when recipient is unknown (value: yes, no)
REJECT_UNLISTED_RECIPIENT=
API_TOKEN=apitest
API_TOKEN=apitest