How to automatically forward all emails from Department email id to some other mail a/c?

login to your email server using ssh:

ssh username@server

Now, create a file ‘.forward’ in home and add the following

\userName

user@gmail.com

You should replace ‘userName’ with your username in the department server and ‘user’ with your user name  in GMail.

Instead of GMail, you may forward it to any other email, you like.

Here, ‘\userName’ will store a local copy of the emails in the mail server and forward all the mails to ‘user@gmail.com’.

If you don’t want to store a local copy of the mails in your mail server, simply delete the line ‘\userName’.

Sending mails from GMail pretending as from Department server

Now a days, most of us have more than one email id.

I’ve at least two: one in GMail (my preferred one) and another one in ECE department server. Occasionally, I need to send mails from my ECE id especially during some correspondence in connection with my research.

Here, I’ll explain how to send emails from GMail, but the receiver will see it as a mail from my ECE email id.

(Off course, the receiver can get to know about it from the detailed email header information. But the intention is to make our life easy and NOT to fool the receiver!)

Go to GMail: Setting -> Accounts and Import -> “Send mail as”

 Click on “Add another email address you own”.
Now, a new window will pop-up. You have to fill the name and email address.
Important: Now, UN CHECK “Treat as an alias”.
(If you don’t do this, the receiver’s reply will be directed to your GMail id!)
Click on Next step,and choose “Send through GMail (easier to set up)” and complete the process.
After completing the verification, again go back to  Setting -> Accounts and Import -> “Send mail as”.
(As Prateek rightly pointed out in his comment, if your ‘verification mail’ is delayed check your ‘spam folder’.)
In  “When replying to a message:”, select “Reply from the same address to which the message was sent”.
Now, you are done!
Happy emailing 🙂