Go2Linux | Linux Operating System

A site dedicated to: Linux Operating System

Copying all your emails to another account

Date: 2008-03-10 00:00:00 -0400

If you are like me, and administer your own email in a Linux box, and do not have set CPanel or any other similar tool, you can still forward your email to another account or, just send a cc to another account.

Let's say you are:

john@john.com

And the email for john.com is managed by a Linux server with sendmail, or Postfix, and you may want all your incoming email to john@john.com to be copied to john@gmail.com just have to edit or create the .forward file in your home directory

vim $HOME/.forward

and add these lines inside.

\john
john@gmail.com

note that john itself has a "\" symbol, this is to instruct Sendmail or Postfix not to expand john again, or it will enter in a loop.

If what you want is just to forward and not keep a local copy enter something like this:

john@gmail.com

You can also copy to a lot of addresses.

john@gmail.com
john@hotmail.com
john@yahoo.com

You may say, that all of these can be done using /etc/aliases and yes it can, but if you do not have the root password, you can still create your own aliases file, using this approach.

If you liked this article please share it.

powered by TinyLetter

If you want to contact me in any other way, please use the contact page.