postfix yum -y install postfix mailx systemctl start postfix systemctl enable postfix [root log]# cat /etc/postfix/main.cf queue_directory = /var/spool/postfix command_directory = /usr/sbin daemon_directory = /usr/libexec/postfix data_directory = /var/lib/postfix mail_owner = postfix inet_interfaces = all #此处需要修改 本来是localhost inet_protocols = all mydestination = $myhostname, localhost.$mydomain, localhost unknown_local_recipient_reject_code = 550 alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases debug_peer_level = 2 debugger_command = sendmail_path = /usr/sbin/sendmail.postfix newaliases_path = /usr/bin/newaliases.postfix mailq_path = /usr/bin/mailq.postfix setgid_group = postdrop html_directory = no manpage_directory = /usr/share/man sample_directory = /usr/share/doc/postfix-2.10.1/samples readme_directory = /usr/share/doc/postfix-2.10.1/README_FILES mail_list="w673004508@163.com,w673004608@163.com" mail -s "故障报警" $mail_list </tmp/a.txt
postfix发送邮件
原创
©著作权归作者所有:来自51CTO博客作者小小三郎1的原创作品,请联系作者获取转载授权,否则将追究法律责任
上一篇:kafka集群的部署
下一篇:nginx 日志出现400错误
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
CentOS 7.3 配置postfix并发送邮件
CentOS 7.3 配置postfix并发送邮件
postfix CentOS 7.3 配置 -
postfix python发送邮件脚本配置(不乱码)
python脚本利用postfix发送邮件
postfix python 脚本利用