Add a pop3 port listener on the specified endpoint. You can listen on
multiple ports by specifying multiple --pop3 options. For backwards
compatibility, a bare TCP port number can be specified, but this is
deprecated. [SSL Example: ssl:8995:privateKey=mycert.pem] [default:
tcp:8110]

Add an smtp port listener on the specified endpoint. You can listen on
multiple ports by specifying multiple --smtp options For backwards
compatibility, a bare TCP port number can be specified, but this is
deprecated. [SSL Example: ssl:8465:privateKey=mycert.pem] [default:
tcp:8025]

Generate an SMTP/POP3 virtual domain. This option requires an argument
of the form 'NAME=PATH' where NAME is the DNS Domain Name for which email
will be accepted and where PATH is a the filesystem path to a Maildir
folder. [Example: 'example.com=/tmp/example.com']

Return a list of endpoints for the specified service, constructing
defaults if necessary.

Parameters

reactor

If any endpoints are created, this is the reactor with which they are
created.

service

A key into self indicating the type of service to retrieve endpoints for.
This is either "pop3" or
"smtp".

Returns

A list of IServerStreamEndpoint providers
corresponding to the command line parameters that were specified for
service. If none were and the protocol was not explicitly
disabled with a --no-* option, a default endpoint for the service is
created using self._protoDefaults.