Deploying FortiMail VM in AWS


FortiMail for Amazon Web Services is deployed as a virtual machine in AWS (Iaas). This recipe shows how to install and configure a single instance FortiMail VM in AWS.

1. Registering and downloading your license

If you’re deploying a FortiMail VM in the AWS Marketplace, you must obtain a license to activate it. FortiMail VM for AWS supports a BYOL licensing model.

Licenses can be obtained through any Fortinet partner. If you don’t have a partner, contact for assistance in obtaining a license.

After you purchase a license or obtain an evaluation license (60-day term), you will receive a PDF with an activation code. 

Go to and either create a new account or log in with an existing account. 

Go to Asset > Register/Renew to start the registration process.

In the Specify Registration Code field, enter your license activation code and select Next to continue registering the product. Fill in the other fields with your information.


At the end of the registration process, download the license (.lic) file for your FortiMail VM.

After registering a license, Fortinet servers may take up to 30 minutes to fully recognize the new license. If you apply the license and get an error that the license is invalid, wait 30 minutes and try again.

2. Subscribing to FortiMail VM

Go to the AWS Marketplace’s page for Fortinet FortiMail-VM (BYOL). Select Continue.  

On the next page, select Manual Launch, then select Accept Software Terms.


A message appears confirming your subscription.


3. Uploading the FortiMail template

Log in to your AWS account and select CloudFormation.


Select Create Stack.


On the next page, select Upload a template to Amazon S3 and set it to upload the FortiMail template provided by your account team.

Select Next.


Complete the Specify Details form with the values shown.

Select Next.


On the Options page, create a Tag for FortiMail.

Select Next.


Review all properties. If they’re correct, click Create.


4. Connecting to the FortiMail VM

To connect to the FortiMail VM, you must find your login credentials and its public IP address

When the deployment has completed, select the Outputs tab. Your login credentials are listed.  

Open an HTTPS session using the FortiMail public IP address.

Using the login information that was listed in the Outputs tab above, log in to FortiMail. 



In the License Information widget in the FortiMail VM web-based manager, select Update to the right of VM, then upload your license (.lic) file to activate the FortiMail VM.


5. Results 

You can now configure the FortiMail VM.  

Karyn Jacobs

Technical Writer at Fortinet
Karyn Jacobs is a technical writer on the FortiOS Technical Documentation team. She has a B.A.H. in English and a B.Ed. from Queen’s University, and has worked as a technical writer for the past 20 years at various high tech companies.