1. Packages
  2. Fortimanager Provider
  3. API Docs
  4. SystemMail
fortimanager 1.14.0 published on Tuesday, Apr 15, 2025 by fortinetdev

fortimanager.SystemMail

Explore with Pulumi AI

Alert emails.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as fortimanager from "@pulumi/fortimanager";

const trname = new fortimanager.SystemMail("trname", {
    auth: "enable",
    fosid: "1",
    passwds: ["fortinet"],
    port: 1,
    secureOption: "none",
    server: "ALL",
    user: "terraform",
});
Copy
import pulumi
import pulumi_fortimanager as fortimanager

trname = fortimanager.SystemMail("trname",
    auth="enable",
    fosid="1",
    passwds=["fortinet"],
    port=1,
    secure_option="none",
    server="ALL",
    user="terraform")
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/fortimanager/fortimanager"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := fortimanager.NewSystemMail(ctx, "trname", &fortimanager.SystemMailArgs{
			Auth:  pulumi.String("enable"),
			Fosid: pulumi.String("1"),
			Passwds: pulumi.StringArray{
				pulumi.String("fortinet"),
			},
			Port:         pulumi.Float64(1),
			SecureOption: pulumi.String("none"),
			Server:       pulumi.String("ALL"),
			User:         pulumi.String("terraform"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Fortimanager = Pulumi.Fortimanager;

return await Deployment.RunAsync(() => 
{
    var trname = new Fortimanager.SystemMail("trname", new()
    {
        Auth = "enable",
        Fosid = "1",
        Passwds = new[]
        {
            "fortinet",
        },
        Port = 1,
        SecureOption = "none",
        Server = "ALL",
        User = "terraform",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.fortimanager.SystemMail;
import com.pulumi.fortimanager.SystemMailArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var trname = new SystemMail("trname", SystemMailArgs.builder()
            .auth("enable")
            .fosid("1")
            .passwds("fortinet")
            .port(1)
            .secureOption("none")
            .server("ALL")
            .user("terraform")
            .build());

    }
}
Copy
resources:
  trname:
    type: fortimanager:SystemMail
    properties:
      auth: enable
      fosid: '1'
      passwds:
        - fortinet
      port: 1
      secureOption: none
      server: ALL
      user: terraform
Copy

Create SystemMail Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new SystemMail(name: string, args?: SystemMailArgs, opts?: CustomResourceOptions);
@overload
def SystemMail(resource_name: str,
               args: Optional[SystemMailArgs] = None,
               opts: Optional[ResourceOptions] = None)

@overload
def SystemMail(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               auth: Optional[str] = None,
               auth_type: Optional[str] = None,
               fosid: Optional[str] = None,
               from_: Optional[str] = None,
               from_passwds: Optional[Sequence[str]] = None,
               local_cert: Optional[str] = None,
               passwds: Optional[Sequence[str]] = None,
               port: Optional[float] = None,
               secure_option: Optional[str] = None,
               server: Optional[str] = None,
               ssl_protocol: Optional[str] = None,
               system_mail_id: Optional[str] = None,
               user: Optional[str] = None)
func NewSystemMail(ctx *Context, name string, args *SystemMailArgs, opts ...ResourceOption) (*SystemMail, error)
public SystemMail(string name, SystemMailArgs? args = null, CustomResourceOptions? opts = null)
public SystemMail(String name, SystemMailArgs args)
public SystemMail(String name, SystemMailArgs args, CustomResourceOptions options)
type: fortimanager:SystemMail
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args SystemMailArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args SystemMailArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args SystemMailArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args SystemMailArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. SystemMailArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var systemMailResource = new Fortimanager.SystemMail("systemMailResource", new()
{
    Auth = "string",
    AuthType = "string",
    Fosid = "string",
    From = "string",
    FromPasswds = new[]
    {
        "string",
    },
    LocalCert = "string",
    Passwds = new[]
    {
        "string",
    },
    Port = 0,
    SecureOption = "string",
    Server = "string",
    SslProtocol = "string",
    SystemMailId = "string",
    User = "string",
});
Copy
example, err := fortimanager.NewSystemMail(ctx, "systemMailResource", &fortimanager.SystemMailArgs{
Auth: pulumi.String("string"),
AuthType: pulumi.String("string"),
Fosid: pulumi.String("string"),
From: pulumi.String("string"),
FromPasswds: pulumi.StringArray{
pulumi.String("string"),
},
LocalCert: pulumi.String("string"),
Passwds: pulumi.StringArray{
pulumi.String("string"),
},
Port: pulumi.Float64(0),
SecureOption: pulumi.String("string"),
Server: pulumi.String("string"),
SslProtocol: pulumi.String("string"),
SystemMailId: pulumi.String("string"),
User: pulumi.String("string"),
})
Copy
var systemMailResource = new SystemMail("systemMailResource", SystemMailArgs.builder()
    .auth("string")
    .authType("string")
    .fosid("string")
    .from("string")
    .fromPasswds("string")
    .localCert("string")
    .passwds("string")
    .port(0)
    .secureOption("string")
    .server("string")
    .sslProtocol("string")
    .systemMailId("string")
    .user("string")
    .build());
Copy
system_mail_resource = fortimanager.SystemMail("systemMailResource",
    auth="string",
    auth_type="string",
    fosid="string",
    from_="string",
    from_passwds=["string"],
    local_cert="string",
    passwds=["string"],
    port=0,
    secure_option="string",
    server="string",
    ssl_protocol="string",
    system_mail_id="string",
    user="string")
Copy
const systemMailResource = new fortimanager.SystemMail("systemMailResource", {
    auth: "string",
    authType: "string",
    fosid: "string",
    from: "string",
    fromPasswds: ["string"],
    localCert: "string",
    passwds: ["string"],
    port: 0,
    secureOption: "string",
    server: "string",
    sslProtocol: "string",
    systemMailId: "string",
    user: "string",
});
Copy
type: fortimanager:SystemMail
properties:
    auth: string
    authType: string
    fosid: string
    from: string
    fromPasswds:
        - string
    localCert: string
    passwds:
        - string
    port: 0
    secureOption: string
    server: string
    sslProtocol: string
    systemMailId: string
    user: string
Copy

SystemMail Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The SystemMail resource accepts the following input properties:

Auth string
Enable authentication. disable - Disable authentication. enable - Enable authentication. Valid values: disable, enable.
AuthType string
SMTP authentication type. psk - Use username and password to authenticate. certificate - Use local certificate to authenticate. Valid values: psk, certificate.
Fosid string
Mail Service ID.
From string
Username for MAIL FROM.
FromPasswds List<string>
SMTP password of default user.
LocalCert string
SMTP local certificate.
Passwds List<string>
SMTP account password.
Port double
SMTP server port.
SecureOption string
Communication secure option. default - Try STARTTLS, proceed as plain text communication otherwise. none - Communication will be in plain text format. smtps - Communication will be protected by SMTPS. starttls - Communication will be protected by STARTTLS. Valid values: default, none, smtps, starttls.
Server string
SMTP server.
SslProtocol string
set the lowest SSL protocol version for connection to mail server. follow-global-ssl-protocol - Follow system.global.global-ssl-protocol setting (default). sslv3 - set SSLv3 as the lowest version. tlsv1.0 - set TLSv1.0 as the lowest version. tlsv1.1 - set TLSv1.1 as the lowest version. tlsv1.2 - set TLSv1.2 as the lowest version. tlsv1.3 - set TLSv1.3 as the lowest version. Valid values: follow-global-ssl-protocol, sslv3, tlsv1.0, tlsv1.1, tlsv1.2, tlsv1.3.
SystemMailId string
an identifier for the resource with format {{fosid}}.
User string
SMTP account username.
Auth string
Enable authentication. disable - Disable authentication. enable - Enable authentication. Valid values: disable, enable.
AuthType string
SMTP authentication type. psk - Use username and password to authenticate. certificate - Use local certificate to authenticate. Valid values: psk, certificate.
Fosid string
Mail Service ID.
From string
Username for MAIL FROM.
FromPasswds []string
SMTP password of default user.
LocalCert string
SMTP local certificate.
Passwds []string
SMTP account password.
Port float64
SMTP server port.
SecureOption string
Communication secure option. default - Try STARTTLS, proceed as plain text communication otherwise. none - Communication will be in plain text format. smtps - Communication will be protected by SMTPS. starttls - Communication will be protected by STARTTLS. Valid values: default, none, smtps, starttls.
Server string
SMTP server.
SslProtocol string
set the lowest SSL protocol version for connection to mail server. follow-global-ssl-protocol - Follow system.global.global-ssl-protocol setting (default). sslv3 - set SSLv3 as the lowest version. tlsv1.0 - set TLSv1.0 as the lowest version. tlsv1.1 - set TLSv1.1 as the lowest version. tlsv1.2 - set TLSv1.2 as the lowest version. tlsv1.3 - set TLSv1.3 as the lowest version. Valid values: follow-global-ssl-protocol, sslv3, tlsv1.0, tlsv1.1, tlsv1.2, tlsv1.3.
SystemMailId string
an identifier for the resource with format {{fosid}}.
User string
SMTP account username.
auth String
Enable authentication. disable - Disable authentication. enable - Enable authentication. Valid values: disable, enable.
authType String
SMTP authentication type. psk - Use username and password to authenticate. certificate - Use local certificate to authenticate. Valid values: psk, certificate.
fosid String
Mail Service ID.
from String
Username for MAIL FROM.
fromPasswds List<String>
SMTP password of default user.
localCert String
SMTP local certificate.
passwds List<String>
SMTP account password.
port Double
SMTP server port.
secureOption String
Communication secure option. default - Try STARTTLS, proceed as plain text communication otherwise. none - Communication will be in plain text format. smtps - Communication will be protected by SMTPS. starttls - Communication will be protected by STARTTLS. Valid values: default, none, smtps, starttls.
server String
SMTP server.
sslProtocol String
set the lowest SSL protocol version for connection to mail server. follow-global-ssl-protocol - Follow system.global.global-ssl-protocol setting (default). sslv3 - set SSLv3 as the lowest version. tlsv1.0 - set TLSv1.0 as the lowest version. tlsv1.1 - set TLSv1.1 as the lowest version. tlsv1.2 - set TLSv1.2 as the lowest version. tlsv1.3 - set TLSv1.3 as the lowest version. Valid values: follow-global-ssl-protocol, sslv3, tlsv1.0, tlsv1.1, tlsv1.2, tlsv1.3.
systemMailId String
an identifier for the resource with format {{fosid}}.
user String
SMTP account username.
auth string
Enable authentication. disable - Disable authentication. enable - Enable authentication. Valid values: disable, enable.
authType string
SMTP authentication type. psk - Use username and password to authenticate. certificate - Use local certificate to authenticate. Valid values: psk, certificate.
fosid string
Mail Service ID.
from string
Username for MAIL FROM.
fromPasswds string[]
SMTP password of default user.
localCert string
SMTP local certificate.
passwds string[]
SMTP account password.
port number
SMTP server port.
secureOption string
Communication secure option. default - Try STARTTLS, proceed as plain text communication otherwise. none - Communication will be in plain text format. smtps - Communication will be protected by SMTPS. starttls - Communication will be protected by STARTTLS. Valid values: default, none, smtps, starttls.
server string
SMTP server.
sslProtocol string
set the lowest SSL protocol version for connection to mail server. follow-global-ssl-protocol - Follow system.global.global-ssl-protocol setting (default). sslv3 - set SSLv3 as the lowest version. tlsv1.0 - set TLSv1.0 as the lowest version. tlsv1.1 - set TLSv1.1 as the lowest version. tlsv1.2 - set TLSv1.2 as the lowest version. tlsv1.3 - set TLSv1.3 as the lowest version. Valid values: follow-global-ssl-protocol, sslv3, tlsv1.0, tlsv1.1, tlsv1.2, tlsv1.3.
systemMailId string
an identifier for the resource with format {{fosid}}.
user string
SMTP account username.
auth str
Enable authentication. disable - Disable authentication. enable - Enable authentication. Valid values: disable, enable.
auth_type str
SMTP authentication type. psk - Use username and password to authenticate. certificate - Use local certificate to authenticate. Valid values: psk, certificate.
fosid str
Mail Service ID.
from_ str
Username for MAIL FROM.
from_passwds Sequence[str]
SMTP password of default user.
local_cert str
SMTP local certificate.
passwds Sequence[str]
SMTP account password.
port float
SMTP server port.
secure_option str
Communication secure option. default - Try STARTTLS, proceed as plain text communication otherwise. none - Communication will be in plain text format. smtps - Communication will be protected by SMTPS. starttls - Communication will be protected by STARTTLS. Valid values: default, none, smtps, starttls.
server str
SMTP server.
ssl_protocol str
set the lowest SSL protocol version for connection to mail server. follow-global-ssl-protocol - Follow system.global.global-ssl-protocol setting (default). sslv3 - set SSLv3 as the lowest version. tlsv1.0 - set TLSv1.0 as the lowest version. tlsv1.1 - set TLSv1.1 as the lowest version. tlsv1.2 - set TLSv1.2 as the lowest version. tlsv1.3 - set TLSv1.3 as the lowest version. Valid values: follow-global-ssl-protocol, sslv3, tlsv1.0, tlsv1.1, tlsv1.2, tlsv1.3.
system_mail_id str
an identifier for the resource with format {{fosid}}.
user str
SMTP account username.
auth String
Enable authentication. disable - Disable authentication. enable - Enable authentication. Valid values: disable, enable.
authType String
SMTP authentication type. psk - Use username and password to authenticate. certificate - Use local certificate to authenticate. Valid values: psk, certificate.
fosid String
Mail Service ID.
from String
Username for MAIL FROM.
fromPasswds List<String>
SMTP password of default user.
localCert String
SMTP local certificate.
passwds List<String>
SMTP account password.
port Number
SMTP server port.
secureOption String
Communication secure option. default - Try STARTTLS, proceed as plain text communication otherwise. none - Communication will be in plain text format. smtps - Communication will be protected by SMTPS. starttls - Communication will be protected by STARTTLS. Valid values: default, none, smtps, starttls.
server String
SMTP server.
sslProtocol String
set the lowest SSL protocol version for connection to mail server. follow-global-ssl-protocol - Follow system.global.global-ssl-protocol setting (default). sslv3 - set SSLv3 as the lowest version. tlsv1.0 - set TLSv1.0 as the lowest version. tlsv1.1 - set TLSv1.1 as the lowest version. tlsv1.2 - set TLSv1.2 as the lowest version. tlsv1.3 - set TLSv1.3 as the lowest version. Valid values: follow-global-ssl-protocol, sslv3, tlsv1.0, tlsv1.1, tlsv1.2, tlsv1.3.
systemMailId String
an identifier for the resource with format {{fosid}}.
user String
SMTP account username.

Outputs

All input properties are implicitly available as output properties. Additionally, the SystemMail resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing SystemMail Resource

Get an existing SystemMail resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: SystemMailState, opts?: CustomResourceOptions): SystemMail
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        auth: Optional[str] = None,
        auth_type: Optional[str] = None,
        fosid: Optional[str] = None,
        from_: Optional[str] = None,
        from_passwds: Optional[Sequence[str]] = None,
        local_cert: Optional[str] = None,
        passwds: Optional[Sequence[str]] = None,
        port: Optional[float] = None,
        secure_option: Optional[str] = None,
        server: Optional[str] = None,
        ssl_protocol: Optional[str] = None,
        system_mail_id: Optional[str] = None,
        user: Optional[str] = None) -> SystemMail
func GetSystemMail(ctx *Context, name string, id IDInput, state *SystemMailState, opts ...ResourceOption) (*SystemMail, error)
public static SystemMail Get(string name, Input<string> id, SystemMailState? state, CustomResourceOptions? opts = null)
public static SystemMail get(String name, Output<String> id, SystemMailState state, CustomResourceOptions options)
resources:  _:    type: fortimanager:SystemMail    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
Auth string
Enable authentication. disable - Disable authentication. enable - Enable authentication. Valid values: disable, enable.
AuthType string
SMTP authentication type. psk - Use username and password to authenticate. certificate - Use local certificate to authenticate. Valid values: psk, certificate.
Fosid string
Mail Service ID.
From string
Username for MAIL FROM.
FromPasswds List<string>
SMTP password of default user.
LocalCert string
SMTP local certificate.
Passwds List<string>
SMTP account password.
Port double
SMTP server port.
SecureOption string
Communication secure option. default - Try STARTTLS, proceed as plain text communication otherwise. none - Communication will be in plain text format. smtps - Communication will be protected by SMTPS. starttls - Communication will be protected by STARTTLS. Valid values: default, none, smtps, starttls.
Server string
SMTP server.
SslProtocol string
set the lowest SSL protocol version for connection to mail server. follow-global-ssl-protocol - Follow system.global.global-ssl-protocol setting (default). sslv3 - set SSLv3 as the lowest version. tlsv1.0 - set TLSv1.0 as the lowest version. tlsv1.1 - set TLSv1.1 as the lowest version. tlsv1.2 - set TLSv1.2 as the lowest version. tlsv1.3 - set TLSv1.3 as the lowest version. Valid values: follow-global-ssl-protocol, sslv3, tlsv1.0, tlsv1.1, tlsv1.2, tlsv1.3.
SystemMailId string
an identifier for the resource with format {{fosid}}.
User string
SMTP account username.
Auth string
Enable authentication. disable - Disable authentication. enable - Enable authentication. Valid values: disable, enable.
AuthType string
SMTP authentication type. psk - Use username and password to authenticate. certificate - Use local certificate to authenticate. Valid values: psk, certificate.
Fosid string
Mail Service ID.
From string
Username for MAIL FROM.
FromPasswds []string
SMTP password of default user.
LocalCert string
SMTP local certificate.
Passwds []string
SMTP account password.
Port float64
SMTP server port.
SecureOption string
Communication secure option. default - Try STARTTLS, proceed as plain text communication otherwise. none - Communication will be in plain text format. smtps - Communication will be protected by SMTPS. starttls - Communication will be protected by STARTTLS. Valid values: default, none, smtps, starttls.
Server string
SMTP server.
SslProtocol string
set the lowest SSL protocol version for connection to mail server. follow-global-ssl-protocol - Follow system.global.global-ssl-protocol setting (default). sslv3 - set SSLv3 as the lowest version. tlsv1.0 - set TLSv1.0 as the lowest version. tlsv1.1 - set TLSv1.1 as the lowest version. tlsv1.2 - set TLSv1.2 as the lowest version. tlsv1.3 - set TLSv1.3 as the lowest version. Valid values: follow-global-ssl-protocol, sslv3, tlsv1.0, tlsv1.1, tlsv1.2, tlsv1.3.
SystemMailId string
an identifier for the resource with format {{fosid}}.
User string
SMTP account username.
auth String
Enable authentication. disable - Disable authentication. enable - Enable authentication. Valid values: disable, enable.
authType String
SMTP authentication type. psk - Use username and password to authenticate. certificate - Use local certificate to authenticate. Valid values: psk, certificate.
fosid String
Mail Service ID.
from String
Username for MAIL FROM.
fromPasswds List<String>
SMTP password of default user.
localCert String
SMTP local certificate.
passwds List<String>
SMTP account password.
port Double
SMTP server port.
secureOption String
Communication secure option. default - Try STARTTLS, proceed as plain text communication otherwise. none - Communication will be in plain text format. smtps - Communication will be protected by SMTPS. starttls - Communication will be protected by STARTTLS. Valid values: default, none, smtps, starttls.
server String
SMTP server.
sslProtocol String
set the lowest SSL protocol version for connection to mail server. follow-global-ssl-protocol - Follow system.global.global-ssl-protocol setting (default). sslv3 - set SSLv3 as the lowest version. tlsv1.0 - set TLSv1.0 as the lowest version. tlsv1.1 - set TLSv1.1 as the lowest version. tlsv1.2 - set TLSv1.2 as the lowest version. tlsv1.3 - set TLSv1.3 as the lowest version. Valid values: follow-global-ssl-protocol, sslv3, tlsv1.0, tlsv1.1, tlsv1.2, tlsv1.3.
systemMailId String
an identifier for the resource with format {{fosid}}.
user String
SMTP account username.
auth string
Enable authentication. disable - Disable authentication. enable - Enable authentication. Valid values: disable, enable.
authType string
SMTP authentication type. psk - Use username and password to authenticate. certificate - Use local certificate to authenticate. Valid values: psk, certificate.
fosid string
Mail Service ID.
from string
Username for MAIL FROM.
fromPasswds string[]
SMTP password of default user.
localCert string
SMTP local certificate.
passwds string[]
SMTP account password.
port number
SMTP server port.
secureOption string
Communication secure option. default - Try STARTTLS, proceed as plain text communication otherwise. none - Communication will be in plain text format. smtps - Communication will be protected by SMTPS. starttls - Communication will be protected by STARTTLS. Valid values: default, none, smtps, starttls.
server string
SMTP server.
sslProtocol string
set the lowest SSL protocol version for connection to mail server. follow-global-ssl-protocol - Follow system.global.global-ssl-protocol setting (default). sslv3 - set SSLv3 as the lowest version. tlsv1.0 - set TLSv1.0 as the lowest version. tlsv1.1 - set TLSv1.1 as the lowest version. tlsv1.2 - set TLSv1.2 as the lowest version. tlsv1.3 - set TLSv1.3 as the lowest version. Valid values: follow-global-ssl-protocol, sslv3, tlsv1.0, tlsv1.1, tlsv1.2, tlsv1.3.
systemMailId string
an identifier for the resource with format {{fosid}}.
user string
SMTP account username.
auth str
Enable authentication. disable - Disable authentication. enable - Enable authentication. Valid values: disable, enable.
auth_type str
SMTP authentication type. psk - Use username and password to authenticate. certificate - Use local certificate to authenticate. Valid values: psk, certificate.
fosid str
Mail Service ID.
from_ str
Username for MAIL FROM.
from_passwds Sequence[str]
SMTP password of default user.
local_cert str
SMTP local certificate.
passwds Sequence[str]
SMTP account password.
port float
SMTP server port.
secure_option str
Communication secure option. default - Try STARTTLS, proceed as plain text communication otherwise. none - Communication will be in plain text format. smtps - Communication will be protected by SMTPS. starttls - Communication will be protected by STARTTLS. Valid values: default, none, smtps, starttls.
server str
SMTP server.
ssl_protocol str
set the lowest SSL protocol version for connection to mail server. follow-global-ssl-protocol - Follow system.global.global-ssl-protocol setting (default). sslv3 - set SSLv3 as the lowest version. tlsv1.0 - set TLSv1.0 as the lowest version. tlsv1.1 - set TLSv1.1 as the lowest version. tlsv1.2 - set TLSv1.2 as the lowest version. tlsv1.3 - set TLSv1.3 as the lowest version. Valid values: follow-global-ssl-protocol, sslv3, tlsv1.0, tlsv1.1, tlsv1.2, tlsv1.3.
system_mail_id str
an identifier for the resource with format {{fosid}}.
user str
SMTP account username.
auth String
Enable authentication. disable - Disable authentication. enable - Enable authentication. Valid values: disable, enable.
authType String
SMTP authentication type. psk - Use username and password to authenticate. certificate - Use local certificate to authenticate. Valid values: psk, certificate.
fosid String
Mail Service ID.
from String
Username for MAIL FROM.
fromPasswds List<String>
SMTP password of default user.
localCert String
SMTP local certificate.
passwds List<String>
SMTP account password.
port Number
SMTP server port.
secureOption String
Communication secure option. default - Try STARTTLS, proceed as plain text communication otherwise. none - Communication will be in plain text format. smtps - Communication will be protected by SMTPS. starttls - Communication will be protected by STARTTLS. Valid values: default, none, smtps, starttls.
server String
SMTP server.
sslProtocol String
set the lowest SSL protocol version for connection to mail server. follow-global-ssl-protocol - Follow system.global.global-ssl-protocol setting (default). sslv3 - set SSLv3 as the lowest version. tlsv1.0 - set TLSv1.0 as the lowest version. tlsv1.1 - set TLSv1.1 as the lowest version. tlsv1.2 - set TLSv1.2 as the lowest version. tlsv1.3 - set TLSv1.3 as the lowest version. Valid values: follow-global-ssl-protocol, sslv3, tlsv1.0, tlsv1.1, tlsv1.2, tlsv1.3.
systemMailId String
an identifier for the resource with format {{fosid}}.
user String
SMTP account username.

Import

System Mail can be imported using any of these accepted formats:

$ export “FORTIMANAGER_IMPORT_TABLE”=“true”

$ pulumi import fortimanager:index/systemMail:SystemMail labelname {{fosid}}
Copy

$ unset “FORTIMANAGER_IMPORT_TABLE”

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
fortimanager fortinetdev/terraform-provider-fortimanager
License
Notes
This Pulumi package is based on the fortimanager Terraform Provider.