I'm trying to send all root's mails to an external e-mailaddress, but for some reason I can't get it to work.
I've edited /etc/aliases with the following rule:
root: <myexternal@email.address>
and run newaliasses after, which would run without any errors.
I can run: echo "Testing" | mail -s "Server Testing" <myexternal@email.address>
just fine without any issue and it's being delivered correctly to my external address.
But when I run: echo "Testing" | mail -s "Server Testing" root
I (first) get a "Deferred: 451 Temporary local problem - please try again later" error and when I then run: "Sendmail -OTimeout.hoststatus=0m -q -v" to flush the mailqueue it says everything is ok, but I then get a message saying I have new mail in /var/spool/mail/root and I don't get the mail on my external e-mailaddress.
I have no clue where to look next, hopefully you guys can point me in the right direction.
Just for completeness: I use mageia release 4 (x86_x64).