Bug #4184
closedDisable SMTP Notifications
0%
Description
In SYSTEM>ADVANCED>NOTIFICATIONS>SMTP E-Mail, even selecting the "Disable SMTP Notifications" option, still keeps sending SMTP messages.
Updated by Phillip Davis almost 10 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...
Updated by Jim Pingle almost 10 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.