LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   Sendmail Message Routing Issue (http://www.linuxquestions.org/questions/linux-server-73/sendmail-message-routing-issue-4175416966/)

revolv 07-16-2012 08:43 AM

Sendmail Message Routing Issue
 
Hey everyone. I have a couple of questions regarding sendmail routing. I currently have 2 sendmail smtp servers that act strictly as relays. We are utilizing the smart host directive to point to gmail for all but a few addresses (and those are the issue at hand). The addresses no hosted by google are mail-in databases on Domino servers. Any mail heading to them pass from the sendmail servers to a Domino smtp server which then routes the mail on to its final destination. The company wants to remove the Domino smtp server and let sendmail handle the routing to the internal mail-in databases.

With the layout and history out of the way, here are my questions. Is it possible to route emails in sendmail based on receiver address? If so, how is this done?

Thanks!
-Ben

EDIT: If there is information I am forgetting to post that would make this question easier to answer, please let me know.

vishesh 07-17-2012 06:04 AM

You can configure /etc/mail/mailtertable for same

revolv 07-17-2012 06:25 AM

Hey Vishesh. Thank you for the reply. Do you mean that I could use something like the following:

Code:

bob@foo.com        smtp:mail.foo.com
alice@foo.com      smtp:smtp.foo.com


poe101 07-17-2012 05:09 PM

Not 100% sure but you might want to read up on
Quote:

/etc/mail/virtusertable
as well.

I have just got sendmail working for incoming and outgoing on an Ubunutu server and this is part of the set up I think it may do what you want despite the 'virtual' name tag. Though this method looks like it would require manual update for every user change where I think the mailertable would be more automated.

vishesh 07-18-2012 11:03 PM

Mailertable should work
 
Quote:

Originally Posted by revolv (Post 4730445)
Hey Vishesh. Thank you for the reply. Do you mean that I could use something like the following:

Code:

bob@foo.com        smtp:mail.foo.com
alice@foo.com      smtp:smtp.foo.com


Yes , I think above should work

revolv 08-16-2012 06:57 AM

THank you Vishesh. I really appreciate the info on this. :-)


All times are GMT -5. The time now is 12:37 PM.