如何判断你的小鸡支持发送邮件 - 开发说
当前位置: 主页 » Centos » 如何判断你的小鸡支持发送邮件

如何判断你的小鸡支持发送邮件

      2018年03月14日   阅读 1,802 次     0 评论   Tags: ·

相信买了小鸡的朋友,要么建站,要么有一些特殊的需求,比如发送邮件,那么怎么判断一个小鸡支持发送邮件呢?

 

#环境CENTOS7:

#安装postfix和mailx软件并关闭防火墙
yum install postfix mailx -y
systemctl stop firewalld

#修改postfix的配置文件/etc/postfix/main.cf
vi /etc/postfix/main.cf

recipient_delimiter = +
inet_interfaces = all
mydestination = $myhostname, localhost.$mydomain, $mydomain

#重启postfix
systemctl restart postfix

#邮件发送测试,如果在你的邮箱收到了测试邮件,说明你的小鸡,支持发送邮件,可以建立邮件服务器。

echo "This is the body of the email" | mail -s "This is the subject line" your email address

  • 版权声明:本文版权归开发说和原作者所有,未经许可不得转载。文章部分来源于网络仅代表作者看法,如有不同观点,欢迎进行交流。除非注明,文章均由 开发说 整理发布,欢迎转载,转载请带版权。

  • 来源:开发说 ( https://www.kaifashuo.com/ ),提供主机优惠信息深度测评和服务器运维编程技术。
  • 链接:https://www.kaifashuo.com/187.html
  • 评论(0

    1. 还没有任何评论,你来说两句吧

    发表回复

    您的电子邮箱地址不会被公开。 必填项已用 * 标注