global::code
Predefined codes for SMTP responses.
fn
c554_7_1
fn c554_7_1() -> SharedObject
Return a relay access denied code.
#{
mail: [
// Will send "554 5.7.1 Relay access denied" to the client.
rule "anti relay" || { state::deny(code::c554_7_1()) }
]
}
fn
c550_7_20
fn c550_7_20() -> SharedObject
Return a DKIM Failure code. (RFC 6376)
DKIM signature not found.
#{
mail: [
// Will send "550 5.7.20 No passing DKIM signature found" to the client.
rule "deny with code" || { state::deny(code::c550_7_20()) }
]
}
fn
c550_7_21
fn c550_7_21() -> SharedObject
Return a DKIM Failure code. (RFC 6376)
No acceptable DKIM signature found.
#{
mail: [
// Will send "550 5.7.21 No acceptable DKIM signature found" to the client.
rule "deny with code" || { state::deny(code::c550_7_21()) }
]
}
fn
c550_7_22
fn c550_7_22() -> SharedObject
Return a DKIM Failure code. (RFC 6376)
No valid author matched DKIM signature found.
#{
mail: [
// Will send "550 5.7.22 No valid author-matched DKIM signature found" to the client.
rule "deny with code" || { state::deny(code::c550_7_22()) }
]
}
fn
c550_7_23
fn c550_7_23() -> SharedObject
Return a SPF Failure code. (RFC 7208)
Validation failed.
#{
mail: [
// Will send "550 5.7.23 SPF validation failed" to the client.
rule "deny with code" || { state::deny(code::c550_7_23()) }
]
}
fn
c550_7_24
fn c550_7_24() -> SharedObject
Return a SPF Failure code. (RFC 7208)
Validation error.
#{
mail: [
// Will send "550 5.7.24 SPF validation error" to the client.
rule "deny with code" || { state::deny(code::c550_7_24()) }
]
}
fn
c550_7_25
fn c550_7_25() -> SharedObject
Return a reverse DNS Failure code.
#{
mail: [
// Will send "550 5.7.25 Reverse DNS validation failed" to the client.
rule "deny with code" || { state::deny(code::c550_7_25()) }
]
}
fn
c500_7_26
fn c500_7_26() -> SharedObject
Return a multiple authentication failures code.
#{
mail: [
// Will send "500 5.7.26 Multiple authentication checks failed" to the client.
rule "deny with code" || { state::deny(code::c500_7_26()) }
]
}
fn
c550_7_27
fn c550_7_27() -> SharedObject
Return a Null MX cod. (RFC 7505)
The sender address has a null MX record.
#{
mail: [
// Will send "550 5.7.27 Sender address has null MX" to the client.
rule "deny with code" || { state::deny(code::c550_7_27()) }
]
}
fn
c556_1_10
fn c556_1_10() -> SharedObject
Return a Null MX cod. (RFC 7505)
The recipient address has a null MX record.
#{
mail: [
// Will send "556 5.1.10 Recipient address has null MX" to the client.
rule "deny with code" || { state::deny(code::c556_1_10()) }
]
}
fn
c451_7_1
fn c451_7_1() -> SharedObject
Return a greylisting code ()
#{
mail: [
// Will send "451 4.7.1 Sender is not authorized. Please try again." to the client.
rule "deny with code" || { state::deny(code::c451_7_1()) }
]
}
fn
c451_3_0
fn c451_3_0() -> SharedObject
Multiple destination domains per transaction is unsupported code.
#{
mail: [
// Will send "451 4.3.0 Multiple destination domains per transaction is unsupported. Please try again." to the client.
rule "deny with code" || { state::deny(code::c451_3_0()) }
]
}
fn
c550_1_1
fn c550_1_1() -> SharedObject
Multiple destination domains per transaction is unsupported code.
#{
mail: [
// Will send "550 5.1.1 No passing DKIM signature found" to the client.
rule "deny with code" || { state::deny(code::c550_1_1()) }
]
}