Fortinet Document Library

Version:

Version:

Version:

Version:

Version:

Version:

Version:

Version:


Table of Contents

CLI Reference

mailsetting sender-rewriting-scheme

Configure sender rewriting scheme (SRS) settings.

SRS is used to rewrite the envelope sender of an email address, so that emails may be forwarded by an MTA if necessary without being rejected by the receiving server which may have a strict SPF policy in place.

Syntax

config mailsetting sender-rewriting-scheme

config rewrite-exempt-list

edit <domain-name>

end

set domain-for-rewrite {all | none | protected}

set rewritten-addr-handling {reverse | none}

end

Variable

Description

Default

rewrite-exempt-list

Configure domain names that are to be exempted from sender rewriting.

 

domain-for-rewrite {all | none | protected} Select whether to rewrite external senders sending emails for all domains, for protected domains, or to not rewrite the sender at all.

none

rewritten-addr-handling {reverse | none} For those recipients that are previously rewritten senders, set to reverse to reverse the recipient address and send the email to the original sender. Set to none to deny any recipient that is previously rewritten.

reverse

mailsetting sender-rewriting-scheme

Configure sender rewriting scheme (SRS) settings.

SRS is used to rewrite the envelope sender of an email address, so that emails may be forwarded by an MTA if necessary without being rejected by the receiving server which may have a strict SPF policy in place.

Syntax

config mailsetting sender-rewriting-scheme

config rewrite-exempt-list

edit <domain-name>

end

set domain-for-rewrite {all | none | protected}

set rewritten-addr-handling {reverse | none}

end

Variable

Description

Default

rewrite-exempt-list

Configure domain names that are to be exempted from sender rewriting.

 

domain-for-rewrite {all | none | protected} Select whether to rewrite external senders sending emails for all domains, for protected domains, or to not rewrite the sender at all.

none

rewritten-addr-handling {reverse | none} For those recipients that are previously rewritten senders, set to reverse to reverse the recipient address and send the email to the original sender. Set to none to deny any recipient that is previously rewritten.

reverse