Forum Discussion
Richard__Harlan
Nov 15, 2005Historic F5 Account
SMTP Sensitivity Tag
What we are looking at doing is make LB desision based on the SMTP Sensitivity Tag. If the Tag is marked Confidential then we will send the client to PGP mail gateways, other wise the BigIp will send ...
unRuleY_95363
Nov 17, 2005Historic F5 Account
Well, that's a good start. My two main suggestions are:
A) You shouldn't need to use a global variable for ::tcpdata. Just remove the :: from the variable and remove your RULE_INIT event. It should work just fine with a local variable.
B) You should either fix your flow to return after matching a command or change to using elseif's or even better, use a switch command to structure all the different command matches. EG:
switch -glob $tcpdata {
"EHLO*" {
TCP::respond "250-fdpnmailgw2.thehouseofspam.com Hello\r\n"
...
}
"MAIL FROM:*" {
TCP::respond "250 OK\r\n"
set mailfrom $tcpdata
...
}
"RCPT TO:*" {
...
}
"DATA" {
...
}
".\r\n" {
...
}
"QUIT" {
...
}
default {
append tcpdata [TCP::payload]
}
}
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