Skip to main content
Jan_Scholten
New Member
June 13, 2014
Solved

Sending a test alertmail

  • June 13, 2014
  • 3 replies
  • 109913 views
I' d like to generate a alertmail, to see whether it is working. I created an smtp server configured an alert mail. In the past i could test-connectivity in release 5 i can' t find a gui option and also could not figure out a cli command. any hints?
    Best answer by JavBsd
    Hello Guys, I had the same problem in FortiOS 5.0.7. However via CLI you can test the email server with the following command: # diagnose log alertmail test and then check your email. I hope it be helpful Greetings. Jav.

    3 replies

    billp
    New Member
    June 13, 2014
    I searched for this feature, too, and couldn' t locate anything. I am not sure why it was removed. Under " Send alert email for the following" under Log & Report, I selected " Administrator login/logout" so I could force a log message.
    JavBsd
    JavBsdAnswer
    New Member
    June 17, 2014
    Hello Guys, I had the same problem in FortiOS 5.0.7. However via CLI you can test the email server with the following command: # diagnose log alertmail test and then check your email. I hope it be helpful Greetings. Jav.
    emnoc
    New Member
    July 22, 2021

    You can test the SMTP alert email by using the cli 

     

    #cli

    " diagnose log alertmail test"

     

    just do a packet sniffer on the interface that's expected for the mail relay.

     

    diag sniffer packet wan1 "host yoursmtp.gateway.com"

     

    NOTE: place address of yoursmtp.gateway.com 

    Ken Felix