3. Editing the configuration file by hand

On a Debian system, the upstream fetchmail distribution is divided into 2 packages:

so that you can use fetchmail without X Window System. Here we show how to configure fetchmail by editing the configuration file by hand. You don't need X Window System to configure fetchmail.

The configuration file for fetchmail is ".fetchmailrc" in your home directory. You must be careful when you edit it, because you write your password for the remote server in that file. If someone else can read the file, you are in a deep trouble. So make sure no one else can read it.

First make an empty file named ".fetchmailrc" in your home directory. The easiest way for it is to use the command "touch".
$ cd ~/
$ touch .fetchmailrc

Then change the permission of that file to 600 (that is, readable and writable only by the owner of the file).
$ chmod 600 .fetchmailrc

Now add these lines to the empty file.
poll SERVER with proto PROTOCOL
user REMOTE_USER there with password REMOTE_PASSWORD is LOCAL_USER here
You must replace all the capital-letter words with the real values.

You will have something like this:
poll pop.members.interq.or.jp with proto POP3
user me358881 there with password aaaaaaaa is oohara here

You can specify 2 more more servers. Foe example:
poll pop.members.interq.or.jp with proto POP3
user me358881 there with password aaaaaaaa is oohara here

poll pop.geocities.co.jp with proto POP3
user o_o_hara_yuuma there with password aaaaaaaa is oohara here

It's the time to run fetchmail.
$ fetchmail
You can use "-v" option to see what is going on.
$ fetchmail -v