SMTP relay Help

Hello!! Mau I know is there anyway that I can set the sendmail to relay the mail to different mail server base on the domain name?

For example,

Mail for abc.test.com will be sent to 1.1.1.1

and

Mail for def.example.com will be sent to 2.2.2.2

Thanks for the help!!!

I think what your looking for is a DNS MX record.

Thanks for the reply!

You mean setting the MX record in my dns server? I'm actually exploring the possibility of defining multiple mail reply host in sendmail without using the dns server

---------- Post updated at 08:37 PM ---------- Previous update was at 02:05 AM ----------

Hmm I read something about using mailertable..