LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   sendmail outbound relaying based on senders address (https://www.linuxquestions.org/questions/linux-networking-3/sendmail-outbound-relaying-based-on-senders-address-523064/)

dbnor 01-26-2007 01:07 PM

sendmail outbound relaying based on senders address
 
good morning all,

is it possible to have sendmail perform outgoing relaying based on the senders address.

have exchange server with usera@domain1.com and userb@domain2.com
relays mail to sendmail server mta-relay.com
would like mta-relay.com to forward email based on senders address
i.e.
usera@domain1.com mail relayed to mta-1.com and
userb@domain2.com relayed to mta-2.com


thanks!

MensaWater 01-26-2007 01:48 PM

Yeppers!

Its called Smarttables. We set that up here. Our config was for an HP-UX server originating the email. It relays mail from one address domain (e.g. @primarydomain.com) through our MS-Exchange server. It relays mail from a secondary address domain (e.g. @secondarydomain.com) through a Linux server we built just to have sendmail for sending those mails.

I'd post the config we did but the HP-UX sendmail config is a customized by HP so I had to adapt what I found via Google to fit that. If you do a Google search for smarttable(s) you should find the information I did.

One note - I did a cut and paste from the link I'd originally found into the .mc file and had issues - that is because there are actually tabs rather than spaces in the file. I had to work out where those went by trial and error.

dbnor 01-27-2007 09:44 AM

found smarttables - - just what we needed.

Thank you


All times are GMT -5. The time now is 02:57 AM.