Update to README and change-domain.sh
This commit is contained in:
parent
662b70b544
commit
2a2cd7aed6
|
@ -1,3 +1,6 @@
|
|||
| iRedMail version compatibility | 1.2.1 |
|
||||
| ------------- | ------------- |
|
||||
|
||||
Administrative scripts for iRedMail, useful if you do not use iRedAdmin, or you do not have iRedAdmin Pro.
|
||||
|
||||
Read the examples and usage in each script to understand the parameters to use. Each script will generate SQL for you to use. These scripts are for a iRedMail installation with an SQL back end, specifically PostgreSQL.
|
||||
|
@ -45,7 +48,7 @@ There are scripts so far to do the following administrative functions:
|
|||
| | disable-mail-forwarding.sh | Disables mail forwarding from a given address to another entered address, but do not delete the configured forward |
|
||||
| Domain | | |
|
||||
| | add-domain.sh | Creates a new domain in the database, after which you can begin creating user accounts in the new domain |
|
||||
| | update-domain.sh | Change domain name of an existing domain and associated mail accounts |
|
||||
| | change-domain.sh | Change domain name of an existing domain and associated mail accounts |
|
||||
| | remove-domain.sh | Removes a domain from the database |
|
||||
| | update-domain-quota.sh | Updates the domain wide mailbox quota |
|
||||
| | update-all-domain-quota.sh | Updates all existing domains with a new default mailbox quota |
|
||||
|
|
|
@ -7,12 +7,12 @@
|
|||
#
|
||||
# WARNING: This changes ONLY the SQL side, the mail directory needs to be renamed as well as any existing maildir to reflect the new domain.
|
||||
#
|
||||
# sh update-domain.sh old-domain.com new-domain.com
|
||||
# sh change-domain.sh old-domain.com new-domain.com
|
||||
#
|
||||
# This will print SQL commands on the console directly, you can redirect the
|
||||
# output to a file for further use like this:
|
||||
#
|
||||
# sh update-domain.sh old-domain.com new-domain.com > output.sql
|
||||
# sh change-domain.sh old-domain.com new-domain.com > output.sql
|
||||
#
|
||||
# Import output.sql into SQL database like below:
|
||||
#
|
||||
|
@ -30,7 +30,7 @@ new="$2"
|
|||
if [ "$1" == "-h" ] || [ "$1" == "--h" ] || [ "$1" == "/h" ] || [ $# -ne 2 ]; then
|
||||
printf "Purpose: Change domain name of an existing domain and associated mail accounts in iRedmail. \n"
|
||||
printf "WARNING: This changes ONLY the SQL side, the mail directory needs to be renamed as well as any existing maildir to reflect the new domain. \n"
|
||||
printf "Usage: sh update-domain.sh old-domain.com new-domain.com \n"
|
||||
printf "Usage: sh change-domain.sh old-domain.com new-domain.com \n"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue