postfix(作为发送邮件服务器)+mysql(作为数据库):
Postfix+mysql主要是把邮件服务的发与mysql结合使用,再以php的格式结合Apache通过网页的形式管理mysql。[root@westos-mail ~]# mv /etc/postfix/main.cf /mnt/ ######将之前postfix的主配置文件备份
[root@westos-mail ~]# yum reinstall postfix.x86_64 -y #####重新下载安装软件
[root@westos-mail ~]# vim /etc/postfix/main.cf #####修改主配置文件
76 myhostname = westos-mail.westos.com ####指定mta主机名称
83 mydomain = westos.com ##指定mta的域名
99 myorigin = westos.com ##指定邮件来源结尾(@后面的字符内容)
116 inet_interfaces = all ####25端口开启的网络接口
164 mydestination = $myhostname, $mydomain, localhost ##接收邮件结尾字符的指定
[root@westos-mail ~]# systemctl restart postfix.service ######重启服务
[root@westos-mail ~]# yum install httpd php php-mysql mariadb-server -y #####下载安装httpd,php,php-masql,mariadb-server
[root@westos-mail ~]# systemctl start mariadb #####开启数据库服务
[root@westos-mail ~]# vim /etc/my.cnf ####修改文件,关闭数据库的网络连接
[root@qq-mail ~]# systemctl restart mariadb #####重启数据库服务
[root@westos-mail ~]# systemctl restart postfix.service #####重启postfix服务
[root@westos-mail ~]# mysql_secure_installation ####mysql安全配置