-   Linux - Newbie (
-   -   sendmail routing... (

fender_gr 03-20-2009 06:00 AM

sendmail routing...
Hi all,

I have configured a mail server with sendmail 8.14.2 and i want to use smart host but not for all my emails.

The concept is that when my users sends email to any domains, my mailserver will serve them.. but when they want to send emails to specific domains (ex. these emails must be routed through another mail server..

how can i do this? THe only think i found on sendmail docs is how to route all emails to another mailserver...

please advice



fender_gr 03-20-2009 07:08 AM

i think i did it with mailertable, and i'm waiting confirmation from the admin of the other mailserver that he receives these emails

i recompile sendmail with feature mailertable and i did the following config on mailertable file esmtp:[]

and then

#hash /etc/mail/mailertable

bobmac010 03-20-2009 07:09 AM

Yes, for this, you will have to use Mailertable.
Please see the link below, and let us know if it suits your requirements:
You might want to add lines like:


bobmac010 03-20-2009 07:11 AM

yes, you will need to use Mailertable.
See this link and let us know if it suits your requirements:


fender_gr 03-20-2009 07:46 AM

case closed :)

it worked with the following config : esmtp:[]

All times are GMT -5. The time now is 11:44 PM.