千家信息网

postfix发送邮件

发表于:2025-02-06 作者:千家信息网编辑
千家信息网最后更新 2025年02月06日,postfixyum -y install postfix mailxsystemctl start postfix systemctl enable postfix [root log]# c
千家信息网最后更新 2025年02月06日postfix发送邮件
postfixyum -y install  postfix mailxsystemctl start  postfix systemctl enable  postfix [root log]# cat  /etc/postfix/main.cfqueue_directory = /var/spool/postfixcommand_directory = /usr/sbindaemon_directory = /usr/libexec/postfixdata_directory = /var/lib/postfixmail_owner = postfixinet_interfaces = all   #此处需要修改 本来是localhostinet_protocols = allmydestination = $myhostname, localhost.$mydomain, localhostunknown_local_recipient_reject_code = 550alias_maps = hash:/etc/aliasesalias_database = hash:/etc/aliasesdebug_peer_level = 2debugger_command =sendmail_path = /usr/sbin/sendmail.postfixnewaliases_path = /usr/bin/newaliases.postfixmailq_path = /usr/bin/mailq.postfixsetgid_group = postdrophtml_directory = nomanpage_directory = /usr/share/mansample_directory = /usr/share/doc/postfix-2.10.1/samplesreadme_directory = /usr/share/doc/postfix-2.10.1/README_FILESmail_list="w673004508@163.com,w673004608@163.com"mail -s  "故障报警"  $mail_list 


0