Helpful ReplyHot!Sending a test alertmail

Author
Jan Scholten
Gold Member
  • Total Posts : 334
  • Scores: 9
  • Reward points: 0
  • Joined: 2009/01/12 02:40:15
  • Status: offline
2014/06/13 07:45:25 (permalink)
0

Sending a test alertmail

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?
#1
billp
Expert Member
  • Total Posts : 846
  • Scores: 51
  • Reward points: 0
  • Joined: 2009/05/20 23:44:05
  • Location: Pacific Northwest
  • Status: offline
RE: Sending a test alertmail 2014/06/13 09:50:05 (permalink)
0
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.



Bill

==========
Fortigate 600C 5.0.12, 111C 5.0.2
Logstash 1.4.1
#2
JavBsd
New Member
  • Total Posts : 7
  • Scores: 2
  • Reward points: 0
  • Joined: 2014/06/17 09:03:13
  • Status: offline
RE: Sending a test alertmail 2014/06/17 13:04:34 (permalink) ☄ Helpfulby Adonist 2019/03/11 07:51:57
5 (1)
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
emnoc
Expert Member
  • Total Posts : 6170
  • Scores: 433
  • Reward points: 0
  • Joined: 2008/03/20 13:30:33
  • Location: AUSTIN TX AREA
  • Status: offline
Re: Sending a test alertmail 2021/07/22 08:23:35 (permalink)
0
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
 

PCNSE 
NSE 
StrongSwan  
#4
Jump to:
© 2021 APG vNext Commercial Version 5.5