LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 07-16-2012, 08:43 AM   #1
revolv
LQ Newbie
 
Registered: Sep 2005
Location: Chickamauga, GA
Distribution: RHEL 6
Posts: 6

Rep: Reputation: 0
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.

Last edited by revolv; 07-16-2012 at 08:44 AM. Reason: more info
 
Old 07-17-2012, 06:04 AM   #2
vishesh
Member
 
Registered: Feb 2008
Distribution: Fedora,RHEL,Ubuntu
Posts: 660

Rep: Reputation: 66
You can configure /etc/mail/mailtertable for same
 
Old 07-17-2012, 06:25 AM   #3
revolv
LQ Newbie
 
Registered: Sep 2005
Location: Chickamauga, GA
Distribution: RHEL 6
Posts: 6

Original Poster
Rep: Reputation: 0
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
 
Old 07-17-2012, 05:09 PM   #4
poe101
LQ Newbie
 
Registered: Jun 2012
Location: Dublin
Distribution: Various Ubuntu (a server and several desktops)
Posts: 7
Blog Entries: 1

Rep: Reputation: Disabled
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.

Last edited by poe101; 07-17-2012 at 05:16 PM. Reason: additional comment
 
Old 07-18-2012, 11:03 PM   #5
vishesh
Member
 
Registered: Feb 2008
Distribution: Fedora,RHEL,Ubuntu
Posts: 660

Rep: Reputation: 66
Mailertable should work

Quote:
Originally Posted by revolv View Post
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
 
Old 08-16-2012, 06:57 AM   #6
revolv
LQ Newbie
 
Registered: Sep 2005
Location: Chickamauga, GA
Distribution: RHEL 6
Posts: 6

Original Poster
Rep: Reputation: 0
THank you Vishesh. I really appreciate the info on this. :-)
 
  


Reply

Tags
mail, message, sendmail


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sendmail Mail Routing. nishith Linux - Server 0 06-30-2009 11:27 AM
sendmail routing... fender_gr Linux - Newbie 4 03-20-2009 07:46 AM
Sendmail issue (did not issue MAIL/EXPNVRFY/ETRN ...) Blackout_08 Linux - Server 0 08-08-2007 01:10 PM
Sendmail Mail Routing namit Linux - Server 1 03-15-2007 12:32 PM
Sendmail routing xgab Linux - Software 4 07-15-2003 11:31 AM


All times are GMT -5. The time now is 06:17 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration