Proxmox Mail Gateway (PMG) 安装及简单设置

1. 前言

由于Windows Server 2022不再提供SMTP服务,Microsoft 365也关闭了相应SMTP服务,公司内部又需要相应的SMTP服务作为一些通知邮件的发送。故开始研究PMG作为SMTP转发服务器来使用。 Proxmox Mail Gateway是领先的开源电子邮件安全解决方案,可帮助您保护邮件服务器免遭所有电子邮件威胁的侵害。灵活的架构与基于Web的友好用户界面管理界面相结合,使IT专业人员和企业可以轻松控制所有传入和传出的电子邮件,并保护其用户免受垃圾邮件,病毒,网络钓鱼和特洛伊木马的侵害。

2. 安装

安装 Proxmox Mail Gateway
在这里插入图片描述

服务条款
在这里插入图片描述

分区(默认)
在这里插入图片描述

地区,时区及键盘(可根据实际情况选取,示例为China)
在这里插入图片描述

root密码设置,及邮箱
在这里插入图片描述

网络配置
在这里插入图片描述
确认配置
在这里插入图片描述
开始安装

在这里插入图片描述
完成安装后会自动重启。
Console端会显示Web显示信息
在这里插入图片描述页面访问https://ip:8006
在这里插入图片描述在这里插入图片描述

3. 设置

1. 修改Debian更新源并添加PMG源为非订阅源,并更新为最新版本。
cp /etc/apt/sources.list  /etc/apt/sources.list.bak
cd /etc/apt/
echo 'deb https://mirrors.aliyun.com/debian/ bullseye main non-free contrib' > sources.list
echo 'deb-src https://mirrors.aliyun.com/debian/ bullseye main non-free contrib' >> sources.list
echo 'deb https://mirrors.aliyun.com/debian-security/ bullseye-security main' >> sources.list
echo 'deb-src https://mirrors.aliyun.com/debian-security/ bullseye-security main' >> sources.list
echo 'deb https://mirrors.aliyun.com/debian/ bullseye-updates main non-free contrib' >> sources.list
echo 'deb-src https://mirrors.aliyun.com/debian/ bullseye-updates main non-free contrib' >> sources.list
echo 'deb https://mirrors.aliyun.com/debian/ bullseye-backports main non-free contrib' >> sources.list
echo 'deb-src https://mirrors.aliyun.com/debian/ bullseye-backports main non-free contrib' >> sources.list
echo '# PMG pmg-no-subscription repository provided by proxmox.com,' >> sources.list
echo '# NOT recommended for production use' >> sources.list
echo 'deb http://download.proxmox.com/debian/pmg bullseye pmg-no-subscription' >> sources.list
apt update
apt upgrade -y
2. 去除Proxmox登录时“No valid subscription”的订阅警告提示。

在这里插入图片描述

cd /usr/share/javascript/proxmox-widget-toolkit
cp proxmoxlib.js proxmoxlib.js.bak
vim proxmoxlib.js

定位到“ No valid subscription ”位置,在Ext.Msg.show前添加"void({ //",如下图:
在这里插入图片描述

  • 1
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值