Skip to main content

Connect to mailbox

Sign in to a mailbox over IMAP or POP3 as a named session, optionally opening a shared mailbox.

Command in the Email toolkit · id ooa.email/connect · 13 inputs (2 required), no outputs

Inputs​

InputTypeRequiredDefaultWhat it is
Incoming mail server (IMAP)StringYesMail server that the agent reads from (IMAP or POP3 host).
PortNumberNo993Server port: 993 IMAP over SSL, 143 IMAP, 995 POP3 over SSL, 110 POP3. Left at 993, the usual port of the chosen protocol and security is used.
UserStringYesMailbox user name.
PasswordCredentialNoPassword or app password from the vault.
Access tokenCredentialNoOAuth 2.0 access token (Microsoft 365, Gmail) from the vault; or leave it empty and choose a saved sign-in connection, which gets and renews the token.
ProtocolStringNoimapimap keeps folders and read status on the server; pop3 reads only the inbox and cannot mark or move emails.
SecurityStringNosslConnection security.
Shared mailboxStringNoOpen this shared mailbox with the user's own sign-in (Exchange and Microsoft 365; the user needs full access to it).
Timeout (seconds)NumberNo15How long to wait for the server to answer when connecting.
SessionStringNomailSession name.
Outgoing mail server (SMTP)StringNoOutgoing server to keep with this session, so Send, Reply and Forward need no server or sign-in of their own.
SMTP portNumberNo587587 for STARTTLS, 465 for SSL.
SMTP securityStringNostarttlsOutgoing connection security.