compile the mailertable file using
makemap hash /etc/mail/mailertable < /etc/mail/mailertable
and you'll also need to re-compile the sendmail.mc file using the M4 compiler
M4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
This assumes that you're files are in the /etc/mail directory.
two points to note, you can either use esmtp or smtp in the mailertable files depending on your back level SMTP Server and if you don't resolve the IP's to hostnames then you can use the IP addresses in '[ ]' brackets so they'll looking something like
dept1.domain.com <tab key> smtp:host1.domain.com or
dept2.domain.com <tab key> esmtp:[111.1.1.1]
Hopw this helps! Let me know if it's not what you're looking for and I'll see what I can do.
~ Remember - Nothing is Fool Proof to a Talented Fool ~
I'm trying to setup two smart relay hosts, (primary and seconday) so that all mail will relay to the first relay hosts and if that smart relay host is not reachable then it will try to relay to the second smart relay hosts. I assume this can be setup in sendmail.cf ???
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.