Forum Discussion
Scott_Albrech_8
Nimbostratus
Feb 03, 2005regexp looking for email addresses in iRule
Toying with some stuff and thought I'd like to scan TCP payload for email addresses, preferably in the "MAIL FROM", but I'm starting much bigger for sake of easing into this. Anyhoo, not having much ...
Scott_Albrech_8
Nimbostratus
Feb 06, 2005Well, that has the same result I was seeing before. I hangs the SMTP session. I moved the TCP::release around and get a bit of interaction but still not a totally interactive SMTP session. I don't know if I understand the whole mechanism well enough to fiddle too much. But I tried this which made some headway:
when CLIENT_ACCEPTED {
TCP::collect 100
TCP::release
}
when CLIENT_DATA {
if { [TCP::payload] contains "joe@foobar.com" } {
reject
} else {
Release the current payload onto the server
TCP::release
But still collect the next data from the client
TCP::collect 500
}
}
Am I on the right track there? That gets me to at least the 220 in the transaction, but then it hangs again.
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects