差異處
這裏顯示兩個版本的差異處。
兩邊的前次修訂版 前次修改 下次修改 | 前次修改 | ||
tech:iredmail [2020/09/23 20:22] – [關閉 SPF 的方式] jonathan_tsai | tech:iredmail [2021/06/27 00:05] (目前版本) – [更新版本程序] jonathan | ||
---|---|---|---|
行 272: | 行 272: | ||
* 參考 - https:// | * 參考 - https:// | ||
* Exp. 目前版本是 0.9.8 預計更新到最新版 0.9.9 -> 參考 https:// | * Exp. 目前版本是 0.9.8 預計更新到最新版 0.9.9 -> 參考 https:// | ||
- | - Upgrade iRedAPD -> 2.4 - https:// | + | - Upgrade iRedAPD -> 5.0.2 - https:// |
su - root | su - root | ||
mkdir -p 0.9.9 | mkdir -p 0.9.9 | ||
cd 0.9.9 | cd 0.9.9 | ||
- | wget https://dl.iredmail.org/yum/misc/iRedAPD-2.4.tar.bz2 | + | wget -O iRedAPD-5.0.2.tar.gz |
- | tar xjf iRedAPD-2.4.tar.bz2 | + | tar zxf iRedAPD-5.0.2.tar.gz |
- | cd iRedAPD-2.4/tools/ | + | cd iRedAPD-5.0.2/tools/ |
bash upgrade_iredapd.sh | bash upgrade_iredapd.sh | ||
- | </ | + | </ |
- | : | + | - Upgrade iRedAdmin -> 1.3 - https:// |
- | 2019-02-16 23:43:34 INFO Starting iRedAPD (version: 2.4, backend: mysql), listening on 127.0.0.1: | + | cd /root/0.9.9 |
- | 2019-02-16 23:43:34 INFO Log rotate type: time, interval: W6, backup copies: 12. | + | wget https:// |
- | 2019-02-16 23:43:34 INFO Loading plugin (priority: 100): reject_null_sender | + | tar zxvf iRedAdmin-1.3.tar.gz |
- | 2019-02-16 23:43:34 INFO Loading plugin (priority: 99): wblist_rdns | + | cd iRedAdmin-1.3/tools/ |
- | 2019-02-16 23:43:34 INFO Loading plugin (priority: 90): reject_sender_login_mismatch | + | |
- | 2019-02-16 23:43:34 INFO Loading plugin (priority: 80): greylisting | + | |
- | 2019-02-16 23:43:34 INFO Loading plugin (priority: 60): throttle | + | |
- | 2019-02-16 23:43:34 INFO Loading plugin (priority: 50): sql_alias_access_policy | + | |
- | 2019-02-16 23:43:34 INFO Loading plugin (priority: 40): amavisd_wblist | + | |
- | : | + | |
- | </file> | + | |
- | - Upgrade iRedAdmin -> 0.9.4 - https:// | + | |
- | wget https:// | + | |
- | tar xjf iRedAdmin-0.9.4.tar.bz2 | + | |
- | cd iRedAdmin-0.9.4/tools/ | + | |
bash upgrade_iredadmin.sh | bash upgrade_iredadmin.sh | ||
</ | </ | ||
- | - Upgrade mlmmjadmin -> 2.1 - https:// | + | - Upgrade mlmmjadmin -> 3.1.2 - https:// |
- | wget https:// | + | cd /root/0.9.9 |
- | tar zxf 2.1.tar.gz | + | wget https:// |
- | cd mlmmjadmin-2.1/tools/ | + | tar zxf 3.1.2.tar.gz |
+ | cd mlmmjadmin-3.1.2/tools/ | ||
bash upgrade_mlmmjadmin.sh | bash upgrade_mlmmjadmin.sh | ||
</ | </ | ||
- | - Upgrade Roundcube webmail -> 1.3.8 - https:// | + | - Upgrade Roundcube webmail -> 1.4.11 - https:// |
- | wget https:// | + | cd /root/0.9.9 |
+ | wget https:// | ||
tar xf roundcubemail-*.tar.gz | tar xf roundcubemail-*.tar.gz | ||
cd roundcubemail-* | cd roundcubemail-* | ||
- | bin/ | + | bin/ |
</ | </ | ||
- Upgrade netdata -> 1.12.0 - https:// | - Upgrade netdata -> 1.12.0 - https:// | ||
行 341: | 行 332: | ||
- Improve mlmmj script used for appending footer text< | - Improve mlmmj script used for appending footer text< | ||
cd /usr/bin/ | cd /usr/bin/ | ||
- | wget -O mlmmj-amime-receive https://bitbucket.org/zhb/iredmail/raw/default/ | + | wget -O mlmmj-amime-receive https://raw.githubusercontent.com/iredmail/iRedMail/master/ |
chown mlmmj:mlmmj mlmmj-amime-receive | chown mlmmj:mlmmj mlmmj-amime-receive | ||
chmod 0550 mlmmj-amime-receive | chmod 0550 mlmmj-amime-receive | ||
行 385: | 行 376: | ||
- Fixed: SOGo backup script ((如果安裝時有更改目錄 Exp. / | - Fixed: SOGo backup script ((如果安裝時有更改目錄 Exp. / | ||
cd / | cd / | ||
- | wget -O backup_sogo.sh https://bitbucket.org/zhb/iredmail/raw/default/ | + | wget -O backup_sogo.sh https://raw.githubusercontent.com/iredmail/iRedMail/master/ |
chown root backup_sogo.sh | chown root backup_sogo.sh | ||
chmod 0400 backup_sogo.sh | chmod 0400 backup_sogo.sh | ||
行 391: | 行 382: | ||
- MySQL/ | - MySQL/ | ||
- SQL structure changes in vmail database <code sh> | - SQL structure changes in vmail database <code sh> | ||
- | wget -O iredmail.mysql https://bitbucket.org/zhb/iredmail/raw/default/extra/ | + | cd / |
+ | wget -O iredmail.mysql https://raw.githubusercontent.com/iredmail/iRedMail/master/ | ||
mysql vmail < iredmail.mysql | mysql vmail < iredmail.mysql | ||
</ | </ | ||
行 437: | 行 429: | ||
systemctl enable amavisd | systemctl enable amavisd | ||
</ | </ | ||
+ | |||
+ | ==== 忘記 iRedAdmin 登入的管理者密碼處理方式 ==== | ||
+ | * 可以直接透過資料庫加上一位現有的信箱用戶當管理者 Exp. [email protected] | ||
+ | * 登入 iRedMail 的資料庫< | ||
+ | mysql -u root -p | ||
+ | USE vmail; | ||
+ | select isadmin, | ||
+ | UPDATE mailbox SET isadmin=1, isglobaladmin=1 WHERE username = ' | ||
+ | INSERT INTO domain_admins (username, domain) VALUES (' | ||
+ | </ | ||
+ | * 看詳細過程< | ||
+ | mysql -u root -p | ||
+ | MariaDB [(none)]> | ||
+ | Reading table information for completion of table and column names | ||
+ | You can turn off this feature to get a quicker startup with -A | ||
+ | |||
+ | Database changed | ||
+ | MariaDB [vmail]> select isadmin, | ||
+ | +---------+---------------+ | ||
+ | | isadmin | isglobaladmin | | ||
+ | +---------+---------------+ | ||
+ | | 0 | 0 | | ||
+ | +---------+---------------+ | ||
+ | 1 row in set (0.00 sec) | ||
+ | |||
+ | MariaDB [vmail]> UPDATE mailbox SET isadmin=1, isglobaladmin=1 WHERE username = ' | ||
+ | Query OK, 1 row affected (0.00 sec) | ||
+ | Rows matched: 1 Changed: 1 Warnings: 0 | ||
+ | |||
+ | MariaDB [vmail]> | ||
+ | Query OK, 1 row affected (0.00 sec) | ||
+ | MariaDB [vmail]> exit | ||
+ | Bye | ||
+ | </ | ||
+ | * 使用這位帳號密碼登入 iRedAdmin 就可以進行 Web 的管理 | ||
行 450: | 行 477: | ||
* https:// | * https:// | ||
* https:// | * https:// | ||
+ | * https:// | ||
{{tag> | {{tag> |