Project

General

Profile

Actions

Bug #4184

closed

Disable SMTP Notifications

Added by Wendell Borges over 9 years ago. Updated over 9 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
01/07/2015
Due date:
% Done:

0%

Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
2.1.5
Affected Architecture:

Description

In SYSTEM>ADVANCED>NOTIFICATIONS>SMTP E-Mail, even selecting the "Disable SMTP Notifications" option, still keeps sending SMTP messages.

Actions #1

Updated by Phillip Davis over 9 years ago

It looks like /etc/inc/notices.inc function notify_via_smtp() correctly checks the disabled setting, so anything that calls through that should respect the setting OK.
But /usr/local/bin/mail.php calls send_smtp_message() directly bypassing the disabled check. So whatever uses mail.php would ignore the disabled setting and send anyway.
I will leave it to one of the devs to decide how you want to fix that - add logic to mail.php, call notify_via_smtp() instead - which would need a "subject" parameter added, or...

Actions #2

Updated by Jim Pingle over 9 years ago

  • Status changed from New to Rejected

The box does what it's intended to do. It disables sending firewall notifications via SMTP. Other subsystems may bypass that, such as the mailreports package or arpwatch. Those are not considered "notifications" since they do not use the notifications system.

If all SMTP communication should be stopped, then disable anything that can use SMTP or clear out the SMTP settings. The current behavior allows people use to packages for mail but not be spammed by notifications.

Actions

Also available in: Atom PDF