IRedMail 邮箱配置

本文提供了一RedMail邮件系统的详细配置流程,包括下载、主机名设置、数据库安装与权限配置、解决邮件收发问题、POP3/IMAP及SMTP安全连接配置、Outlook客户端设置等关键步骤。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

下载
https://www.iredmail.com/download.html
配置
https://docs.iredmail.org/install.iredmail.on.rhel.html

配置注意事项:
1、主机名

hostnamectl set-hostname mail.IRedMail.com.cn 

2、安装数据库,配置权限,密码

yum -y install mysql
yum -y install mariadb-server
 grant all on *.* to root@'localhost' identified by '1234567890' with grant option ; 

3、一些配置
/data/vmail
iredmail.com.cn
1234567890


4、解决退信问题(iredmail 能发不能收 问题)
log错误信息
postfix/postscreen[11355]: NOQUEUE: reject: RCPT from [58.100.201.195]:55227: 550 5.7.1 Service unavailable; client [*.*.*.*] blocked using zen.spamhaus.org;
问题:被DNSBL拒绝了,中国很多邮件服务都被DNSBL列入黑名单,所以只要禁用DNSBL功能即可
步骤:vi /etc/postfix/master.cf   修改成如下图,然后重启systemctl restart postfix

现在可以收信,但是非常非常非常慢,还需关键一步

cd /opt/iredapd/tools/
python spf_to_greylist_whitelists.py outlook.com microsoft.com 126.com 163.com qq.com foxmail.com

具体解释url:https://blog.csdn.net/weixin_33743880/article/details/91722360

It queries SPF and MX records of specified mail domain names, then store all converted IP addresses/networks defined in SPF/MX records in SQL tableiredapd.greylisting_whitelists.

To whitelist IP addresses/networks of some mail domain, for example,outlook.commicrosoft.com, please run command like below:

# cd /opt/iredapd/tools/
# python spf_to_greylist_whitelists.py outlook.com microsoft.com

If you want to whitelist more mail domains, just run the command with the domain names like above sample.

Since iRedAPD-1.8.0, we have SQL table iredapd.greylisting_whitelist_domainsto store these mail domain names. if you run spf_to_greylist_whitelists.pywithout any argument, it will fetch all mail domains stored in sql table greylisting_whitelist_domains instead of fetching from command line arguments.

# python spf_to_greylist_whitelists.py

You should setup a cron job to run this script, so that it can keep the IP addresses/networks up to date. iRedMail sets up the cron job to run every 10 minutes, like below:

*/10   *   *   *   *   /usr/bin/python /opt/iredapd/tools/spf_to_greylist_whitelists.py &>/dev/null


5、解决 POP3/IMAP ,ssl/tls登录问题
默认客户端需要配置ssl/tls安全连接
否则错误提示:Plaintext authentication disallowed on non-secure (SSL/TLS) connections
解决办法: 修改/usr/local/etc/dovecot/dovecot.conf文件下面行,然后重启Dovecot服务

    disable_plaintext_auth=no
    ssl=yes


6、解决mailx等连接错误 smtp-server: 503 5.5.1 Error: authentication not enabled 问题
解决办法:修改/etc/postfix/main.cf 为如下行,重启服务systemctl restart postfix

    smtpd_sasl_auth_enable = yes
    smtpd_sasl_security_options = noanonymous
    # force all clients to use secure connection through port 25
    #smtpd_tls_auth_only=yes

url:https://docs.iredmail.org/allow.insecure.pop3.imap.smtp.connections.html

7、outlook 客户端配置
https://docs.iredmail.org/activesync.outlook.html

https://docs.iredmail.org/index.html
 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

疯飙的蜗牛

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值