⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mail.pl.readme

📁 opennms得相关源码 请大家看看
💻 README
字号:
From: Nick Wesselman <nick@digivis.com>Date: Mon, November 11, 2002 5:37 pmThe mail.pl script is an alternative to /bin/mail for sending email notifications. It offers a configurable "from" address, primary SMTP server, and backup SMTP server.It's a perl script which requires Net::SMTP. (perl -MCPAN -e 'install Net::SMTP')We've had the problem of OpenNMS driving up our load balance and causing sendmail on the local machine to refuse to send messages. So being able to send notifications via SMTP was useful. Being able to control the "from" header allows for easier filtering in your mail client as well.Though you are a little screwed if both your primary and secondary SMTP servers are inaccessible. :-)Here's a sample config for replacing the "email" notification command. You could do something similar for "pagerEmail" by replacing "-email" with "-pemail."         <command>                 <name>email</name>                 <execute>/path/to/mail.pl</execute>                 <comment>for sending email via SMTP</comment>                 <argument streamed="false">                         <switch>-email</switch>                 </argument>                 <argument streamed="false">			 <substitution>opennms@mycompany.com</substitution>                 </argument>                 <argument streamed="false">                         <switch>-subject</switch>                 </argument>                 <argument streamed="false">                         <substitution>mx1.mycompany.com</substitution>                 </argument>                 <argument streamed="false">                         <substitution>mx2.mycompany.com</substitution>                 </argument>                 <argument streamed="true">                         <switch>-tm</switch>                 </argument>         </command>Enjoy,Nick WesselmanDigital Visions, Inc.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -