sample.rcfile 2.05 KB
Newer Older
1
# fetchmail control file sample (remove this header comment from yours!)
Eric S. Raymond's avatar
Eric S. Raymond committed
2 3
#
# This file (or one of your own creation, rather) should be located 
Eric S. Raymond's avatar
Eric S. Raymond committed
4
# in your home directory with the name .fetchmailrc.  Permissions on this
5
# file may be no greater than -rw------- (0600), or fetchmail will refuse to
Eric S. Raymond's avatar
Eric S. Raymond committed
6 7
# use it.
#
Eric S. Raymond's avatar
Eric S. Raymond committed
8
# To see what effect your ~/.fetchmailrc file has, do 
Eric S. Raymond's avatar
Eric S. Raymond committed
9
#
Eric S. Raymond's avatar
Eric S. Raymond committed
10
#	fetchmail --version
Eric S. Raymond's avatar
Eric S. Raymond committed
11
#
Eric S. Raymond's avatar
Eric S. Raymond committed
12
# This will display the fetchmail version number and an explanation
Eric S. Raymond's avatar
Eric S. Raymond committed
13
# in English of what the currently set options and defaults mean.
Eric S. Raymond's avatar
Eric S. Raymond committed
14 15 16 17 18 19 20
#
# Comments begin with a '#' and extend through the end of the line.
# Blank lines between server entries are ignored.
# Keywords and identifiers are case sensitive.
# When there is a conflict between the command-line arguments and the
# arguments in this file, the command-line arguments take precedence.
#
Eric S. Raymond's avatar
Eric S. Raymond committed
21 22
# The run control file format is fully described (with more examples) on the
# fetchmail manual page.
23 24
#
# This is what the former developer's .fetchmailrc looks like:
Eric S. Raymond's avatar
Eric S. Raymond committed
25

26
set daemon 300	# Sleep 300 seconds after the poll, then poll again.
Eric S. Raymond's avatar
Eric S. Raymond committed
27

28
defaults
29
	# only poll when the sl0 interface is up (only available on some systems)
30
	interface "sl0/10.0.2.15"	# SLIRP standard address
31 32
	# log in with name "esr" and do multidrop fetch for the users
	# esr, fetchmail-friends, and magic-numbers
33
	user esr is esr fetchmail-friends magic-numbers here
34
	# fetch (and delete after retrieval) all messages
35
	fetchall
Eric S. Raymond's avatar
Eric S. Raymond committed
36

Eric S. Raymond's avatar
Eric S. Raymond committed
37
# Use this for production
Matthias Andree's avatar
Matthias Andree committed
38
poll imap.example.org protocol IMAP:
39 40
	# do not use MX lookups to check of server aliases, but pass
	# them explicitly:
Matthias Andree's avatar
Matthias Andree committed
41
	no dns, aka snark.thyrsus.com thyrsus.com locke.example.org example.org 
Eric S. Raymond's avatar
Eric S. Raymond committed
42
	password my_remote_password;
Eric S. Raymond's avatar
Eric S. Raymond committed
43

Eric S. Raymond's avatar
Eric S. Raymond committed
44
# Use this to test POP3
Matthias Andree's avatar
Matthias Andree committed
45
skip pop3.example.org with protocol APOP:
46 47
	# do not use MX lookups to check of server aliases, but pass
	# them explicitly:
Matthias Andree's avatar
Matthias Andree committed
48
	no dns, aka snark.thyrsus.com thyrsus.com locke.example.org example.org 
Eric S. Raymond's avatar
Eric S. Raymond committed
49
	password my_apop_secret;
Eric S. Raymond's avatar
Eric S. Raymond committed
50

51 52
# Use this to test against a different server - it is skipped unless
# you give its name on fetchmail's command line.
Eric S. Raymond's avatar
Eric S. Raymond committed
53 54
skip pop3.netaxs.com:
	password my_netaxs.password;