ewomail 本地发送邮件接收不到_CentOS下搭建EwoMail邮件服务器的几个小诀窍

导读

搭建邮件服务器,过程非常简单,只需几个步骤即可。通常在Linux搭建邮件服务器是需要安装很多软件和配置文件的,所以我们可以使用一个开源邮件服务器软件来搭建的。

准备一台服务器与系统

云服务器或本地虚拟的服务器都可以。

服务器需要能链接网络。

安装centos6/7系统,需要全新干净的系统环境。

配置系统

检查swap是否已启动,如没启动需要配置启动swap。

下载EwoMail邮件服务器

在git下载EwoMail开源版

git地址:https://gitee.com/laowu5/EwoMail

EwoMail集成的软件:

Postfix:邮件服务器

Dovecot:IMAP/POP3/邮件存储

Amavisd:反垃圾和反病毒

Fail2ban:监控策略

LNAMP:apache2.2,nginx1.8, mysql5.5,php5.4

EwoMail-Admin:WEB邮箱管理后台

Rainloop:webmail

安装

将安装包重新命名ewomail.zip

解压安装

unzip -o ewomail.zip

cd EwoMail/install

#需要输入一个邮箱域名,不需要前缀,列如下面的xxx.com

sh ./start.sh xxx.com

安装成功会出现“Complete installation”

剩下只需要配置域名DNS即可使用了<

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
以下是在CentOS 7上搭建公网邮件服务器的步骤: 1. 安装必要的软件包: ```shell yum install postfix dovecot cyrus-sasl-* mailx -y ``` 2. 移除Sendmail(如果已安装): ```shell yum remove -y sendmail ``` 3. 配置Postfix: 编辑主配置文件`/etc/postfix/main.cf`,确保以下配置项正确设置: ```shell myhostname = your_domain.com # 设置你的域名 mydomain = your_domain.com # 设置你的域名 myorigin = $mydomain inet_interfaces = all inet_protocols = all mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain mynetworks = 0.0.0.0/0 home_mailbox = Maildir/ ``` 4. 配置Dovecot: 编辑Dovecot的邮件配置文件`/etc/dovecot/conf.d/10-mail.conf`,取消注释并添加以下行: ```shell mail_location = maildir:~/Maildir ``` 5. 配置SASL认证: 编辑SASL配置文件`/etc/postfix/sasl/smtpd.conf`,确保以下配置项正确设置: ```shell pwcheck_method: saslauthd mech_list: plain login ``` 6. 启动和设置服务: ```shell systemctl start postfix systemctl enable postfix systemctl start dovecot systemctl enable dovecot systemctl restart saslauthd systemctl enable saslauthd ``` 7. 配置防火墙: 如果你的服务器上启用了防火墙,确保允许SMTP(端口25)和IMAP(端口143)流量通过防火墙。 8. 创建邮件用户: ```shell useradd -m -s /sbin/nologin username # 替换username为你想要创建的用户名 passwd username # 设置用户密码 ``` 现在你已经成功搭建CentOS 7上的公网邮件服务器

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值