Forum Discussion
Damien_Turner_1
Nimbostratus
Oct 30, 2008Mutiple Email Server with static Addresses
Hi all I'm new to iRules and have become stuck!
I have 3 email servers and each have there own incoming VIP, but I need to make sure that when one of these email server sends a mail it get's se...
Damien_Turner_1
Nimbostratus
Nov 05, 2008so it now looks like this.... (Have removed some of the hosts)
Expertly written by Mark and Damien October 2008 V1.3
This iRule forwards mail to a pool depending on what the
source address is, if there is no matching source address the connection
will be passed to the default pool (mail_62.254.236.254).
when CLIENT_ACCEPTED {
if { [IP::client_addr] equals "192.168.0.41" } {
pool mail_213.106.234.254
Uncomment the line below to turn on logging.
log local0. "Valid client IP: [IP::client_addr] - StrongMailVIP1"
} elseif {
[IP::client_addr] equals "192.168.0.42" } {
pool mail_213.106.234.254
Uncomment the line below to turn on logging.
log local0. "Valid client IP: [IP::client_addr] - StrongMailVIP2"
} elseif {
[IP::client_addr] equals "192.168.0.5" } {
pool mail_62.254.236.254
Uncomment the line below to turn on logging.
log local0. "Valid client IP: [IP::client_addr] - Cobalt1"
} else {
snatpool OtherMailServers
Uncomment the line below to turn on logging.
log local0. "Valid client IP: [IP::client_addr] - OtherMailServers"
}
}
This now works like a dream!
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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