Hi,
how can I set up for outgoing email to be sent via a particular ISP --- or preferably either of two ISPs --- in a situation where I have three ISPs available and load-balancing applied?
I added another rule (#90) to the 'balance' entry in the firewall:
modify balance {
rule 10 {
action modify
description "do NOT load balance lan to lan"
destination {
group {
network-group PRIVATE_NETS
}
}
modify {
table main
}
}
rule 20 {
action modify
description "do NOT load balance destination public address"
destination {
group {
address-group ADDRv4_pppoe0
}
}
modify {
table main
}
}
rule 30 {
action modify
description "do NOT load balance destination public address"
destination {
group {
address-group ADDRv4_pppoe1
}
}
modify {
table main
}
}
rule 40 {
action modify
description "do NOT load balance destination public address"
destination {
group {
address-group ADDRv4_eth2
}
}
modify {
table main
}
}
rule 90 {
action modify
description "do NOT load balance outgoing email"
destination {
port 25
}
modify {
table 25
}
protocol tcp
}
rule 100 {
action modify
modify {
lb-group G
}
}
}
description "send outgoing email through this interface"
interface-route 0.0.0.0/0 {
next-hop-interface pppoe1 {
distance 1
}
}
This appears to be working as long as the pppoe1 interface is up. When I disconnect both connections to the ISPs that can be used for sending email, email is being sent through the remaining connection via eth2.
I want to make it so that outgoing email can either be sent through either pppoe0 or pppoe1 and under no circumstances via eth2. (The mail would be rejected because it would be sent from a dynamic IP, and I rather have it sit in the mail queue of the MTA until either pppoe0 and/or pppoe1 are up again than having it rejected right away.)
How could I achieve this?