Skip to main content

Codes

Namespace: global/code

Predefined codes for SMTP responses.

fn code

fn code(code: int, enhanced: String, text: String) -> Result<Code>
A SMTP code with the code and message as parameter and an enhanced code.

fn c554_7_1

fn c554_7_1() -> Code
Return a relay access denied code.

fn c550_7_20

fn c550_7_20() -> Code
Return a DKIM Failure code. (RFC 6376) DKIM signature not found.

fn c550_7_21

fn c550_7_21() -> Code
Return a DKIM Failure code. (RFC 6376) No acceptable DKIM signature found.

fn c550_7_22

fn c550_7_22() -> Code
Return a DKIM Failure code. (RFC 6376) No valid author matched DKIM signature found.

fn c550_7_23

fn c550_7_23() -> Code
Return a SPF Failure code. (RFC 7208) Validation failed.

fn c550_7_24

fn c550_7_24() -> Code
Return a SPF Failure code. (RFC 7208) Validation error.

fn c550_7_25

fn c550_7_25() -> Code
Return a reverse DNS Failure code.

fn c500_7_26

fn c500_7_26() -> Code
Return a multiple authentication failures code.

fn c550_7_27

fn c550_7_27() -> Code
Return a Null MX cod. (RFC 7505) The sender address has a null MX record.

fn c556_1_10

fn c556_1_10() -> Code
Return a Null MX cod. (RFC 7505) The recipient address has a null MX record.

fn c451_7_1

fn c451_7_1() -> Code
Return a greylisting code (https://www.rfc-editor.org/rfc/rfc6647.html#section-2.1)

fn c451_3_0

fn c451_3_0() -> Code
Multiple destination domains per transaction is unsupported code.

fn c550_1_1

fn c550_1_1() -> Code
Multiple destination domains per transaction is unsupported code.