You've already forked Mailu
mirror of
https://github.com/Mailu/Mailu.git
synced 2025-12-01 22:41:53 +02:00
Merge remote-tracking branch 'upstream/master' into extend-nginx
This commit is contained in:
12
docs/cli.rst
12
docs/cli.rst
@@ -15,7 +15,7 @@ alias
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
docker-compose run --rm admin python manage.py alias foo example.net "mail1@example.com,mail2@example.com"
|
||||
docker-compose exec admin flask mailu alias foo example.net "mail1@example.com,mail2@example.com"
|
||||
|
||||
|
||||
alias_delete
|
||||
@@ -23,14 +23,14 @@ alias_delete
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
docker-compose run --rm admin python manage.py alias_delete foo@example.net
|
||||
docker-compose exec admin flask mailu alias_delete foo@example.net
|
||||
|
||||
user
|
||||
----
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
docker-compose run --rm admin python manage.py user --hash_scheme='SHA512-CRYPT' myuser example.net 'password123'
|
||||
docker-compose exec admin flask mailu user --hash_scheme='SHA512-CRYPT' myuser example.net 'password123'
|
||||
|
||||
user_import
|
||||
-----------
|
||||
@@ -39,14 +39,14 @@ primary difference with simple `user` command is that password is being imported
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
docker-compose run --rm admin python manage.py user_import --hash_scheme='SHA512-CRYPT' myuser example.net '$6$51ebe0cb9f1dab48effa2a0ad8660cb489b445936b9ffd812a0b8f46bca66dd549fea530ce'
|
||||
docker-compose run --rm admin python manage.py user --hash_scheme='SHA512-CRYPT' myuser example.net '$6$51ebe0cb9f1dab48effa2a0ad8660cb489b445936b9ffd812a0b8f46bca66dd549fea530ce'
|
||||
|
||||
user_delete
|
||||
------------
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
docker-compose run --rm admin python manage.py user_delete foo@example.net
|
||||
docker-compose exec admin flask mailu user_delete foo@example.net
|
||||
|
||||
config_update
|
||||
-------------
|
||||
@@ -55,7 +55,7 @@ The sole purpose of this command is for importing users/aliases in bulk and sync
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
cat mail-config.yml | docker-compose run --rm admin python manage.py config_update --delete_objects
|
||||
cat mail-config.yml | docker-compose exec admin flask mailu config_update --delete_objects
|
||||
|
||||
where mail-config.yml looks like:
|
||||
|
||||
|
||||
@@ -61,6 +61,7 @@ ANTIVIRUS=none
|
||||
|
||||
# Message size limit in bytes
|
||||
# Default: accept messages up to 50MB
|
||||
# Max attachment size will be 33% smaller
|
||||
MESSAGE_SIZE_LIMIT=50000000
|
||||
|
||||
# Networks granted relay permissions, make sure that you include your Docker
|
||||
|
||||
@@ -151,6 +151,6 @@ Finally, you must create the initial admin user account:
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
docker-compose run --rm admin python manage.py admin root example.net password
|
||||
docker-compose exec admin flask mailu admin me example.net password
|
||||
|
||||
This will create a user named ``root@example.net`` with password ``password`` and administration privileges. Connect to the Web admin interface and change the password to a strong one.
|
||||
This will create a user named ``me@example.net`` with password ``password`` and administration privileges. Connect to the Web admin interface and change the password to a strong one.
|
||||
|
||||
@@ -17,7 +17,7 @@ migration script:
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
python manage.py db migrate
|
||||
flask db migrate
|
||||
|
||||
This will generate a new script in ``migrations/versions`` that you must review
|
||||
before adding it for commit.
|
||||
@@ -54,7 +54,7 @@ At that point, to start working on the changed database structure, you will need
|
||||
|
||||
.. code-block:: bash
|
||||
|
||||
python manage.py db upgrade
|
||||
flask db upgrade
|
||||
|
||||
If any error arises, restore the backup, fix the migration script and try again.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user