\Horde_Mail_Autoconfig_Driver_Guess

Do simplistic guessing of hosts by appending common server names to domain.

Summary

Methods
Properties
Constants
msaSearch()
mailSearch()
$priority
$dns
No constants found
_resolveHosts()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$priority

$priority : integer

Low priority: shot-in-the dark technique that has no formalized standard.

Type

integer

$dns

$dns : \Net_DNS2_Resolver

DNS resolver.

Type

\Net_DNS2_Resolver

Methods

msaSearch()

msaSearch(array  $domains, array  $opts = array()) : mixed

Determine the configuration for a message submission agent (MSA).

Parameters

array $domains

List of domains to search.

array $opts

Additional options:

  • email: (Horde_Mail_Rfc822_Address) The original e-mail provided.

Returns

mixed —

False if no servers found, or a list of server objects in order of decreasing priority.

mailSearch()

mailSearch(array  $domains, array  $opts = array()) : mixed

Determine the configuration for a message storage access server.

Parameters

array $domains

List of domains to search.

array $opts

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.

Returns

mixed —

False if no servers found, or a list of server objects in order of decreasing priority.

_resolveHosts()

_resolveHosts(array  $hosts) : mixed

Filter list by removing non-existent hosts.

Parameters

array $hosts

List of possible servers (objects).

Returns

mixed —

Array of existing hosts, or false if none exist.