admin管理员组

文章数量:1530018

Wordpress网站使用Contact Form 7 作为联系表单, 发送邮件的时候可能会遇到错误: Failed to send your message. Please try later or contact the administrator by another method., 一般是由于服务器不支持发送邮件, 可以通过安装Postfix解决. 与使用SMTP插件或sendmail相比, Postfix发送效率更高, 速度更快, 配置也要比sendmail简单得多.

一个完整的邮件服务器一般需要安装cyrus-sasl、postfix、dovecot、postfixadmin、roundcubemail等软件, 不过我们的目的只是通过contact form 7 发送表单接收询盘, 所以只装postfix就好.

Postfix简介:
(转自百度百科) Postfix是Wietse Venema在IBM的GPL协议之下开发的MTA(邮件传输代理)软件。postfix是Wietse Venema想要为使用最广泛的sendmail提供替代品的一个尝试。在Internet世界中,大部分的电子邮件都是通过sendmail来投递的,大约有100万用户使用sendmail,每天投递上亿封邮件。这真是一个让人吃惊的数字。Postfix试图更快、更容易管理、更安全,同时还与sendmail保持足够的兼容性。

下面是安装教程:

外贸SOHO笔记是搭建在LNMP幻境下的. 本文以下环境基于Linode, Centos 7, LNMP

1. 如果之前装有sendmail, 先卸载掉

Xshell连上服务器.
运行命令:
yum remove -y sendmail

2. 安装 Postfix

yum install postfix -y

3. 更改默认MTA为Postfix

/usr/sbin/alternative

本文标签: 发送邮件postfixCENTOSContact