code wiki / _hdl_build / nx_email_mta_gate.nx
nx_email_mta_gate.nx
buildroot/runtime/_hdl_build/nx_email_mta_gate.nx
about
nx_email_mta_gate.nx -- GATE for EMAIL R7 (receiving MTA, nx_email_mta).
The INTEGRATION CAPSTONE: a full inbound SMTP session composed across
rungs -- R7 command parse + policy + FSM, R4 (nx_pop3_dedot) to unstuff
the DATA stream, R3 (nx_email_mailbox over nx_seg_store) to DELIVER,
then fetch the stored message back BYTE-IDENTICAL = receive->store
proven end to end.
COMPLETENESS : EHLO/MAIL/RCPT/DATA/QUIT classified + correct reply
codes (250/250/250/354/221); DATA dot-unstuffed;
delivered + fetched byte-exact.
POLICY/SEC : RCPT for our domain accepted; RCPT to a foreign domain
REFUSED with 550 (open-relay defense).
NEG-CONTROL : a command out of sequence (RCPT before MAIL) -> 503.
Evidence -> knowledge/status/email_mta.log (MTAGATE ... verdict=GREEN)
license_tier: ORIGINAL
dependencies 4 imports · 0 importers
imports: nx_email_mta.nxnx_email_retrieve.nxnx_email_mailbox.nxnx_syscalls.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 23 | const MTA_LOG: *u8 = "knowledge/status/email_mta.log" |
| 24 | const MTA_PREFIX: *u8 = "knowledge/status/mta_test/" |
| 25 | const OUR_DOMAIN: *u8 = "nishi.test" |
functions
| 27 | func ew(fd: i64, s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(fd, s, n); return 0 } |
| 28 | func ewn(fd: i64, v: i64) -> i64 |
| 37 | func epf(fd: i64, label: *u8, pass: i64) -> i64 { ew(fd, label); if pass == 1 { ew(fd, "PASS" as *u8) } else { ew(fd, "FAIL" as *u8) } return 0 } |
| 38 | func slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n } called by 1: main |
| 39 | func memeq(a: *u8, b: *u8, len: i64) -> i64 { var i: i64 = 0; while i < len { if a[i] != b[i] { return 0 } i = i + 1 } return 1 } called by 1: main |
| 41 | func main() -> i64 |