You've already forked Mailu
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:
@@ -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' \
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user