Remapping root account email
Hi All
Postfix mail server. I have mapped Quote:
Quote:
Thanks in advamce |
Code:
root <fw@mydomain.com> An email client will take whatever name it can when that is not properly setup. |
Hi Robert
Actually that is the username, it's being sent from the root account, so the name & username are the same in this case. I was just asking is it possible to map the root part to another name when sending emails from the root account. |
You can do this:
Code:
echo 'Some message here' | mailx -s 'My subject' -r 'Some name <fw@mydomain.com>' 'somebody@example.org' |
The system administrator can define email aliases in the file /etc/aliases. This file contains lines like root: cwd@mailhost.example.com, /root/mailbox; the effect is the same as having cwd@mailhost.example.com, /root/mailbox in ~root/.forward. You may need to run a program such as newaliases after changing /etc/aliases.
Note that the workings of .forward and /etc/aliases depend on your MTA. Most MTAs implement the main features provided by the traditional sendmail, but check your MTA's documentation. |
root@mydomain.com to fw@mydomain.com
but when sending emails it sill has root as the username eg Quote: root <fw@mydomain.com> |
All times are GMT -5. The time now is 06:15 PM. |