Remove/Delete a user email from the postmap
Hello,
I am a new "B" in Redhat Linux. I am inherited an issue with Linux admin who left our company with his email being the only email used for the Redhat server to send critical alert to and now no one else have access.
I would like to delete or remove this email from the server and add myself with an additional user. When I ran the following command line:
postmap -q root hash:/etc/aliases
It shows me the user email account fo the previous admin, for instance: lee.layota@amt.com.
Next, I ran the following command line to add myself:
echo "root: silly.pope@amt.com /etc/aliases
It says it was successfully added; howevere, I have not received any alerts to my email.
Questions:
I need to delete/remove Lee email address as I explained above.
What command line should I run to remove/delete Lee email from the system and add myself?
Why can't I receive email alert after added myself into the system?
Why can't I see my name when I run the command line:
postmap -q root hash:/etc/aliases
Shouldn't it show my name the same way I can see the previous admin account who no longer responsible for the system?
Please help!
Thanks
Sam