Knowledge Base

Fetchmail Configuration

This will allow you to fetch your Ausics hosted Email directly to your home linux PC without having to leave your mail client open all the time.



Create the following files in the base of your home directory (~ or /home/<username>)

  1. A file called .fetchmailrc containing the line:

    poll user <username> pass <password> (without brackets)

  2. A file called crontab containing the line:

    */5 * * * * fetchmail -k -s


chmod 600 .fetchmailrc
crontab crontab


  • The .fetchmailrc file specifies where you want to get your mail from and how
  • fetchmail will log into <mailserver>, download any new messages, put them in your inbox in your home directory
  • The chmod command prevents other users from reading it (and hence your password)
  • You created a file called 'crontab' in an earlier step; and when you type 'crontab crontab' it invokes the crontab program (man crontab for more info); and causes it to read in the file called 'crontab'. Note: you may want to call the file 'crontab.txt' and have the command be 'crontab crontab.txt' or whatever (think of a better name for the file to be read in, so it's less confusing).

Using fetchmail:

  1. Login to your local account
  2. On the command line, type the following:

    % fetchmail -k -s -u <username> <mailserver>

  3. The system will then ask you for your password
  4. The program will take a few moments to execute (You will know it is ready when the command prompt returns)
  5. To view your messages, type pine on the command line:

    % pine


-k, --keep
(Keyword: keep) Keep retrieved messages on the remote mailserver. Normally, messages are deleted from the folder on the mailserver after they have been retrieved. Specifying the keep option causes retrieved messages to remain in your folder on the mailserver. This option does not work with ETRN or ODMR.

-s, --silent
Silent mode. Suppresses all progress/status messages that are normally echoed to standard error during a fetch (but does not suppress actual error messages). The --verbose option overrides this.

-u <name>, --username <name>
(Keyword: user[name]) Specifies the user identification to be used when logging in to the
mailserver. The appropriate user identification is both server and user-dependent. The default is your login name on the client machine that is running fetchmail.

If you wish to find out more about fetchmail options, type in man fetchmail on the command line and you will be able to see the manual.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts and no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License".