Technical Tip: Configuring email message relaying on the FortiMail system
Description
This article describes that in the context of an email message delivery, 'relaying' refers to the operation when an email message is being sent to a destination that is not 'local' (Gmail, Yahoo, another company, etc.).
By default, the FortiMail unit does not accept emails for any other domain than is locally configured (see the 'Mail Settings -> Domains' menu). Otherwise, SPAM senders would be able to abuse this functionality, to send unsolicited emails without the approval of the FortiMail unit owner.
Scope
FortiMail all versions.
Solution
- Create an Access Control policy to specify the IP address and/or email addresses that are allowed to relay emails.
- Allow relaying from authenticated users.
- Sender pattern: Internal.
- Recipient pattern: External.
- Source: IP address of the Mail Server or the trusted network.
- Action: RELAY.
Note: It is possible to configure different options for the source IP address as required: see Configuring access control receiving policies.

To create an authentication profile, verified by the internal SMTP server, in the web admin GUI, navigate to the Profile -> Authentication menu, and enter the new profile as follows:
- Profile name: Choose the name of the new profile.
- Server name/IP: Fill in the IP address of the internal SMTP server that supports SMTP authentication.
- Depending on the authentication server, it may be worth configuring options like Server, which requires a domain, and STARTTLS.

Then, apply this profile in the Policies -> Policies -> IP Policies or Policies -> Policies -> Recipient Policies menu, and enable the 'Use for SMTP authentication' checkbox.
From now on, every user whose credentials are verified by the internal SMTP server can send any email.

