Skip to main content
Amranifares
Explorer II
October 14, 2024
Question

FortiGate does not send Two-Factor activation code email to other domains

  • October 14, 2024
  • 8 replies
  • 4718 views

i have configure the SSL vpn users with MFA using email so when i put the same domain i am integrated it is working fine but when using other domains or gmail it is not working

 

 

below for none-working logs -i have changed some details-

2024-10-13 16:53:13 Arrived msg(type 6, 83 bytes):user1@domain.net.sa
AuthCode: 176743
Your authentication token code is 176743.

2024-10-13 16:53:13 mail_info:
from:192.168.100.108 user:MFA@MFA.com.sa
2024-10-13 16:53:13 mail_info:
reverse path:MFA@MFA.com.sa
user name:mfa
2024-10-13 16:53:13 to[0]:use1@domain.net.sa
2024-10-13 16:53:13 <==_init_mail_info
2024-10-13 16:53:13 create session
2024-10-13 16:53:13 resolve 192.168.100.100 to 1 IP
2024-10-13 16:53:13 ==> send mail
2024-10-13 16:53:13 connecting to 192.168.100.100 port 25
2024-10-13 16:53:13 send mail 0x917c640 session 0x919dd00
2024-10-13 16:53:13 session: 0x919dd00, rsp_state: greeting, code: 220
2024-10-13 16:53:13 session: 0x919dd00, rsp_state: ehlo, code: 250
2024-10-13 16:53:13 session: 0x919dd00, rsp_state: mail, code: 250
2024-10-13 16:53:13 session: 0x919dd00, rsp_state: rcpt, code: 550
2024-10-13 16:53:13 session: 0x919dd00, rsp_state: data, code: 503
2024-10-13 16:53:13 session: 0x919dd00, rsp_state: quit, code: 221
2024-10-13 16:53:13 session finined
2024-10-13 16:53:13 _session_on_destroy
2024-10-13 16:53:13 <== send mail success, m = 0x917c640 s = 0x919dd00
2024-10-13 16:53:46 Arrived msg(type 0, 507 bytes):Message meets Alert condition

 

 

 

Below logs for working logs

2024-10-13 17:08:43 Arrived msg(type 6, 84 bytes):user2@mfa.com.sa
AuthCode: 888041
Your authentication token code is 888041.

2024-10-13 17:08:43 mail_info:
from:192.168.100.100 user:mfa@mfa.com.sa
2024-10-13 17:08:43 mail_info:
reverse path:mfa@mfa.com.sa
user name:mfa
2024-10-13 17:08:43 to[0]:user2@mfa.com.sa
2024-10-13 17:08:43 <==_init_mail_info
2024-10-13 17:08:43 create session
2024-10-13 17:08:43 resolve 192.168.100.108 to 1 IP
2024-10-13 17:08:43 ==> send mail
2024-10-13 17:08:43 connecting to 192.168.100.108 port 25
2024-10-13 17:08:43 send mail 0x91e6270 session 0x918f700
2024-10-13 17:08:43 session: 0x918f700, rsp_state: greeting, code: 220
2024-10-13 17:08:43 session: 0x918f700, rsp_state: ehlo, code: 250
2024-10-13 17:08:43 session: 0x918f700, rsp_state: mail, code: 250
2024-10-13 17:08:44 session: 0x918f700, rsp_state: rcpt, code: 250
2024-10-13 17:08:44 session: 0x918f700, rsp_state: data, code: 354
2024-10-13 17:08:44 === send: Your authentication token code is 888041.

2024-10-13 17:08:44 session: 0x918f700, rsp_state: data2, code: 250
2024-10-13 17:08:44 session: 0x918f700, rsp_state: quit, code: 221
2024-10-13 17:08:44 session finined
2024-10-13 17:08:44 _session_on_destroy
2024-10-13 17:08:44 <== send mail success, m = 0x91e6270 s = 0x918f700

 

 

 

i do not knew why it is not working.

8 replies

ebilcari
Staff
Staff
October 14, 2024

This seems like the SMTP server limitation, make sure that the email server (MFA.com.sa) allows to relay/send emails to external domains.

Emirjon
Amranifares
Explorer II
October 14, 2024

Thanks Ebilcari,

thanks for the above reply.

i have checked the engineer from SMTP and he confirm all is fine and they are using office 365.

i notice that in the working logs i could see the logs below

2024-10-13 17:08:44 === send: Your authentication token code is 888041.

 

but in the none working i could not see it.

please share a URL if exist for the required setting on the SMTP it would be great.

 

regards,

 
Amranifares
Explorer II
October 14, 2024

i believe the firewall is not sending the otp email as they confirm that no email received when using different domain in the user setting.

 

AEK
SuperUser
SuperUser
October 14, 2024

"550 Blocked error or 550 Requested action not taken: mailbox unavailable is an SMTP (Simple Mail Transfer Protocol) error code. Put simply, this message means that the email you sent was blocked by the recipient's email hosting server, and returned to you."

 

Edit: Quoted

AEK
AEK
SuperUser
SuperUser
October 14, 2024

"This 503 error occurs when the client is explicitly configured to ignore authentication requirements or when an incorrect username and password pair is provided. You may check whether your email client is properly configured for SMTP authentication and whether your username and password are authentic"

 

Quoted as well.

I think you need to check the SMTP authentication. Your server may require authentication to send to outside, while it doesn't require for inside.

AEK
Amranifares
Explorer II
October 14, 2024

Great AEK, thanks for above info.

i have informed the same but issue not resolved unfotunatly.

i am trying to use the default configuration -Fortinet- but it is not working also ,i have checked it few hours back and it works fine but now it is not.

 

resolve notification.fortinet.net to 1 IP
==> send mail
connecting to 208.91.114.151 port 465
failed to connect
failed to connect
session_io_event: creating ssl structure for session 0x91db250
create_ssl: 0x7f96cb585000
error in SSL_connect (null)
_session_on_destroy
<== send mail failed, m = 0x91c8cc0 s = 0x91db250
session_io_event: creating ssl structure for session 0x91da440
create_ssl: 0x7f96cb585000
error in SSL_connect (null)
_session_on_destroy
<== send mail failed, m = 0x91bfdc0 s = 0x91da440
create session
resolve notification.fortinet.net to 1 IP
==> send mail
connecting to 208.91.114.151 port 465
create session
resolve notification.fortinet.net to 1 IP
==> send mail
connecting to 208.91.114.151 port 465

Screenshot 2024-10-14 190715.png

regards,

AEK
SuperUser
SuperUser
October 14, 2024

Please share the following:

show system email-server
AEK
Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
Fortinet Flag the Hack. Wednesday, August 26, 9:00 AM - 5:00 PM ET, COSM, Atlanta, GA.
Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!