友链

微信搜索我吃你家米了关注公众号

参考文章:https://www.cnblogs.com/chris-cp/p/4843407.html
备份连接

主要参考文章:https://www.cnblogs.com/tssc/p/7683809.html

其中有一个地方有问题,就是在/etc/postfix/main.cf配置文件的mynetworks的配置需要注意

官方文档中对该参数值的描述:
http://www.postfix.org/postconf.5.html

The list of "trusted" remote SMTP clients that have more privileges than "strangers".In particular, "trusted" SMTP clients are allowed to relay mail through Postfix. See the smtpd_relay_restrictions parameter description in the postconf(5) manual.You can specify the list of "trusted" network addresses by hand or you can let Postfix do it for you (which is the default). See the description of the mynetworks_style parameter for more information.If you specify the mynetworks list by hand, Postfix ignores the mynetworks_style setting.Specify a list of network addresses or network/netmask patterns, separated by commas and/or whitespace. Continue long lines by starting the next line with whitespace.The netmask specifies the number of bits in the network part of a host address. You can also specify "/file/name" or "type:table" patterns. A "/file/name" pattern is replaced by its contents; a "type:table" lookup table is matched when a table entry matches a lookup string (the lookup result is ignored).The list is matched left to right, and the search stops on the first match. Specify "!pattern" to exclude an address or network block from the list. The form "!/file/name" is supported only in Postfix version 2.4 and later.Note 1: Pattern matching of domain names is controlled by the or absence of "mynetworks" in the parent_domain_matches_subdomains parameter value.Note 2: IP version 6 address information must be specified inside [] in the mynetworks value, and in files specified with "/file/name". IP version 6 addresses contain the ":" character, and would otherwise be confused with a "type:table" pattern.Examples:mynetworks = 127.0.0.0/8 168.100.189.0/28
mynetworks = !192.168.0.1, 192.168.0.0/28
mynetworks = 127.0.0.0/8 168.100.189.0/28 [::1]/128 [2001:240:587::]/64
mynetworks = $config_directory/mynetworks
mynetworks = hash:/etc/postfix/network_table

大致意思就是匹配到mynetworks配置的网络段的客户端IP可以将其邮件转发给我们的25端口进行邮件的转发,我们配置webmail,只需要将其设置为127.0.0.0/8,也就是本地环回地址即可

还有一个地方就是第一篇文章,没有创建存放用户邮件的目录

mkdir -p /var/mailbox
chown -R  postfix /var/mailbox

按照第一篇文章操作完成后,我们可以使用telnet对我们的邮件服务器进行测试


现在我们的smtp服务器已经配置成功了,可以正常发信了

以上配置过程中更改之后的所有配置文件:https://gitee.com/wochinijiamile/suiyi/raw/master/123.tar.gz

下面我们进行smtp用户认证的配置

在编译安装courier-authlib会遇到如下错误:
configure: error: Unable to find ltdl.h. Please install Libtool's ltdl library
解决方案:
yum install libtool-ltdl-devel

然后我们还会遇到下面这个错误

configure: error: --with-authmysql specified but no mysqlclient.so

这时我们需要安装mysql-server

参考文章
备份连接

安装完成之后还是会报上面那个错误,我们的解决方案就是,先使用ldconfig -v | grep mysql找到mysql的库文件的位置

然后在编译安装的configure中进行一下更改

使用postfix和roundcube搭建webemail相关推荐

  1. Postfix邮件服务器搭建之roundcube webmail安装与配置

    前几篇文章,我们介绍了有关postfix的相关安装与配置,这篇文章我们再来介绍下,在web下管理postfix的软件roundcube webmail. 注意:本篇文章所需的基础环境都是根据<烂 ...

  2. 【验】Postfix+Dovecot+MySQL搭建邮件服务器

    网上有很多使用Postfix搭建邮件服务器的文章,但目前貌似没有看到较为完整的一篇.本例将尝试在Ubuntu系统中使用Postfix+Dovecot+MySQL搭建邮件服务器. 说到邮件服务器,网上有 ...

  3. 服务器搭建邮件自动回复,在postfix邮件系统上搭建自动回复邮件系统

    在postfix邮件系统上搭建自动回复邮件系统 一, 修改Postfix 的相关配置文件 1, 修改master.cf vi /etc/postfix/master.cf 添加如下两行(添加一服务) ...

  4. Postfix邮件服务器搭建之虚拟用户配置

    参考烂泥的文章 在前一篇文章<烂泥:Postfix邮件服务器搭建之软件安装与配置>中,我们介绍了psotfix邮件服务器搭建所需要的软件,以及各个软件的基本配置. 目前已经达到了通过系统用 ...

  5. 使用Postfix与Dovecot搭建多域邮件服务

    title: 使用Postfix与Dovecot搭建多域邮件服务 date: 2020-04-19 11:33:17 categories: Linux tags: postfix dovecot 多 ...

  6. postfix邮件服务器搭建

    项目环境: 一台server ip:192.168.1.100  一台mail ip:192.168.1.200    一台win7 ip:192.168.1.222 项目需求: 1:在DNS Mas ...

  7. Postfix邮件服务搭建

    最近发现邮件发送服务还是挺重要的.可能对于每天只有一百来封的邮件发送需求的个人博主来说,一个免费的邮箱提供的免费SMTP邮件发送服务就可以满足了,但是对于一些大型的网站.论坛和平台,每天的邮件发送量可 ...

  8. linux+postfix+extmail+dovecot搭建邮件服务器

    一.我们可以重新搭建服务器,也可以利用我前面的搭建方法编译安装,地址: http://wangzan18.blog.51cto.com/8021085/1605480,本次我们使用yum的方法来安装h ...

  9. LAMP+Postfix+Dovecot+Postfixadmin搭建邮件管理系统(六)

    接上期,我们部署完了Postfix服务,下面开始部署Dovecot服务. 七.部署Dovecot服务 1.下载dovecot安装包 [root@Mail ~]# wget -c https://dov ...

  10. Linux系列-Red Hat5平台下的Postfix邮件服务搭建(二)

    咱们接着上次的说,本次没有小标题.想了半天也没想出个好名子来,因为这次我们要做三件事:1.搭建基于Postfix的webmail:2.设置用户别名和邮件群组:3.设置邮件大小.邮箱空间的限制.环境还是 ...

最新文章

  1. 汉子编码比字母编码长_字母/博客作者编码问题(使用动态编程)
  2. postgreSQL数据库里面导入数据
  3. 关于跳转 + 传递消息,
  4. Java并发编程学习笔记(一)线程安全性 1
  5. UISwitch的大小
  6. WPS Office 2019 v11.8.2专业增强版
  7. linux中命令du -sm,linux中du命令参数的用法详解
  8. 某土豪公司很糟糕的面试体验
  9. github 下载慢下载失败?不存在的!!!
  10. 计算跑步时的热量消耗
  11. 数据结构C语言之停车场管理
  12. 使用Flying Saucer生成pdf
  13. 安卓逆向——AS开发Xposed插件demo案例
  14. centos7搭建ftp服务
  15. 有五个人坐在一起,问第五个人多少岁,他说比第四个人大2岁。问第四个人多少岁,他说比第三个人大两岁 python
  16. 好玩的表情包机器人微信小程序源码下载支持直接搜索仿聊天界面获取支持流量主
  17. 阿里C/C++面试题
  18. pasa_example
  19. 调用百度AI接口实现图片文字识别
  20. 测绘用计算机吗,探讨测绘工程中计算机制图的运用问题原稿(网络分享版)

热门文章

  1. 给大家总结的一份白帽子成长进阶指南(内附学习资源)
  2. 【第一节】抠图 -- 薄、透、露的朦胧感
  3. 总结1_1:常用周期函数
  4. Deep Feedforward Networks(3)
  5. 模拟软件-OLED和Solar cell的模拟软件(Emison模块)-[Setfos]
  6. 大地高、海拔高 地心纬度、大地纬度/地理纬度
  7. MPU6050的运动中断应用
  8. 今日头条信息流 - 工具菜单详解
  9. Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
  10. 100ask imx6ull开发板移植NXP官方UBOOT