andresneri1
Jul 22, 2022Nimbostratus
iRule for TCP/SMTP and extract fields "MAIL FROM: "
I need a iRule to extract fields from "MAIL FROM:" in an SMTP traffic. for example: S->220 mail.mycompany.com Microsoft ESMTP MAIL Service ready ... C->EHLO 172.16.1.100 S->250-mail.mycompany.com...
- Jul 24, 2022
There are a number iRule implementations of SMTP proxies. I have linked a couple below. I have also implemented a proxy for SMTP myself based on haproxy's proxy protocol. I linked another example as well. That should give you plenty of guidance on how to read these headers. If you are still stuck after reading them, reach out.
SMTP Proxy - DevCentral (f5.com)
SMTP filter and forward proxy - DevCentral (f5.com)
Proxy Protocol Receiver - DevCentral (f5.com)