vi /etc/iredmail-release
將內容改成 1.0
cd /etc/fail2ban/filter.d/ mv postfix.iredmail.conf postfix.iredmail.conf.0.9.9 wget -O postfix.iredmail.conf https://github.com/iredmail/iRedMail/raw/1.0/samples/fail2ban/filter.d/postfix.iredmail.conf mv dovecot.iredmail.conf dovecot.iredmail.conf.0.9.9 wget -O dovecot.iredmail.conf https://github.com/iredmail/iRedMail/raw/1.0/samples/fail2ban/filter.d/dovecot.iredmail.conf
重啟 Fail2ban 服務
systemctl restart fail2ban
dovecot --version
vi /etc/dovecot/dovecot.conf
找到 plugin {} 區塊,添加以下三個參數
plugin { : # 1.0 Add quota_status_success = DUNNO quota_status_nouser = DUNNO quota_status_overquota = "552 5.2.2 Mailbox is full" }
再添加以下配置以啟用配額狀態服務,監聽在 127.0.0.1:12340
: # 1.0 Add service quota-status { executable = quota-status -p postfix client_limit = 1 inet_listener { address = 127.0.0.1 port = 12340 } } !include_try /etc/dovecot/iredmail/*.conf
systemctl restart dovecot
vi /etc/postfix/main.cf
添加以下配置以啟用配額查詢
: smtpd_recipient_restrictions = ... check_policy_service inet:127.0.0.1:12340
重載 Postfix 服務
postfix reload
cd mkdir 1.0 cd 1.0 wget -O iredmail.mysql https://github.com/iredmail/iRedMail/raw/1.0/update/1.0/iredmail.mysql mysql vmail < ./iredmail.mysql
systemctl status postfix dovecot fail2ban slapd
vi /etc/iredmail-release
將版本號改為 1.1
cd /maildata/backup/ mv backup_mysql.sh backup_mysql.sh.1.0 wget -O backup_mysql.sh https://github.com/iredmail/iRedMail/raw/1.1/tools/backup_mysql.sh chown root backup_mysql.sh chmod 0500 backup_mysql.sh mv backup_sogo.sh backup_sogo.sh.1.0 wget -O backup_sogo.sh https://github.com/iredmail/iRedMail/raw/1.1/tools/backup_sogo.sh chown root backup_sogo.sh chmod 0500 backup_sogo.sh
vi /etc/rsyslog.d/1-iredmail-iredapd.conf
if $syslogfacility-text == 'local5' and ($syslogtag startswith 'iredapd' or $msg startswith 'iredapd ') then -/var/log/iredapd/iredapd.log
重啟 rsyslog
systemctl restart rsyslog
perl -pi -e 's#%d#%s#g' /etc/postfix/mysql/relay_domains.cf postfix reload
systemctl status postfix dovecot rsyslog
vi /etc/iredmail-release
將版本號改為 1.2
vi /etc/dovecot/dovecot.conf
禁用 mailbox_list_index
: # 1.2 Add mailbox_list_index = no !include_try /etc/dovecot/iredmail/*.conf
重啟 Dovecot
systemctl restart dovecot
systemctl status postfix dovecot
vi /etc/iredmail-release
將版本號改為 1.2.1
cd mkdir 1.2.1 cd 1.2.1 wget -O iRedAPD-5.9.0.tar.gz https://github.com/iredmail/iRedAPD/archive/5.9.0.tar.gz tar zxf iRedAPD-5.9.0.tar.gz cd iRedAPD-5.9.0/tools/ bash upgrade_iredapd.sh
cd /usr/bin/ mv mlmmj-amime-receive mlmmj-amime-receive.1.2 wget -O mlmmj-amime-receive https://github.com/iredmail/iRedMail/raw/1.2/samples/mlmmj/mlmmj-amime-receive chown mlmmj:mlmmj mlmmj-amime-receive chmod 0550 mlmmj-amime-receive
systemctl status postfix dovecot