when CLIENT_ACCEPTED {
if { not ( [class match [IP::client_addr] equals Allowed_SMTP] ) } {
reject
}
else { snat 172.25.3.123 }
}
As told before, if I disable the rule I obtain the same result. 6 smtpsend parallel connections with 3 timed out.
I tried a more complex iRule with logging such as
when RULE_INIT {
v1.0 - basic ACL.
October, 2007
Tested on BigIP version 9.4.
Purpose:
Bind this rule to a network virtual server to simply allow or disallow traffic based on source IP.
This rule expects a datagroup named Allowed_SMTP that lists the addresses you wish to allow.
By default, traffic will be dropped.
}
when CLIENT_ACCEPTED {
if { [class match [IP::client_addr] equals Allowed_SMTP] }{
Uncomment the line below to turn on logging.
log local0. "Valid client IP: [IP::client_addr] - forwarding traffic"
snat 172.25.3.123
} else {
Uncomment the line below to turn on logging.
log local0. "Invalid client IP: [IP::client_addr] - discarding"
discard
}
}
and I alway read "forwarding traffic but e-mails does not arrive to destination.
Is it possible to be in the same proble reported here ?!?
https://devcentral.f5.com/questions/basic-smtp-virtual-server
I'd prefere not to delete the SMTP virtual server.