Description

This article describes the issue of the notification mail not being sent from the SRX device to the mail sender, even though the notify-mail-sender is configured for virus detection or fallback-block.
 

Symptoms

The following configuration is an example of notify-mail-sender for virus detection:

root@srx# show security utm feature-profile
anti-virus {
    type kaspersky-lab-engine;
    kaspersky-lab-engine {
        pattern-update {
        email-notify {
            admin-email "[email protected]";
            custom-message "Pattern Updated";
            custom-message-subject "Pattern update done";
        }
    }
    profile custom-av-profile {
        notification-options {
            virus-detection {
                type message; 
                notify-mail-sender;
               
custom-message "Virus detected in your mail";
                custom-message-subject "Virus Detection Notification";
            }

        }
    }
}

However, a notification mail is not sent from the SRX device to the sender with only the configuration.

Solution

The following notification features on AV need the configuration for the SMTP feature:
 

  • pattern update
  • virus detection
  • fallback-block

But the SMTP information is not configured, as seen in the above example.

Note : The following notification features do not require the SMTP configuration:
 
  • custom-message for virus detection.
  • custom-message for fallback-block.
  • fallback-non-block .

To complete the configuration, the following SMTP server configuration is required:

root@srx# show smtp
    primary-server {
        address 1.2.3.4;
        login "[email protected]" {
            password "$ABC123"; ## SECRET-DATA
        }
    }
[edit]
root@srx#

Modification History

2020-02-26: minor non-technical edits.

Related Information