Edit file /etc/aliases
add:
root: [email protected]
Run:
newaliases
Check your MTA:
netstat -ltnp |grep :25
And restart service:
service sendmail restart
Test:
echo -e "Test body" | mail -s 'Subject' root
Edit file /etc/aliases
add:
root: [email protected]
Run:
newaliases
Check your MTA:
netstat -ltnp |grep :25
And restart service:
service sendmail restart
Test:
echo -e "Test body" | mail -s 'Subject' root