当前位置: 首页 > news >正文

ubuntu22.04下搭建iRedMail邮件服务器 - 实践

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
语言
在这里插入图片描述
安装更新包在这里插入图片描述在这里插入图片描述
键盘布局在这里插入图片描述
安装选择在这里插入图片描述
配置网络在这里插入图片描述
代理设置
在这里插入图片描述
在这里插入图片描述
国内也没有被墙,可以不改。不过,最近感觉越来越慢了,可以改成阿里云的:http://mirrors.aliyun.com/ubuntu/
在这里插入图片描述

磁盘
在这里插入图片描述
调整LV大小
在这里插入图片描述
格式化分区在这里插入图片描述

在这里插入图片描述
在这里插入图片描述
Your name:是使用在者的名称,没有太多实际意义,但是必须填写。
Your server’s name: 配置服务名
Pick a username:这个用户名为登录系统的用户名
Password:需要输入两次相同密码,建议密码设置相对复杂些,避免被爆破
下载
升级到Ubuntu Pro
在这里插入图片描述

默认Install OpenSSH Server未选中,通过上/下箭头移动到 Install OpenSSH Server选项,按键盘空格键可以选中该选项。

如果不选该内容,系统安装上之后无法通过SSH登录服务器。

在这里插入图片描述

在这里插入图片描述
可以什么都不选,然后直接安装。
在这里插入图片描述
当显示Installation complete时,表示安装完成。然后选中Cancel update and reboot进行重启系统。

下载iRedMail安装包
获取方式三:wget http://www.iredmail.com/iRedMail-1.6.8.tar.bz2获取方式三:wget http://www.iredmail.com/iRedMail-1.6.8.tar.bz2

wqbboy@wqbboy:/opt/mails$ sudo wget http://github.com/iredmail/iRedMail/archive/refs/tags/1.7.4.tar.gz
--2025-09-06 10:58:17-- http://github.com/iredmail/iRedMail/archive/refs/tags/1.7.4.tar.gz
Resolving github.com (github.com)... 140.82.112.3
Connecting to github.com (github.com)|140.82.112.3|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://github.com/iredmail/iRedMail/archive/refs/tags/1.7.4.tar.gz [following]
--2025-09-06 10:58:18-- https://github.com/iredmail/iRedMail/archive/refs/tags/1.7.4.tar.gz
Connecting to github.com (github.com)|140.82.112.3|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://codeload.github.com/iredmail/iRedMail/tar.gz/refs/tags/1.7.4 [following]
--2025-09-06 10:58:19-- https://codeload.github.com/iredmail/iRedMail/tar.gz/refs/tags/1.7.4
Resolving codeload.github.com (codeload.github.com)... 20.205.243.165
Connecting to codeload.github.com (codeload.github.com)|20.205.243.165|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/x-gzip]
Saving to:1.7.4.tar.gz’
1.7.4.tar.gz [ <=>] 244.85K 840KB/s in 0.3s2025-09-06 10:58:20 (840 KB/s) -1.7.4.tar.gz’ saved [250725]wqbboy@wqbboy:/opt/mails$ ls1.7.4.tar.gzwqbboy@wqbboy:/opt/mails$ cat /etc/hosts127.0.0.1 localhost127.0.1.1 wqbboy.domain.com wqbboy# The following lines are desirable for IPv6 capable hosts::1 ip6-localhost ip6-loopbackfe00::0 ip6-localnetff00::0 ip6-mcastprefixff02::1 ip6-allnodesff02::2 ip6-allrouters140.82.112.3 github.com151.101.1.194 github.global.ssl.fastly.netwqbboy@wqbboy:/opt/mails$ ^Cwqbboy@wqbboy:/opt/mails$ ls1.7.4.tar.gz

解压iRedMail-1.7.4.tar.gz

wqbboy@wqbboy:/opt/mails$ sudo tar -zxvf 1.7.4.tar.gz
[sudo] password for wqbboy:
iRedMail-1.7.4/
iRedMail-1.7.4/.github/
iRedMail-1.7.4/.github/ISSUE_TEMPLATE/
iRedMail-1.7.4/.github/ISSUE_TEMPLATE/issue-or-bug-report.md
iRedMail-1.7.4/.gitignore
iRedMail-1.7.4/ChangeLog
iRedMail-1.7.4/Documentations
iRedMail-1.7.4/LICENSE
iRedMail-1.7.4/README.md
iRedMail-1.7.4/conf/
iRedMail-1.7.4/conf/amavisd
iRedMail-1.7.4/conf/clamav
iRedMail-1.7.4/conf/core
iRedMail-1.7.4/conf/dovecot
iRedMail-1.7.4/conf/fail2ban
iRedMail-1.7.4/conf/global
iRedMail-1.7.4/conf/iredadmin
iRedMail-1.7.4/conf/iredapd
iRedMail-1.7.4/conf/logwatch
iRedMail-1.7.4/conf/memcached
iRedMail-1.7.4/conf/mlmmj
iRedMail-1.7.4/conf/mysql
iRedMail-1.7.4/conf/netdata
iRedMail-1.7.4/conf/nginx
iRedMail-1.7.4/conf/openldap
iRedMail-1.7.4/conf/php
iRedMail-1.7.4/conf/postfix
iRedMail-1.7.4/conf/postgresql
iRedMail-1.7.4/conf/roundcube
iRedMail-1.7.4/conf/sogo
iRedMail-1.7.4/conf/spamassassin
iRedMail-1.7.4/conf/web_server
iRedMail-1.7.4/dialog/
iRedMail-1.7.4/dialog/config_via_dialog.sh
iRedMail-1.7.4/dialog/ldap_config.sh
iRedMail-1.7.4/dialog/mysql_config.sh
iRedMail-1.7.4/dialog/optional_components.sh
iRedMail-1.7.4/dialog/pgsql_config.sh
iRedMail-1.7.4/dialog/virtual_domain_config.sh
iRedMail-1.7.4/dialog/web_applications.sh
iRedMail-1.7.4/functions/
iRedMail-1.7.4/functions/amavisd.sh
iRedMail-1.7.4/functions/backend.sh
iRedMail-1.7.4/functions/clamav.sh
iRedMail-1.7.4/functions/cleanup.sh
iRedMail-1.7.4/functions/dovecot.sh
iRedMail-1.7.4/functions/fail2ban.sh
iRedMail-1.7.4/functions/iredadmin.sh
iRedMail-1.7.4/functions/iredapd.sh
iRedMail-1.7.4/functions/ldap_server.sh
iRedMail-1.7.4/functions/mlmmj.sh
iRedMail-1.7.4/functions/mysql.sh
iRedMail-1.7.4/functions/netdata.sh
iRedMail-1.7.4/functions/nginx.sh
iRedMail-1.7.4/functions/openldap.sh
iRedMail-1.7.4/functions/optional_components.sh
iRedMail-1.7.4/functions/packages.sh
iRedMail-1.7.4/functions/packages_freebsd.sh

执行iRedMail.sh脚本
进入iRedMail的解压目录,给安装脚本iRedMail.sh文件添加可执行文件

wqbboy@wqbboy:/opt/mails$ cd iRedMail-1.7.4/
wqbboy@wqbboy:/opt/mails/iRedMail-1.7.4$ ls
ChangeLog dialog functions LICENSE README.md tools
conf Documentations iRedMail.sh pkgs samples update
wqbboy@wqbboy:/opt/mails/iRedMail-1.7.4$ sudo chmod -x iRedMail.sh
wqbboy@wqbboy:/opt/mails/iRedMail-1.7.4$ ^C

运行安装脚本iRedMail脚本,进行iRedMail软件的安装并进行iRedMail的软件配置

bash iRedMail.sh


安装目录在这里插入图片描述
安装nginx在这里插入图片描述
安装数据库在这里插入图片描述
数据库密码在这里插入图片描述
你的域名在这里插入图片描述
邮箱密码m
在这里插入图片描述

在这里插入图片描述
核对安装的配置信息,都选择y进行软件的安装过程,持续时间大约10分钟左右在这里插入图片描述
注意:确保外网连接,需要自动下载插件和库 如果速度较慢可以更换下载源 为huaweicloud 进行下载

在这里插入图片描述
在这里插入图片描述

http://www.gsyq.cn/news/8972.html

相关文章:

  • 深入解析:SQL语句优化的步骤详解
  • 图解22:扩展系统的最佳8种策略
  • Winform项目添加WPF
  • 本地免费使用网页表格控件websheet
  • 图解21:Redis为什么这么快
  • 图解20:API接口12种安全措施
  • C#文件操作入门
  • python2.7+pandas
  • SAP集成HTTP接口(x-www-form-urlencoded格式)
  • iText与OpenPDF使用差异及中文处理完全指南 - 实践
  • 在Go中构建应用级IP防火墙机制
  • PCIe 8.0 v0.3草案公布:SSD硬盘能飙1TB/s速度
  • 用 R 语言实现验证码识别
  • Composer在PHP项目中的手动类自动加载策略
  • 2025-2026-1 20231301 《信息安全设计》第二周学习总结
  • 完整教程:第7.9节:awk语言 nextfile 语句
  • 详细介绍:导师推荐毕设:基于SpringBoot+Vue的中小企业进销存管理系统设计
  • HarmonyOS之UIContext - 实践
  • 深入解析:C语言:猜数字游戏
  • US$29 Vag R250 VW Audi Dashboard Programmer Free Shipping
  • 标题:分享一个值得推荐的免费云服务——阿贝云
  • PPT2Note使用说明
  • 详细介绍:Flink-新增 Kafka source 引发状态丢失导致启动失败
  • DDD - 概念复习
  • CSP-J1S1_2025
  • 基于ThinkPHP实现动态ZIP压缩包的生成
  • 完整教程:还在为第三方包 bug 头疼?patch-package 让你轻松打补丁!
  • Kubernetes(k8s)高可用性集群的构建
  • 在CentOS环境下升级GCC编译器
  • Chapter 4 Shapes and Texts