https://docs.iredmail.org/migrate.to.new.iredmail.server.html
https://docs.iredmail.org/backup.restore.html
1) 修改php配置文件
vi /etc/php/7.0/fpm/php.ini
memory_limit = 200M;
post_max_size = 100M;
upload_max_filesize = 100M;
重启服务
sudo service php7.0-fpm restart
2) Roundcube附件大小
vi /opt/www/roundcubemail/.htaccess
php_value upload_max_filesize 100M
php_value post_max_size 100M
php_value memory_limit 200M
对于roundcube 1.6.1 版本,php 8.1 版本:
修改配置文件 /opt/www/roundcubemail-1.6.1/config/config.inc.php
......
$config['max_message_size'] = '100M'; //此值会按照相关大小缩小显示
......
3) 修改对应的nginx配置,比如改成100M
vi /etc/nginx/conf-enabled/client_max_body_size.conf
client_max_body_size 100m;
重启服务
sudo service nginx restart
4) 限制 SOGo 上传文件大小
vi /etc/sogo/sogo.conf
WOMaxUploadSize = 102400;
重启服务
sudo service sogo restart
1) 首先生成配置文件
可用参考iRedMail-0.9.8/samples/amavisd/amavisd.conf,注意默认域名需要正确配置,如有多个,请添加
# Add dkim_key here.
dkim_key('cwbiotech.com.cn', 'dkim', '/var/lib/dkim/cwbiotech.com.cn.pem');
dkim_key('genewill.cn', 'dkim', '/var/lib/dkim/genewill.cn.pem');
@dkim_signature_options_bysender_maps = ({
# 'd' defaults to a domain of an author/sender address,
# 's' defaults to whatever selector is offered by a matching key
# Per-domain dkim key
#"domain.com" => { d => "domain.com", a => 'rsa-sha256', ttl => 10*24*3600 },
# catch-all (one dkim key for all domains)
'.' => {d => 'cwbiotech.com.cn',
a => 'rsa-sha256',
c => 'relaxed/simple',
ttl => 30*24*3600 },
'.' => {d => 'genewill.cn',
a => 'rsa-sha256',
c => 'relaxed/simple',
ttl => 30*24*3600 },
});
2) 拷贝配置文件到/etc/amavis/conf.d/50-user目录覆盖源文件
3) 生成对应的配置pem文件
amavisd-new -c /etc/amavis/conf.d/50-user genrsa /var/lib/dkim/cwbiotech.com.cn.pem
amavisd-new -c /etc/amavis/conf.d/50-user genrsa /var/lib/dkim/genewill.cn.pem
4) 重启服务
#amavisd-new reload
#amavisd-new showkeys
5) 如果出现对应的域名,说明配置成功, 接着配置DNS解析,比如genewill.cn
注意txt至需要去掉“号
配置完成检查:
#amavisd-new testkeys
TESTING#1 cwbiotech.com.cn: dkim._domainkey.cwbiotech.com.cn => pass
TESTING#2 genewill.cn: dkim._domainkey.genewill.cn => pass
1. 更新 iredmail 0.9.8 ssl 证书:
可以从阿里云申请ssl证书,下载对应的nginx版本
比如:7636229_m.genewill.cn_nginx.zip版本
完成后重启nginx服务
相关主配置文件
/etc/nginx/sites-available/00-default-ssl.conf
iredadmin 无法启动,缺少web模块
centos stream为例:
1) 安装pip: yum –y install python3 python3-pip
2)安装web:
如何扩容,如果是EXSI需要注意不要有快照,否则会有错误3提示
centos stream 为例:
1) fdisk -l #查看新磁盘是否添加成功,本例发现新出现sdb物理磁盘,即添加硬盘成功
给新硬盘分区:n-p-回车-回车-w 保存退出,详细参数输m查看
2) lsblk -f #查看一下磁盘逻辑和文件系统
3) pvdisplay #查看pv组空间
"/dev/sda3" is a new physical volume of "500.00 GiB"
--- NEW Physical volume ---
PV Name /dev/sda3
VG Name
PV Size 500.00 GiB
Allocatable NO
PE Size 0
Total PE 0
Free PE 0
Allocated PE 0
PV UUID tSzAwQ-1PSV-Wy1Q-fZgG-oisj-qqr6-f3WxJT
4) 将刚才创建好的物理卷/dev/sda3添加到pv组空间cs(VG Name)中去
5) 查看卷组vg的容量情况,centos应该已经出现新的空闲空间
6) df -hT #先查询出要动态扩容的分区卷名
比如: /dev/mapper/cs-home xfs 427G 3.1G 424G 1% /home
7) df -hT #查看挂载点、系统和容量,确认容量修改已经成功生效