Sendmail use this file to forward mail for a domain itself as a whole to another host on the Internet or inside your network. Let say you have an internal exchange server, and the Linux server acts as a gateway on the internet, you can send all your email to the Linux server ( MX records ) and from there forward the mail internal to your exchange server.
The mailertable file can also be used to send an entire domain to one local user by doing:
domainname.com local:username
The virtusertable file can do the same as the above, by adding a line in the virtusertable file like:
@domainname.com username
The syntax to use in the mailertable file to send a domain email to another host, is done with the following example:
domainname.com smtp:[internalserver.domain.com]
That is it, again like always, send me your comments or questions so we can make this better for you !