Is there an easy way to install a MTA on Ubuntu and forward all email to a different remote email box? Only want to forward local email and looking for something dead simple. Thank you!
I see that ssmtp and nullmailer are suggested, but I need something (just a) little more clever. I have one machine (machine.domain1.com) where I want local mail to be delivered at firstname.lastname@example.org and I want it delivered through direct connection to mx.domain2.com
So when I do mail root on machine1.com it should get forward to email@example.com. Issue with nullmailer and ssmtp is that forwarding is done to mx.domain2.com but mail is delivered with a RCPT TO set to firstname.lastname@example.org and I want the RCPT TO set to email@example.com
Possible with a simple solution or do I need to digg into postfix or exim for this?