Selected sendmail accounts forwarded to exchange

Posted on 2004-11-23
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: -> ->

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

    Accepted Solution

    Just put a .forward file in the user's home directory saying

    Then make sure users2 has their email client email address set as

    Another solution is to use a virtual user table.


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    What is IRC? IRC (Internet Relay Chat) is a form of communication between multiple users. It is available freely to anyone with inernet access. IRC is a great way to communicate with others e.g. There is an IRC channel for Ubuntu Linux, which is fo…
    What’s a web proxy server? A proxy server is a server that goes between clients and web servers, used in corporate to enforce corporate browsing policy and ensure security. Proxy servers are commonly used in three modes. A)    Forward proxy …
    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…
    After creating this article (, I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…

    760 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

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now