Routing emails through non-gateway... how?

William Park opengeometry-FFYn/CNdgSA at public.gmane.org
Fri Jul 17 21:35:06 UTC 2009


On Fri, Jul 17, 2009 at 04:23:30PM -0400, William Park wrote:
> On Fri, Jul 17, 2009 at 07:39:16AM -0700, Tyler Aviss wrote:
> > route add -host 256.199.23.7 gw 10.10.10.1 dev eth1
> 
> Thanks Tyler. let's try this...

Oh my God, it works!  It seems that I was looking for too general
solution, when
    route add -host 11.22.33.44 ppp0
will do.

Here is background:

eth0 goes through Rogers, and ppp0 goes through my old ISP (which I keep
for backup).  For reasons known only to Rogers, I cannot send emails
through Rogers.  Also, I don't want to mess around Rogers' account
settings, because I'm not the owner and there is no incentive for me to
learn their system.

Other than email, both eth0 and ppp0 work okey.  When only eth0 is up or
when only ppp0 is up, I can connect to Internet.  So, I need to send all
outgoing emails through ppp0.  For emails, I can connect directly to
remote mail servers or I can use my ISP's mail server as relay (it
requires client authentication, and that's working).

The simplest solution was
    1. send all emails to my ISP mail server (11.22.33.44).
    2. send that IP (11.22.33.44) through ppp0.
It was simple because I only have one single IP to deal with.

I guess if I want to send stuffs arbitrarily through one interface or
another, then I would have to find more general solution.  Actually,
this is not uncommon.  Often, companies would have multiple connections
to Internet, and they need to send email/web/etc through different
interfaces (for whatever reason, politics, technical, policy, etc).

I guess I have to read up on "iproute2".  Thanks again.

It's nice to be back.
Your truly,
-- 
William Park <opengeometry-FFYn/CNdgSA at public.gmane.org>
--
The Toronto Linux Users Group.      Meetings: http://gtalug.org/
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://gtalug.org/wiki/Mailing_lists





More information about the Legacy mailing list