Computer Hope

Software => BSD, Linux, and Unix => Topic started by: Cricket_Lover on February 19, 2013, 05:00:50 PM

Title: Sending mail from system through 2 e-mail addresses, depending on user
Post by: Cricket_Lover on February 19, 2013, 05:00:50 PM
How would I go about doing this?

My system was originally configured so that the mail routing was something like

*@localhost -> localhost
*@* -> no route

where the LHS is the addressed location, and the RHS is effectivly what e-mail service the message ends up being addressed and sent from.

I later configured SMART_HOST and authinfo for sendmail, so now it is like

*@localhost -> localhost
*@* -> Hotmail

Now I really need to set it up so that, for 'root' and 'chris', the routing is as above, but for everyone else, it is

*@localhost -> localhost
*@* -> gMail


In effect, I want to make it so that "my" e-mail address is on Hotmail (and messages that I send get sent from that address), while making it so that messages that other users send are sent by means of gMail. Preferably, I want to maintain use of sendmail.