?
Solved

Selected sendmail accounts forwarded to exchange

Posted on 2004-11-23
1
Medium Priority
?
276 Views
Last Modified: 2010-04-10
I have all of our clients setup with email accounts on our mail server (redhat 2.4.20-28.9smp/sendmail 8.12.8).  
I want email sent to user1 to stay as normal and email sent to user2 to be forwarded to an internal exchange server thats setup as a test.

I also need to make sure that mail comes into the same address, and goes out as the same address.

Ex:
user1@domain.com -> sendmail.domain.com

user2@domain.com -> exchange.domain.com

but when they send email, the emails go out as user1@domain.com and user2@domain.com so I don't have to mess with MX records or forwarding ports on the firewall or anything.
0
Comment
Question by:illushinz
1 Comment
 
LVL 3

Accepted Solution

by:
CBozeman earned 1500 total points
ID: 12657661
Just put a .forward file in the user's home directory saying user2@exchange.domain.com

Then make sure users2 has their email client email address set as user2@domain.com

Another solution is to use a virtual user table.
See http://www.sendmail.org/virtual-hosting.html

CBozeman
0

Featured Post

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I had an issue with InstallShield not being able to use Computer Browser service on Windows Server 2012. Here is the solution I found.
Tech spooks aren't just for those who are tech savvy, it also happens to those of us running a business. Check out the top tech spooks for business owners.
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

807 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question