no dns
user foobar
pass secretword
fetchall
flush
This file tells Fetchmail to do the following:
Check the POP3 server mail.samplenet.org for new mail every
600 seconds.
Log in using the username foobar and the password secretword.
Download all messages from the server.
Delete the messages from the server after downloading them.
Send any mail it receives that cannot be delivered to a local user to the
account foobar.
As mentioned earlier, many more options can be included in the
.fetchmailrc file than are listed here. However, the options offered in
this section will get you up and running with a basic configuration.
For additional flexibility, you can define multiple .fetchmailrc files to
retrieve mail from different remote mail servers while using the same Linux
user account. For example, you can define settings for your most commonly
used account and save them in the default .fetchmailrc file. Mail can
then quickly be retrieved like this:
Click here to view code image
matthew@seymour:~$ fetchmail –a
1 message for matthew at mail.matthewhelmke.com (1108 octets).
reading message 1 of 1 (1108 octets) . flushed
By using Fetchmail’s -f option, you can specify an alternative resource file
and then easily retrieve mail from another server, as follows:
Click here to view code image
matthew@seymour:~$ fetchmail –f .myothermailrc
2 messages for matthew at matthew.helmke.com (5407 octets).
reading message 1 of 2 (3440 octets) ... flushed
reading message 2 of 2 (1967 octets) . flushed
You have new mail in /var/spool/mail/matthew
By using the -d option, along with a time interval (in seconds), you can use
Fetchmail in its daemon, or background, mode. The command launches as a
background process and retrieves mail from a designated remote server at a