[ale] Relaying email OUT based on return sender domain

Lightner, Jeff JLightner at water.com
Wed May 1 16:23:16 EDT 2013


Note:  I am NOT asking about aliasing of INBOUND emails.  I am asking about emails being sent OUTBOUND.

We have a need to send emails via different internal email relay servers based on the return sender associated with the email.   Previously I did this in HP-UX using sendmail’s “smarttable” facility.

We now need to replicate the setup on RHEL5 which also uses sendmail.   I haven’t really had a chance to look into it myself as I’m tasked with other priorities but the co-worker that tried to do this last year and the new one trying to do it now don’t seem to be getting anywhere in replicating this.

The idea would be if I send an email and set the return sender as say billybob at mydomain1.com<mailto:billybob at mydomain1.com> it would relay through our MS Exchange server.  On the other hand if I set the return sender as billybob at otherdomain.com<mailto:billybob at otherdomain.com> it would relay through a separate Sendmail server I have for that purpose.    The difference here is that the Exchange server and Sendmail both send their email via different internet facing IPs.

Does anyone know how to do this in Linux Sendmail successfully?   Is there a better way to do it these days in sendmail?   I setup the UNIX stuff around 2006 and its been working ever since.   Maybe by use of a milter?

Please don’t suggest we move to Postfix unless you know how to accomplish the task described above in Postfix.









Athena®, Created for the Cause™

Making a Difference in the Fight Against Breast Cancer





How and Why I Should Support Bottled Water!
Do not relinquish your right to choose bottled water as a healthy alternative to beverages that contain sugar, calories, etc. Your support of bottled water will make a difference! Your signatures count! Go to http://www.bottledwatermatters.org/luv-bottledwater-iframe/dswaters and sign a petition to support your right to always choose bottled water. Help fight federal and state issues, such as bottle deposits (or taxes) and organizations that want to ban the sale of bottled water. Support community curbside recycling programs. Support bottled water as a healthy way to maintain proper hydration. Our goal is 50,000 signatures. Share this petition with your friends and family today!



---------------------------------
CONFIDENTIALITY NOTICE: This e-mail may contain privileged or confidential information and is for the sole use of the intended recipient(s). If you are not the intended recipient, any disclosure, copying, distribution, or use of the contents of this information is prohibited and may be unlawful. If you have received this electronic transmission in error, please reply immediately to the sender that you have received the message in error, and delete it. Thank you.
----------------------------------


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.ale.org/pipermail/ale/attachments/20130501/b1240388/attachment.html>


More information about the Ale mailing list