LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Preferred Mail Server (https://www.linuxquestions.org/questions/linux-server-73/preferred-mail-server-724697/)

rasalp 05-08-2009 10:23 AM

Preferred Mail Server
 
Can anyone help in prioritize my mail server

I have three mail server as below
tnqdns2.tnq.co.in
tnqdns3.tnq.co.in
tnqdns5.tnq.co.in

how to make tnqdns2.tnq.co.in as preferred relay.

Thanks
Rasal

MensaWater 05-08-2009 10:33 AM

Preference is defined by the DNS MX records for each mail server.

If you're using BIND DNS you modify the zone file for your domain to have the different values:


IN MX 10 tnqdns2.tnq.co.in; Preferred mail server
IN MX 20 tnqdns2.tnq.co.in; Secondary mail server
IN MX 30 tnqdns2.tnq.co.in; Tertiary mail server

It is the number after "MX" that determines preference. The lowest number has the highest preference.

You don't have to use 10, 20 and 30 though most folks do - it allows you to insert other servers in between later if you want.


All times are GMT -5. The time now is 11:36 AM.