Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
rezafathi
Contributor II

Automation Email not working

Hi

 

I have configured email setting on fortigate and created a snitch,Trigger and action for sending admin login failure to my gmail account but it does not work. here is my configuration:

 

config system email-server
    set type custom
    set reply-to "itcuoka@gmail.com"
    set server "smtp.gmail.com"
    set port 587
    set source-ip 0.0.0.0
    set source-ip6 ::
    set authenticate enable
    set validate-server disable
    set username "itcuoka@gmail.com"
    set password ENC KMGGpKG6YFSg3M3v4JuNq+4ugOkNNAjuqgdy53MmtXDIRpBDkwnR98Rpjkaig==
    set security starttls
    set ssl-min-proto-version default
    set interface-select-method auto
end


config system automation-action
    edit "Email_Tupa"
        set description ''
        set action-type email
        set forticare-email disable
        set email-to "terfi@gmail.com"
        set email-from ''
        set email-subject "Fortigate Alerts"
        set minimum-interval 0
        set message "%%log%%"
        set replacement-message disable
    next
end

config alertemail setting
    set username "itcuoka@gmail.com"
    set mailto1 ''
    set mailto2 ''
    set mailto3 ''
    set filter-mode category
    set email-interval 5
    set IPS-logs disable
    set firewall-authentication-failure-logs disable
    set IPsec-errors-logs disable
    set PPP-errors-logs disable
    set sslvpn-authentication-errors-logs disable
    set antivirus-logs disable
    set webfilter-logs disable
    set configuration-changes-logs disable
    set violation-traffic-logs disable
    set admin-login-logs disable
    set FSSO-disconnect-logs disable
    set ssh-logs disable
end
Reza F.
Reza F.
11 REPLIES 11
vbandha
Staff
Staff

@rezafathi 

Are you able to ping 208.91.114.151 from fortigate?

exec ping 208.91.114.151

 

If it doesn't work then try this:
exec ping-options source <WAN IP>

exec ping 208.91.114.151

 

Also run this command to capture the traffic for mail not sending:

diag sniffer packet any 'port 465' 4 0 l

 

Regards,

Varun

rezafathi

I got the logs which says email sent to gmail account failed. On logs , there is ssl errors i think. What can i do to be able to send emails to gmail?

Reza F.
Reza F.
Announcements

Select Forum Responses to become Knowledge Articles!

Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.

Labels
Top Kudoed Authors