(Nagios sends a warning email. By default, the native SMTP service is used. You can view commands For the definition of the command for sending e-mail in CFG, if the local mail command is used, the local SMTP service needs to be enabled. For security, you can set port 25 on the firewall to deny other machines from connecting to the local machine If there is a mail server in the network (such as the company's own mail server), you can directly use the existing mail server. Instead of starting the local SMTP service, you just need to redefine the command and use the third-party software sendemail)