"Sako" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) oups.com
> I only want mail to exit by the other gateway, and everything to keep
> as now a days
This can be done with iproute2.
You have to tag your packets with iptables/netfilter first:
iptables -t mangle -A POSTROUTING -o eth0 -p tcp --dport 25 -j MARK
\ --set-mark 25
Then to route them specially if they have the tag:
ip rule add fwmark 25 table mail
ip route add default via 82.226.217.254 table mail
You have to learn how it works but it can do the trick :-)
--
Posted via Mailgate.ORG Server -
http://www.Mailgate.ORG