public final class MilterConstants extends Object
Commands are prefixed with SMFIC. Many correspond directly to an SMTP command.
Reply (actions) codes are prefixed with SMFIR.
SMFIP prefixes define flags for what the MTA should and should not send to the filter.
Modifier and Type | Class and Description |
---|---|
static class |
MilterConstants.Macros |
Modifier and Type | Field and Description |
---|---|
static ByteBuffer |
EMPTY_BUFFER |
static int |
SMFI_CURRENT_ACTSIONS
Flags for
IMilterHandler.getActionFlags() equivalent of SMFIF_ADDHDRS , SMFIF_CHGBODY ,
SMFIF_ADDRCPT , SMFIF_DELRCPT , SMFIF_CHGHDRS , SMFIF_QUARANTINE ,
SMFIF_CHGFROM , SMFIF_ADDRCPT_PAR , SMFIF_SETSYMLIST . |
static int |
SMFI_CURRENT_PROTOCOL
Flags for
IMilterHandler.getProtocolFlags() equivalent of all SMFIP_ flags. |
static int |
SMFI_V1_ACTS
Flags for
IMilterHandler.getActionFlags() equivalent of SMFIF_ADDHDRS , SMFIF_CHGBODY ,
SMFIF_ADDRCPT , SMFIF_DELRCPT . |
static int |
SMFI_V1_PROT
Flags for
IMilterHandler.getProtocolFlags() equivalent of SMFIP_NOCONNECT , SMFIP_NOHELO ,
SMFIP_NOMAIL , SMFIP_NORCPT , SMFIP_NOBODY , SMFIP_NOHDRS . |
static int |
SMFI_V2_ACTS
Flags for
IMilterHandler.getActionFlags() equivalent of SMFIF_ADDHDRS , SMFIF_CHGBODY ,
SMFIF_ADDRCPT , SMFIF_DELRCPT , SMFIF_CHGHDRS , SMFIF_QUARANTINE . |
static int |
SMFI_V2_PROT
Flags for
IMilterHandler.getProtocolFlags() equivalent of SMFIP_NOCONNECT , SMFIP_NOHELO ,
SMFIP_NOMAIL , SMFIP_NORCPT , SMFIP_NOBODY , SMFIP_NOHDRS , SMFIP_NOEOH . |
static int |
SMFIA_INET |
static int |
SMFIA_INET6 |
static int |
SMFIC_ABORT
Abort.
|
static int |
SMFIC_BODY
Body chunk.
|
static int |
SMFIC_BODYEOB
Final body chunk (End).
|
static int |
SMFIC_CONNECT
Connection information.
|
static int |
SMFIC_DATA
DATA.
|
static int |
SMFIC_EOH
End of headers? This one is guesswork.
|
static int |
SMFIC_HEADER
Header.
|
static int |
SMFIC_HELO
HELO/EHLO.
|
static int |
SMFIC_MACRO
Define macro.
|
static int |
SMFIC_MAIL
MAIL FROM.
|
static int |
SMFIC_OPTNEG
Option negotiation.
|
static int |
SMFIC_QUIT
QUIT.
|
static int |
SMFIC_QUIT_NC
QUIT but new connection follows.
|
static int |
SMFIC_RCPT
RCPT TO.
|
static int |
SMFIC_UNKNOWN
Any unknown command.
|
static int |
SMFIF_ADDHDRS
Flag for
IMilterHandler.getActionFlags() to indicate that headers may be added. |
static int |
SMFIF_ADDRCPT
Flag for
IMilterHandler.getActionFlags() to indicate that recipients may be added. |
static int |
SMFIF_ADDRCPT_PAR
Flag for
IMilterHandler.getActionFlags() to indicate that the filter may add recipients, including ESMTP
parameter to the envelope. |
static int |
SMFIF_CHGBODY
Flag for
IMilterHandler.getActionFlags() to indicate that the body may be changed. |
static int |
SMFIF_CHGFROM
Flag for
IMilterHandler.getActionFlags() to indicate that the filter may change the envelope sender. |
static int |
SMFIF_CHGHDRS
Flag for
IMilterHandler.getActionFlags() to indicate that headers may be changed or deleted. |
static int |
SMFIF_DELRCPT
Flag for
IMilterHandler.getActionFlags() to indicate that recipients may be deleted. |
static int |
SMFIF_MODBODY
Flag for
IMilterHandler.getActionFlags() to indicate that the body may be changed. |
static int |
SMFIF_NONE
Flag for
IMilterHandler.getActionFlags() to indicate that no modifications will be made. |
static int |
SMFIF_QUARANTINE
Flag for
IMilterHandler.getActionFlags() to indicate that the envelope may be quarantined. |
static int |
SMFIF_SETSYMLIST
Flag for
IMilterHandler.getActionFlags() to indicate that the filter can send set of symbols (macros)
that it wants. |
static int |
SMFIP_HDR_LEADSPC
Flag for
IMilterHandler.getProtocolFlags() to indicate a milter shluld receive header field values with
all leading spaces by requesting the SMFIP_HDR_LEADSPC protocol action. |
static int |
SMFIP_NOBODY
Flag for
IMilterHandler.getProtocolFlags() to indicate MTA should NOT send body. |
static int |
SMFIP_NOCONNECT
Flag for
IMilterHandler.getProtocolFlags() to indicate MTA should NOT send connect info. |
static int |
SMFIP_NODATA
Flag for
IMilterHandler.getProtocolFlags() to indicate MTA should NOT send DATA. |
static int |
SMFIP_NOEOH
Flag for
IMilterHandler.getProtocolFlags() to indicate MTA should NOT send End of Headers. |
static int |
SMFIP_NOHDRS
Flag for
IMilterHandler.getProtocolFlags() to indicate MTA should NOT send headers. |
static int |
SMFIP_NOHELO
Flag for
IMilterHandler.getProtocolFlags() to indicate MTA should NOT send HELO/EHLO info. |
static int |
SMFIP_NOMAIL
Flag for
IMilterHandler.getProtocolFlags() to indicate MTA should NOT send MAIL FROM command info. |
static int |
SMFIP_NORCPT
Flag for
IMilterHandler.getProtocolFlags() to indicate MTA should NOT send RCPT TO command info. |
static int |
SMFIP_NOUNKNOWN
Flag for
IMilterHandler.getProtocolFlags() to indicate MTA should NOT send unknown commands. |
static int |
SMFIP_NR_BODY
Flag for
IMilterHandler.getProtocolFlags() to indicate MTA should not expect a reply for body chunk. |
static int |
SMFIP_NR_CONN
Flag for
IMilterHandler.getProtocolFlags() to indicate MTA should not expect a reply for CONNECT. |
static int |
SMFIP_NR_DATA
Flag for
IMilterHandler.getProtocolFlags() to indicate MTA should not expect a reply for DATA. |
static int |
SMFIP_NR_EOH
Flag for
IMilterHandler.getProtocolFlags() to indicate MTA should not expect a reply for End of Headers. |
static int |
SMFIP_NR_HDR
Flag for
IMilterHandler.getProtocolFlags() to indicate Negotiation option: No reply for headers. |
static int |
SMFIP_NR_HELO
Flag for
IMilterHandler.getProtocolFlags() to indicate MTA should not expect a reply for HELO. |
static int |
SMFIP_NR_MAIL
Flag for
IMilterHandler.getProtocolFlags() to indicate MTA should not expect a reply for MAIL. |
static int |
SMFIP_NR_RCPT
Flag for
IMilterHandler.getProtocolFlags() to indicate MTA should not expect a reply for RCPT. |
static int |
SMFIP_NR_UNKN
Flag for
IMilterHandler.getProtocolFlags() to indicate MTA should not expect a reply for UNKNOWN command
processing. |
static int |
SMFIP_RCPT_REJ
Flag for
IMilterHandler.getProtocolFlags() to indicate MTA should also send rejected RCPTs. |
static int |
SMFIP_SKIP
Flag for
IMilterHandler.getProtocolFlags() to indicate MTA understands the SKIP command, only sent in
response to BODY chunks. |
static int |
SMFIR_ACCEPT
Accept sender.
|
static int |
SMFIR_ADDHEADER
Add or replace header.
|
static int |
SMFIR_ADDRCPT
Add recipient.
|
static int |
SMFIR_ADDRCPT_PAR
Add recipient (including ESMTP args).
|
static int |
SMFIR_CHGFROM
Change "MAIL FROM" value.
|
static int |
SMFIR_CHGHEADER
Replace header.
|
static int |
SMFIR_CONN_FAIL
Cause a connection failure.
|
static int |
SMFIR_CONTINUE
Continue with default operation.
|
static int |
SMFIR_DELRCPT
Remove recipient.
|
static int |
SMFIR_DISCARD
Discard the message.
|
static int |
SMFIR_INSHEADER
Add header without replacing.
|
static int |
SMFIR_PROGRESS
Operation still in progress.
|
static int |
SMFIR_QUARANTINE
Quarantine the message.
|
static int |
SMFIR_REJECT
Reject the message.
|
static int |
SMFIR_REPLBODY
Replace body (chunk).
|
static int |
SMFIR_REPLYCODE |
static int |
SMFIR_SETSYMLIST
Set list of symbols (macros).
|
static int |
SMFIR_SKIP
Skip further BODY chunks.
|
static int |
SMFIR_TEMPFAIL
Temporary error.
|
public static final int SMFIC_CONNECT
public static final int SMFIC_MACRO
public static final int SMFIC_HELO
public static final int SMFIC_MAIL
public static final int SMFIC_RCPT
public static final int SMFIC_BODYEOB
public static final int SMFIC_HEADER
public static final int SMFIC_EOH
public static final int SMFIC_OPTNEG
public static final int SMFIC_QUIT
public static final int SMFIC_QUIT_NC
public static final int SMFIC_BODY
public static final int SMFIC_DATA
public static final int SMFIC_ABORT
public static final int SMFIC_UNKNOWN
public static final int SMFIR_ACCEPT
public static final int SMFIR_ADDHEADER
public static final int SMFIR_INSHEADER
public static final int SMFIR_SETSYMLIST
public static final int SMFIR_ADDRCPT
public static final int SMFIR_ADDRCPT_PAR
public static final int SMFIR_CHGHEADER
public static final int SMFIR_CHGFROM
public static final int SMFIR_CONN_FAIL
public static final int SMFIR_CONTINUE
public static final int SMFIR_DELRCPT
public static final int SMFIR_DISCARD
public static final int SMFIR_PROGRESS
public static final int SMFIR_QUARANTINE
public static final int SMFIR_SKIP
public static final int SMFIR_REJECT
public static final int SMFIR_REPLBODY
public static final int SMFIR_REPLYCODE
public static final int SMFIR_TEMPFAIL
public static final int SMFIA_INET
public static final int SMFIA_INET6
public static final int SMFIP_NOCONNECT
IMilterHandler.getProtocolFlags()
to indicate MTA should NOT send connect info.public static final int SMFIP_NOHELO
IMilterHandler.getProtocolFlags()
to indicate MTA should NOT send HELO/EHLO info.public static final int SMFIP_NOMAIL
IMilterHandler.getProtocolFlags()
to indicate MTA should NOT send MAIL FROM command info.public static final int SMFIP_NORCPT
IMilterHandler.getProtocolFlags()
to indicate MTA should NOT send RCPT TO command info. Can be
multiple per message.public static final int SMFIP_NOBODY
IMilterHandler.getProtocolFlags()
to indicate MTA should NOT send body.public static final int SMFIP_NOHDRS
IMilterHandler.getProtocolFlags()
to indicate MTA should NOT send headers.public static final int SMFIP_NOEOH
IMilterHandler.getProtocolFlags()
to indicate MTA should NOT send End of Headers.public static final int SMFIP_NR_HDR
IMilterHandler.getProtocolFlags()
to indicate Negotiation option: No reply for headers.public static final int SMFIP_NOUNKNOWN
IMilterHandler.getProtocolFlags()
to indicate MTA should NOT send unknown commands.public static final int SMFIP_NODATA
IMilterHandler.getProtocolFlags()
to indicate MTA should NOT send DATA.public static final int SMFIP_SKIP
IMilterHandler.getProtocolFlags()
to indicate MTA understands the SKIP command, only sent in
response to BODY chunks.public static final int SMFIP_RCPT_REJ
IMilterHandler.getProtocolFlags()
to indicate MTA should also send rejected RCPTs.public static final int SMFIP_NR_CONN
IMilterHandler.getProtocolFlags()
to indicate MTA should not expect a reply for CONNECT.public static final int SMFIP_NR_HELO
IMilterHandler.getProtocolFlags()
to indicate MTA should not expect a reply for HELO.public static final int SMFIP_NR_MAIL
IMilterHandler.getProtocolFlags()
to indicate MTA should not expect a reply for MAIL.public static final int SMFIP_NR_RCPT
IMilterHandler.getProtocolFlags()
to indicate MTA should not expect a reply for RCPT.public static final int SMFIP_NR_DATA
IMilterHandler.getProtocolFlags()
to indicate MTA should not expect a reply for DATA.public static final int SMFIP_NR_UNKN
IMilterHandler.getProtocolFlags()
to indicate MTA should not expect a reply for UNKNOWN command
processing.public static final int SMFIP_NR_EOH
IMilterHandler.getProtocolFlags()
to indicate MTA should not expect a reply for End of Headers.public static final int SMFIP_NR_BODY
IMilterHandler.getProtocolFlags()
to indicate MTA should not expect a reply for body chunk.public static final int SMFIP_HDR_LEADSPC
IMilterHandler.getProtocolFlags()
to indicate a milter shluld receive header field values with
all leading spaces by requesting the SMFIP_HDR_LEADSPC protocol action. Also, if the flag is set then the MTA
does not add a leading space to headers that are added, inserted, or replaced..public static final int SMFI_V1_ACTS
IMilterHandler.getActionFlags()
equivalent of SMFIF_ADDHDRS
, SMFIF_CHGBODY
,
SMFIF_ADDRCPT
, SMFIF_DELRCPT
.public static final int SMFI_V2_ACTS
IMilterHandler.getActionFlags()
equivalent of SMFIF_ADDHDRS
, SMFIF_CHGBODY
,
SMFIF_ADDRCPT
, SMFIF_DELRCPT
, SMFIF_CHGHDRS
, SMFIF_QUARANTINE
.public static final int SMFI_CURRENT_ACTSIONS
IMilterHandler.getActionFlags()
equivalent of SMFIF_ADDHDRS
, SMFIF_CHGBODY
,
SMFIF_ADDRCPT
, SMFIF_DELRCPT
, SMFIF_CHGHDRS
, SMFIF_QUARANTINE
,
SMFIF_CHGFROM
, SMFIF_ADDRCPT_PAR
, SMFIF_SETSYMLIST
.
The value of this constant intentionally differs from it's equivalent in the C libmilter, updated to support all the current actions.
public static final int SMFI_V1_PROT
IMilterHandler.getProtocolFlags()
equivalent of SMFIP_NOCONNECT
, SMFIP_NOHELO
,
SMFIP_NOMAIL
, SMFIP_NORCPT
, SMFIP_NOBODY
, SMFIP_NOHDRS
.public static final int SMFI_V2_PROT
IMilterHandler.getProtocolFlags()
equivalent of SMFIP_NOCONNECT
, SMFIP_NOHELO
,
SMFIP_NOMAIL
, SMFIP_NORCPT
, SMFIP_NOBODY
, SMFIP_NOHDRS
, SMFIP_NOEOH
.public static final int SMFI_CURRENT_PROTOCOL
IMilterHandler.getProtocolFlags()
equivalent of all SMFIP_
flags.public static final int SMFIF_NONE
IMilterHandler.getActionFlags()
to indicate that no modifications will be made.public static final int SMFIF_ADDHDRS
IMilterHandler.getActionFlags()
to indicate that headers may be added.public static final int SMFIF_CHGBODY
IMilterHandler.getActionFlags()
to indicate that the body may be changed. Synonym of
SMFIF_MODBODY
.public static final int SMFIF_MODBODY
IMilterHandler.getActionFlags()
to indicate that the body may be changed. Synonym of
SMFIF_CHGBODY
.public static final int SMFIF_ADDRCPT
IMilterHandler.getActionFlags()
to indicate that recipients may be added.public static final int SMFIF_DELRCPT
IMilterHandler.getActionFlags()
to indicate that recipients may be deleted.public static final int SMFIF_CHGHDRS
IMilterHandler.getActionFlags()
to indicate that headers may be changed or deleted.public static final int SMFIF_QUARANTINE
IMilterHandler.getActionFlags()
to indicate that the envelope may be quarantined.public static final int SMFIF_CHGFROM
IMilterHandler.getActionFlags()
to indicate that the filter may change the envelope sender.public static final int SMFIF_ADDRCPT_PAR
IMilterHandler.getActionFlags()
to indicate that the filter may add recipients, including ESMTP
parameter to the envelope.public static final int SMFIF_SETSYMLIST
IMilterHandler.getActionFlags()
to indicate that the filter can send set of symbols (macros)
that it wants.public static final ByteBuffer EMPTY_BUFFER
Copyright © 2016. All rights reserved.