protocol

The 'protocol' directive specifies the protocol type for connecting to a mail server in the NGINX Mail Core module.

Syntaxprotocol {imap | pop3 | smtp};
Defaultnone
Contextmail server
Arguments1

Description

The 'protocol' directive is used within a mail server context to define the communication protocol that the NGINX mail server will use to interact with clients. This directive is particularly important as it determines how clients will connect and how the server will interpret the incoming data. The supported protocols include 'imap', 'pop3', and 'smtp'. Each protocol has its own specific functionalities and behaviors, enabling the NGINX server to facilitate different types of mail operations depending on the requirements.

Config Example

mail {
    server {
        listen 10.0.0.1:25;
        protocol smtp;
        # additional configuration
    }
}

Ensure to use the directive within a valid mail server context, as it cannot be placed outside of this context.

Review the specific requirements and configurations of each protocol to avoid misconfigurations.

← Back to all directives