LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   smtp route (https://www.linuxquestions.org/questions/linux-server-73/smtp-route-813287/)

mario.almeida 06-10-2010 02:54 AM

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.

centosboy 06-10-2010 04:13 AM

Quote:

Originally Posted by mario.almeida (Post 3998638)
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/

mario.almeida 06-11-2010 05:46 AM

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.

centosboy 06-11-2010 07:53 AM

Quote:

Originally Posted by mario.almeida (Post 4000056)
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.


All times are GMT -5. The time now is 04:27 AM.