I'm working on a Centos project where I'd like to have a service as per below in order to forward the SMTP & POP3 ports (25 & 110) in two different mail servers. The below are now online and everything works properly for one Mail Server. My question is how to add a second service or add on the below service commands, in order to forward at 5551 & 5551 the SMTP & POP3 Ports to a second mail Server (in case we have failure in the first Email Server) automatically. Your kind assistance will be greatly appreciated.
Services at /etc/xinetd.d:
service smtp_1
{
groups = yes
port = 5551
bind = 172.2.16.10 -- > (local IP Email client)
socket_type = stream
protocol = tcp
user = root
server = /usr/bin/ssh
server_args = -q -C -T -p 22
root@xxx.xxx.xxx.xxx --> Public IP nc xxx.xxx.xxx.xxx --> Local IP Mail Server IP 25
type = UNLISTED
wait = no
}
service pop3_1
{
disable = no
socket_type = stream
protocol = tcp
port = 5552
wait = no
user = root
server = /usr/bin/ssh
server_args = -q -C -T -p 22
root@xxx.xxx.xxx.xxx -- > Public IP nc xxx.xxx.xxx.xxx -- > Local IP Mail Server 110
groups = yes
bind = 172.2.16.10 -- > Loacal IP Email Client
}