Quote:
Originally Posted by ramx
im using cable for browser but i want use Mail-evolution with wireless card.
sry my english i cant explain better.
|
If I understand the question correctly, your situation is as follows:
You have two network connections on your linux machine. One is cable connection, and the other is wireless connection, and they are both operating at the same time. You want to use cable for most of your connections, but you want to redirect email client to use the wireless connection instead.
I can't give step-by-step instructions off the top of my head, but I believe something like this would work:
You obviously need to set up the network for both connections. You'd let the cable be the default route, which puts all connections through it normally. You could then probably use firewall (iptables) to set up a rule for redirecting outgoing connections that are directed to mail server ports, and direct those to the wireless connection.
Alternately if your email client can be set up to use specific network connection, that would be the easier solution, but I haven't come across that kind of option myself.
Also, like SkaarjZR said, if you only use some specific mail services, you could instead just create a route to IP addresses of those mail services through the wireless connection. You'd have to do this anyway if you use a browser based mail host, something like gmail, hotmail or something similar. In this case though you'd have to know exactly what addresses the mail services use, which can be difficult. Also any other connections to those web sites would also go through the wireless network - even if you were just browsing those sites.
So all said, it probably isn't very simple problem. The easiest solution, though imperfect, would probably be to create a script that switches your computer between using one or the other of the connections.. and then switch it to using wireless connection (for all activity) when you want to access the mail.. and then switch it back to using cable when done. This is more work to use, and would mean you can't do any other network activities while using the mail, but in most cases this would be a whole lot easier to implement.
One more solution, a bit different, comes to mind. It's always possible to set up a virtual machine on top of your linux system, and set that one up to using your wireless network. You could use that virtual machine for email, and any other activity that you want to use the wireless network for. It's a bit extravagant solution, setting up a whole new linux system, but it would also give you more options.