Horde_Mail_Autoconfig_Driver_Srv
extends Horde_Mail_Autoconfig_Driver
in package
Perform RFC 6186 DNS SRV record lookups to determine mail configuration.
Tags
Table of Contents
- $dns : Net_DNS2_Resolver
- DNS resolver.
- $priority : int
- High priority: this is a standardized (RFC) method of determining configuration values.
- mailSearch() : mixed
- Determine the configuration for a message storage access server.
- msaSearch() : mixed
- Determine the configuration for a message submission agent (MSA).
- _srvSearch() : mixed
- Perform the SRV search.
Properties
$dns
DNS resolver.
public
Net_DNS2_Resolver
$dns
$priority
High priority: this is a standardized (RFC) method of determining configuration values.
public
int
$priority
= 10
Methods
mailSearch()
Determine the configuration for a message storage access server.
public
mailSearch(mixed $domains[, array<string|int, mixed> $opts = array() ]) : mixed
Parameters
- $domains : mixed
-
List of domains to search.
- $opts : array<string|int, mixed> = array()
-
Additional options:
- email: (Horde_Mail_Rfc822_Address) The original e-mail provided.
- no_imap: (boolean) If true, ignore IMAP servers.
- no_pop3: (boolean) If true, ignore POP3 servers.
Return values
mixed —False if no servers found, or a list of server objects in order of decreasing priority.
msaSearch()
Determine the configuration for a message submission agent (MSA).
public
msaSearch(mixed $domains[, array<string|int, mixed> $opts = array() ]) : mixed
Parameters
- $domains : mixed
-
List of domains to search.
- $opts : array<string|int, mixed> = array()
-
Additional options:
- email: (Horde_Mail_Rfc822_Address) The original e-mail provided.
Return values
mixed —False if no servers found, or a list of server objects in order of decreasing priority.
_srvSearch()
Perform the SRV search.
protected
_srvSearch(array<string|int, mixed> $domains, array<string|int, mixed> $queries) : mixed
Parameters
- $domains : array<string|int, mixed>
-
List of domains to search.
- $queries : array<string|int, mixed>
-
The SRV queries to run.
Return values
mixed —False if no servers found, or a list of server objects in order of decreasing priority.