Fortinet black logo

CLI Reference

mailsetting email-addr-handling

mailsetting email-addr-handling

Use this command to rewrite the unqualified sender addresses -- unqualified email address is a string without @ sign, such abc. If this feature is enabled, the Envelope sender (MAIL FROM:) will be rewritten to abc@host.domain, while the Header From and Reply-to will be rewritten to abc@domain. Host is the host name attribute of the FortiMail unit and domain is the local domain name attribute of the FortiMail unit.

Set the email address (sender and recipient) parsing mode:

  • Strict mode requires that the local parts of the Envelope sender (MAIL FROM:) and the Envelope recipient (RCPT TO:) strictly follow the RFC requirements.
  • Relaxed mode allows non-RFC compliant local parts, such as email addresses containing multiple consecutive “.” in the local parts or before “@”. For example, user...name@example.com, and username...@example.com.

Syntax

config mailsetting email-addr-handling

set rewrite-unqualified-sender-addr {enable | disable}

set email-addr-parsing-mode {strict | relaxed}

end

Variable

Description

Default

rewrite-unqualified-sender-addr {enable | disable}

Enable or disable the unqualified email sender address rewriting feature.

disable

email-addr-parsing-mode {strict | relaxed}

Set the parsing mode to strict or relaxed.

strict

mailsetting email-addr-handling

Use this command to rewrite the unqualified sender addresses -- unqualified email address is a string without @ sign, such abc. If this feature is enabled, the Envelope sender (MAIL FROM:) will be rewritten to abc@host.domain, while the Header From and Reply-to will be rewritten to abc@domain. Host is the host name attribute of the FortiMail unit and domain is the local domain name attribute of the FortiMail unit.

Set the email address (sender and recipient) parsing mode:

  • Strict mode requires that the local parts of the Envelope sender (MAIL FROM:) and the Envelope recipient (RCPT TO:) strictly follow the RFC requirements.
  • Relaxed mode allows non-RFC compliant local parts, such as email addresses containing multiple consecutive “.” in the local parts or before “@”. For example, user...name@example.com, and username...@example.com.

Syntax

config mailsetting email-addr-handling

set rewrite-unqualified-sender-addr {enable | disable}

set email-addr-parsing-mode {strict | relaxed}

end

Variable

Description

Default

rewrite-unqualified-sender-addr {enable | disable}

Enable or disable the unqualified email sender address rewriting feature.

disable

email-addr-parsing-mode {strict | relaxed}

Set the parsing mode to strict or relaxed.

strict