ts-mailcow-api
    Preparing search index...

    Interface RoutingEndpoints

    Interface for all Routing endpoints related to Mailcow.

    interface RoutingEndpoints {
        createRelayhost(
            payload: CreateRelayhostRequest,
        ): Promise<MailcowResponse>;
        createTransportMap(
            payload: CreateTransportMapRequest,
        ): Promise<MailcowResponse>;
        deleteRelayhost(payload: DeleteRoutingRequest): Promise<MailcowResponse>;
        deleteTransportMap(payload: DeleteRoutingRequest): Promise<MailcowResponse>;
        getRelayhost(id: string): Promise<Relayhost[]>;
        getTransportMap(id: string): Promise<TransportMap[]>;
    }
    Index

    Methods

    • Retrieves Sender-Dependent Transports by ID or all entries.

      Parameters

      • id: string

        The relayhost ID or 'all' to retrieve all relayhosts.

      Returns Promise<Relayhost[]>

      A promise that resolves to an array of Relayhost objects.

    • Retrieves Transport Maps by ID or all entries.

      Parameters

      • id: string

        The transport map ID or 'all' to retrieve all transport maps.

      Returns Promise<TransportMap[]>

      A promise that resolves to an array of TransportMap objects.