Class SendmailServer
java.lang.Object
com.aoindustries.aoserv.client.AoservObject<Integer,SendmailServer>
com.aoindustries.aoserv.client.CachedObject<Integer,SendmailServer>
com.aoindustries.aoserv.client.CachedObjectIntegerKey<SendmailServer>
com.aoindustries.aoserv.client.email.SendmailServer
- All Implemented Interfaces:
Streamable
,StreamReadable
,StreamWritable
,Row
,AoservReadable
,AoservStreamable
,AoservWritable
,SingleTableObject<Integer,
SendmailServer>
An
SendmailServer
represents one running instance of Sendmail.- Author:
- AO Industries, Inc.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final boolean
Default value for sendmail_servers.allow_plaintext_authstatic final int
Default value for sendmail_servers.bad_rcpt_throttlestatic final int
Default value for sendmail_servers.connection_rate_throttlestatic final int
Default value for sendmail_servers.delay_lastatic final int
Default value for sendmail_servers.max_daemon_childrenstatic final int
Default value for sendmail_servers.max_message_sizestatic final int
Default value for sendmail_servers.max_queue_childrenstatic final int
Default value for sendmail_servers.min_free_blocksstatic final int
Default value for sendmail_servers.nice_queue_runstatic final int
Default value for sendmail_servers.queue_lastatic final int
Default value for sendmail_servers.refuse_laFields inherited from class com.aoindustries.aoserv.client.CachedObjectIntegerKey
pkey
Fields inherited from class com.aoindustries.aoserv.client.CachedObject
table
Fields inherited from class com.aoindustries.aoserv.client.AoservObject
USE_ARRAY_OF_DOMAIN, USE_SQL_DATA, USE_SQL_DATA_WRITE
-
Constructor Summary
ConstructorDescriptionDeprecated.Only required for implementation, do not use directly. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Allows plaintext authentication (PLAIN/LOGIN) on non-TLS links.int
The value forconfBAD_RCPT_THROTTLE
or-1
if not set.TheAddr
forClientPortOptions
withFamily=inet
ornull
if not set.TheAddr
forClientPortOptions
withFamily=inet6
ornull
if not set.Gets the client certificate for this server.int
protected Object
getColumnImpl
(int i) int
The value forconfCONNECTION_RATE_THROTTLE
or-1
if not set.int
The value forconfDELAY_LA
or-1
if not set.The fully qualified hostname forDw
,Dm
, andDj
.int
getId()
int
int
The value forconfMAX_DAEMON_CHILDREN
or-1
if not set.int
The value forconfMAX_MESSAGE_SIZE
or-1
if not set.int
The value forconfMAX_QUEUE_CHILDREN
or-1
if not set.int
The value forconfMIN_FREE_BLOCKS
or-1
if not set.getName()
Gets the name of the sendmail server instance.int
The value forconfNICE_QUEUE_RUN
or-1
if not set.int
int
The value forconfQUEUE_LA
or-1
if not set.int
The value forconfREFUSE_LA
or-1
if not set.Gets the server certificate for this server.int
Gets the systemd-encoded name of the sendmail server instance.void
Initializes this object from the raw database contents.void
read
(StreamableInput in, AoservProtocol.Version protocolVersion) AoservObject.toString()
implementation that is allowed to throw exceptions.void
write
(StreamableOutput out, AoservProtocol.Version protocolVersion) Methods inherited from class com.aoindustries.aoserv.client.CachedObjectIntegerKey
equals, getKey, getPkey, hashCode
Methods inherited from class com.aoindustries.aoserv.client.CachedObject
getTable, setTable
Methods inherited from class com.aoindustries.aoserv.client.AoservObject
compare, compare, compare, compare, compareIgnoreCaseConsistentWithEquals, compareTo, compareTo, compareTo, getAccountingCode, getColumn, getColumns, getColumns, getDomainLabel, getDomainLabels, getDomainName, getDto, getEmail, getGecos, getGroupId, getHashedKey, getHashedPassword, getHostname, getInetAddress, getLinuxId, getLinuxUserName, getMacAddress, getMysqlDatabaseName, getMysqlServerName, getMysqlUserName, getPort, getPostgresDatabaseName, getPostgresServerName, getPostgresUserId, getTableSchema, getTimeMillis, getTimeMillis, getUnixPath, getUserId, read, toString, write
-
Field Details
-
DEFAULT_ALLOW_PLAINTEXT_AUTH
public static final boolean DEFAULT_ALLOW_PLAINTEXT_AUTHDefault value for sendmail_servers.allow_plaintext_auth- See Also:
-
DEFAULT_MAX_QUEUE_CHILDREN
public static final int DEFAULT_MAX_QUEUE_CHILDRENDefault value for sendmail_servers.max_queue_children- See Also:
-
DEFAULT_NICE_QUEUE_RUN
public static final int DEFAULT_NICE_QUEUE_RUNDefault value for sendmail_servers.nice_queue_run- See Also:
-
DEFAULT_DELAY_LA
public static final int DEFAULT_DELAY_LADefault value for sendmail_servers.delay_la- See Also:
-
DEFAULT_QUEUE_LA
public static final int DEFAULT_QUEUE_LADefault value for sendmail_servers.queue_la- See Also:
-
DEFAULT_REFUSE_LA
public static final int DEFAULT_REFUSE_LADefault value for sendmail_servers.refuse_la- See Also:
-
DEFAULT_MAX_DAEMON_CHILDREN
public static final int DEFAULT_MAX_DAEMON_CHILDRENDefault value for sendmail_servers.max_daemon_children- See Also:
-
DEFAULT_BAD_RCPT_THROTTLE
public static final int DEFAULT_BAD_RCPT_THROTTLEDefault value for sendmail_servers.bad_rcpt_throttle- See Also:
-
DEFAULT_CONNECTION_RATE_THROTTLE
public static final int DEFAULT_CONNECTION_RATE_THROTTLEDefault value for sendmail_servers.connection_rate_throttle- See Also:
-
DEFAULT_MAX_MESSAGE_SIZE
public static final int DEFAULT_MAX_MESSAGE_SIZEDefault value for sendmail_servers.max_message_size- See Also:
-
DEFAULT_MIN_FREE_BLOCKS
public static final int DEFAULT_MIN_FREE_BLOCKSDefault value for sendmail_servers.min_free_blocks- See Also:
-
-
Constructor Details
-
SendmailServer
Deprecated.Only required for implementation, do not use directly.- See Also:
-
-
Method Details
-
toStringImpl
Description copied from class:AoservObject
AoservObject.toString()
implementation that is allowed to throw exceptions.Implementation Note:
This default implementation callsAoservObject.toString()
on the key (fromAoservObject.getKey()
). When the key isnull
, uses the default implementation fromObject.toString()
.- Overrides:
toStringImpl
in classCachedObjectIntegerKey<SendmailServer>
-
getColumnImpl
- Specified by:
getColumnImpl
in classAoservObject<Integer,
SendmailServer>
-
getTableId
- Specified by:
getTableId
in classAoservObject<Integer,
SendmailServer>
-
init
Description copied from class:AoservObject
Initializes this object from the raw database contents.- Specified by:
init
in classAoservObject<Integer,
SendmailServer> - Parameters:
result
- theResultSet
containing the row to copy into this object- Throws:
SQLException
-
read
- Specified by:
read
in interfaceAoservReadable
- Specified by:
read
in interfaceAoservStreamable
- Specified by:
read
in classAoservObject<Integer,
SendmailServer> - Throws:
IOException
-
write
- Specified by:
write
in interfaceAoservStreamable
- Specified by:
write
in interfaceAoservWritable
- Specified by:
write
in classAoservObject<Integer,
SendmailServer> - Throws:
IOException
-
getId
public int getId() -
getLinuxServer_server_id
public int getLinuxServer_server_id() -
getLinuxServer
- Throws:
SQLException
IOException
-
getName
Gets the name of the sendmail server instance. The default instance has a null name. Additional instances will have non-empty names. The name is unique per server, including only one default instance.- See Also:
-
getSystemdEscapedName
Gets the systemd-encoded name of the sendmail server instance. The default instance has a null name. Additional instances will have non-empty names. The name is unique per server, including only one default instance.- See Also:
-
getPackage_pkey
public int getPackage_pkey() -
getPackage
- Throws:
IOException
SQLException
-
getHostname
-
getServerCertificate_pkey
public int getServerCertificate_pkey() -
getServerCertificate
Gets the server certificate for this server.- Returns:
- the server SSL certificate or
null
when filtered - Throws:
SQLException
IOException
-
getClientCertificate_pkey
public int getClientCertificate_pkey() -
getClientCertificate
Gets the client certificate for this server.- Returns:
- the client SSL certificate or
null
when filtered - Throws:
SQLException
IOException
-
getAllowPlaintextAuth
public boolean getAllowPlaintextAuth()Allows plaintext authentication (PLAIN/LOGIN) on non-TLS links. When enabled, removes "p" from AuthOptions. -
getMaxQueueChildren
public int getMaxQueueChildren()The value forconfMAX_QUEUE_CHILDREN
or-1
if not set. -
getNiceQueueRun
public int getNiceQueueRun()The value forconfNICE_QUEUE_RUN
or-1
if not set. -
getDelayLa
public int getDelayLa()The value forconfDELAY_LA
or-1
if not set. -
getQueueLa
public int getQueueLa()The value forconfQUEUE_LA
or-1
if not set. -
getRefuseLa
public int getRefuseLa()The value forconfREFUSE_LA
or-1
if not set. -
getMaxDaemonChildren
public int getMaxDaemonChildren()The value forconfMAX_DAEMON_CHILDREN
or-1
if not set. -
getBadRcptThrottle
public int getBadRcptThrottle()The value forconfBAD_RCPT_THROTTLE
or-1
if not set. -
getConnectionRateThrottle
public int getConnectionRateThrottle()The value forconfCONNECTION_RATE_THROTTLE
or-1
if not set. -
getMaxMessageSize
public int getMaxMessageSize()The value forconfMAX_MESSAGE_SIZE
or-1
if not set. -
getMinFreeBlocks
public int getMinFreeBlocks()The value forconfMIN_FREE_BLOCKS
or-1
if not set. -
getClientAddrInet_id
-
getClientAddrInet
TheAddr
forClientPortOptions
withFamily=inet
ornull
if not set.- Throws:
IOException
SQLException
-
getClientAddrInet6_id
-
getClientAddrInet6
TheAddr
forClientPortOptions
withFamily=inet6
ornull
if not set.- Throws:
IOException
SQLException
-
getSendmailBinds
- Throws:
IOException
SQLException
-