Friday, February 15, 2008

Email Aliases on a Linux Box

It is actually dead-simple:

vi /etc/aliases

Add your aliases like:

contact: somebody@somewhere.com

(Multiple email addresses are separated using a comma)

Afterwards run the command newaliases so that the made changes take effect.

Thus, if your server's domain is foobar.com, then any email sent to contact@foobar.com goes to somebody@somewhere.com

That's it.

No comments: