LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-10-2010, 02:54 AM   #1
mario.almeida
Member
 
Registered: May 2008
Location: India
Distribution: Ubuntu 10.04, CentOS, Manjaro
Posts: 179

Rep: Reputation: 27
Question smtp route


Hi All,

I want to know how to do smtp routing with sendmail.
  1. From address abc@example1.com to any route via smtp host mx1.example1.com
  2. From address abc@example2.com to any route via smtp host mx2.example1.com
  3. From address any to address any send the email directly.
 
Old 06-10-2010, 04:13 AM   #2
centosboy
Senior Member
 
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137

Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by mario.almeida View Post
Hi All,

I want to know how to do smtp routing with sendmail.
  1. From address abc@example1.com to any route via smtp host mx1.example1.com
  2. From address abc@example2.com to any route via smtp host mx2.example1.com
  3. From address any to address any send the email directly.
never done this before, but a quick google search found this:

domain name routing?


http://www.cyberciti.biz/faq/force-s...or-mailserver/
 
Old 06-11-2010, 05:46 AM   #3
mario.almeida
Member
 
Registered: May 2008
Location: India
Distribution: Ubuntu 10.04, CentOS, Manjaro
Posts: 179

Original Poster
Rep: Reputation: 27
Question

Hi,

Thanks for that.

I had gone through that early, but was not clear about the example given on that site. Below is the example from that site.

"For example all mail coming from network 192.168 route to mail.myisp.com and all email for nixcraft.com"

It says for nexcarft.com, but it is still not clear that mail routing will be done for FROM or TO domain. My understanding is for means TO domain will be considered.

i.e:- from abc@example1.com to abx@newdomain.com
from the above for will be newdomain.com

Someone please correct me.
 
Old 06-11-2010, 07:53 AM   #4
centosboy
Senior Member
 
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137

Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by mario.almeida View Post
Hi,

Thanks for that.

I had gone through that early, but was not clear about the example given on that site. Below is the example from that site.

"For example all mail coming from network 192.168 route to mail.myisp.com and all email for nixcraft.com"

It says for nexcarft.com, but it is still not clear that mail routing will be done for FROM or TO domain. My understanding is for means TO domain will be considered.

i.e:- from abc@example1.com to abx@newdomain.com
from the above for will be newdomain.com

Someone please correct me.

I have tested this for about 10 minutes and so far i am only able to reroute messages TO and not FROM.
I dont really have anymore time to test, so i think it best if you test and see what the outcome is.
 
  


Reply

Tags
route, smtp



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
route-eth - Adding a static route gbwien Linux - Networking 5 02-24-2012 05:15 AM
iproute2 (ip route), pppoe and default route lorddoskias Linux - Networking 0 05-09-2007 11:04 AM
Default route took 20s to display with 'route' command Akhran Linux - Newbie 3 11-04-2006 04:59 AM
I am not able to add a new route to my route table using route command prashanth s j Linux - Networking 2 09-03-2005 04:34 AM
ADSL as a Alternate route or backup route bhagat2000 Linux - Networking 0 05-27-2004 03:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration