LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Retrieving email using the command line/console (https://www.linuxquestions.org/questions/linux-general-1/retrieving-email-using-the-command-line-console-282619/)

wimnat 01-26-2005 05:29 PM

Retrieving email using the command line/console
 
I am having trouble accessing my mail from my university server at home. I thought I could just scp in to the my university account and then poll the pop3 server from there but i'm not sure on the commands to poll the server and then pipe the results to the command line.

Any help much appreciated.

m_yates 01-26-2005 09:41 PM

In my case, I use ssh to go to the mail server. Once logged in, I can run pine to read my mail. Not sure if your mail server supports ssh or pine though. An easy, friendly way to do it is to vist: http://www.mail2web.com/ mail2web works with most mail servers.

Berhanie 01-26-2005 09:58 PM

You can use fetchmail to do this. Here is a quick run through:

1. Create a .fetchmailrc in your home directory on your home computer containing the following line:
Code:

poll uniserver.edu protocol pop3 username "wimnat" password "mysecret"
2. chmod 400 .fetchmailrc
3. Retrieve messages by running fetchmail -ak
4. Now read your mail using your favorite MUA, e.g. nail


All times are GMT -5. The time now is 03:06 AM.