How to use alias for the email?

Posted on 1998-12-08
Medium Priority
Last Modified: 2010-04-21
How do I use the "alias" command for the email. For example, I wrote "webmaster@mail.com" in the homepage, and the email in the "send to" is the same as well. But actually, it will email to "myusername@email.com" something like that?
Question by:clo1
  • 2
LVL 85

Expert Comment

ID: 2008263
echo 'webmaster:myusername' >> /etc/aliases

Author Comment

ID: 2008264
No, I can't save after I have edit the file. Any alternatives?
LVL 85

Expert Comment

ID: 2008265
If you don't have permission to edit /etc/aliases, you should ask someone who doed have permission to edit it.
Or, if there's an actual webmaster user on mail.com, they could set their ~webmaster/.forward file to myusername@email.com

Accepted Solution

tfabian earned 60 total points
ID: 2008266
the /etc/aliases file is the obvious answer.. but lacking access to it means you've got to revert to other steps..

try coding the html on the web page to send to your address.. eg

  <a href="mailto:my_id@email.com">webmaster@email.com</a>

this should put your address in the actual message, but the link people click on has
the webmaster name..

 good luck


Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

607 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question