Fortinet white logo
Fortinet white logo

CLI Reference

mailsetting smtp-rcpt-verification

mailsetting smtp-rcpt-verification

Microsoft 365 does not accept a blank sender email address (MAIL FROM:) in the SMTP envelope, which is the FortiMail default setting for SMTP recipient verification. Use this command to add an envelope sender address to solve the problem.

Syntax

config mailsetting smtp-rcpt-verification

set connection-type {auto | regular | secure}

set mail-from-addr <email_str>

set mode {regular | fail-open}

end

Variable

Description

Default

connection-type {auto | regular | secure}

Define the connection type for SMTP recipient verification:

  • auto: Attempt ESMTP protocol first, and fallback to SMTP protocol. ESMTP supports recipient verification for TLS-enforced back-end connections.
  • regular: Use SMTP protocol (HELO without STARTTLS).
  • secure: Use ESMTP protocol (EHLO with STARTTLS).

regular

mail-from-addr <email_str>

Enter the sender email address (MAIL FROM:) in the SMTP envelope.

mode {regular | fail-open}

Define the recipient verification mode:

  • regular: Always perform recipient verification with the SMTP server.

  • fail-open: Do not perform recipient verification if the SMTP server is unreachable.

regular

mailsetting smtp-rcpt-verification

mailsetting smtp-rcpt-verification

Microsoft 365 does not accept a blank sender email address (MAIL FROM:) in the SMTP envelope, which is the FortiMail default setting for SMTP recipient verification. Use this command to add an envelope sender address to solve the problem.

Syntax

config mailsetting smtp-rcpt-verification

set connection-type {auto | regular | secure}

set mail-from-addr <email_str>

set mode {regular | fail-open}

end

Variable

Description

Default

connection-type {auto | regular | secure}

Define the connection type for SMTP recipient verification:

  • auto: Attempt ESMTP protocol first, and fallback to SMTP protocol. ESMTP supports recipient verification for TLS-enforced back-end connections.
  • regular: Use SMTP protocol (HELO without STARTTLS).
  • secure: Use ESMTP protocol (EHLO with STARTTLS).

regular

mail-from-addr <email_str>

Enter the sender email address (MAIL FROM:) in the SMTP envelope.

mode {regular | fail-open}

Define the recipient verification mode:

  • regular: Always perform recipient verification with the SMTP server.

  • fail-open: Do not perform recipient verification if the SMTP server is unreachable.

regular