sample.rcfile 4.52 KB
Newer Older
1
# fetchmail control file sample
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 21
#
# 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.
#
# Legal keywords are
Eric S. Raymond's avatar
Eric S. Raymond committed
22 23 24
#   poll                      -- must be followed by a mailserver name or label
#   skip                      -- must be followed by a mailserver name or label
#   via                       -- must be followed by true name of host to poll
Eric S. Raymond's avatar
Eric S. Raymond committed
25
#   interval                  -- must be followed by an interval skip count
Eric S. Raymond's avatar
Eric S. Raymond committed
26
#   protocol (or proto)       -- must be followed by a protocol ID
Eric S. Raymond's avatar
Eric S. Raymond committed
27
#   uidl
Eric S. Raymond's avatar
Eric S. Raymond committed
28
#   no uidl
Eric S. Raymond's avatar
Eric S. Raymond committed
29 30 31
#   port                      -- must be followed by a TCP/IP port number
#   authenticate (or auth)    -- must be followed by an authentication type
#   timeout                   -- must be followed by a numeric timeout value
32
#   envelope                  -- must be followed by an envelope header name
Eric S. Raymond's avatar
Eric S. Raymond committed
33
#   qvirtual                  -- must be followed by a name prefix
34
#   no envelope
Eric S. Raymond's avatar
Eric S. Raymond committed
35
#   aka                       -- must be followed by one or more server aliases
Eric S. Raymond's avatar
Eric S. Raymond committed
36
#   localdomains              -- must be followed by one or more domain names
37
#   interface                 -- must be followed by device/IP address/mask
Eric S. Raymond's avatar
Eric S. Raymond committed
38
#   monitor                   -- must be followed by device
39 40
#   no dns
#   dns
41
#
Eric S. Raymond's avatar
Eric S. Raymond committed
42 43
#   username (or user)        -- must be followed by a name
#   is                        -- must be followed by one or more names
44
#   folder                    -- must be followed by remote folder names
Eric S. Raymond's avatar
Eric S. Raymond committed
45
#   password (or pass)        -- must be followed by a password string
46
#   smtphost (or smtp)        -- must be followed by host names
Eric S. Raymond's avatar
Eric S. Raymond committed
47
#   smtpaddress               -- must be followed by a host name
48
#   antispam                  -- must be followed by a numeric response value
Eric S. Raymond's avatar
Eric S. Raymond committed
49
#   mda                       -- must be followed by an MDA command string
Eric S. Raymond's avatar
Eric S. Raymond committed
50 51
#   preconnect (or pre)       -- must be followed by an executable command
#   postconnect (or post)     -- must be followed by an executable command
52
#
53 54 55
#   keep
#   flush
#   fetchall
56
#   rewrite
Eric S. Raymond's avatar
Eric S. Raymond committed
57
#   forcecr
Eric S. Raymond's avatar
Eric S. Raymond committed
58
#   stripcr
Eric S. Raymond's avatar
Eric S. Raymond committed
59
#   pass8bits
60
#   dropstatus
Eric S. Raymond's avatar
Eric S. Raymond committed
61
#   mimedecode
Eric S. Raymond's avatar
Eric S. Raymond committed
62 63 64 65
#   no keep
#   no flush
#   no fetchall
#   no rewrite
Eric S. Raymond's avatar
Eric S. Raymond committed
66
#   no forcecr
Eric S. Raymond's avatar
Eric S. Raymond committed
67
#   no stripcr
68 69
#   no pass8bits
#   no dropstatus
Eric S. Raymond's avatar
Eric S. Raymond committed
70
#   no mimedecode
Eric S. Raymond's avatar
Eric S. Raymond committed
71 72
#   limit                     -- must be followed by numeric size limit
#   fetchlimit                -- must be followed by numeric msg fetch limit
73
#   batchlimit                -- must be followed by numeric SMTP batch limit
74
#   expunge                   -- must be followed by numeric delete count
Eric S. Raymond's avatar
Eric S. Raymond committed
75 76 77 78 79
#
# Legal protocol identifiers are
#   pop2 (or POP2)
#   pop3 (or POP3)
#   imap (or IMAP)
80
#   imap-k4 (or IMAP-K4)
Eric S. Raymond's avatar
Eric S. Raymond committed
81
#   apop (or APOP)
Eric S. Raymond's avatar
Eric S. Raymond committed
82
#   rpop (or RPOP)
83
#   kpop (or KPOP)
84
#   etrn (or ETRN)
Eric S. Raymond's avatar
Eric S. Raymond committed
85
#
86 87 88
# Legal authentication types are
#   login
#   kerberos
Eric S. Raymond's avatar
Eric S. Raymond committed
89
#   kerberos_v5
90
#
91 92
# Legal global option statements are
#
Eric S. Raymond's avatar
Eric S. Raymond committed
93 94
#   set logfile			-- must be followed by a string
#   set idfile			-- must be followed by a string
Eric S. Raymond's avatar
Eric S. Raymond committed
95 96
#   set daemon			-- must be followed by a number   
#   set syslog
97
#   set invisible
98
#
Eric S. Raymond's avatar
Eric S. Raymond committed
99 100
# The noise keywords `and', `with', `has', `wants', and `options' are ignored
# anywhere in an entry; they can be used to make it resemble English.  The
Eric S. Raymond's avatar
Eric S. Raymond committed
101
# punctuation characters `,' `:' `;' are also ignored. 
Eric S. Raymond's avatar
Eric S. Raymond committed
102
#
Eric S. Raymond's avatar
Eric S. Raymond committed
103 104 105 106
# The run control file format is fully described (with more examples) on the
# fetchmail manual page.
# 
# This is what the developer's .fetchmailrc looks like:
Eric S. Raymond's avatar
Eric S. Raymond committed
107

Eric S. Raymond's avatar
Eric S. Raymond committed
108 109
set daemon 300	# Poll at 5-minute intervals

110 111 112 113
defaults
	interface "sl0/10.0.2.15"	# SLIRP standard address
	user esr is esr fetchmail-friends magic-numbers here
	fetchall
Eric S. Raymond's avatar
Eric S. Raymond committed
114

Eric S. Raymond's avatar
Eric S. Raymond committed
115
# Use this for production
Eric S. Raymond's avatar
Eric S. Raymond committed
116
poll imap.ccil.org protocol IMAP:
Eric S. Raymond's avatar
Eric S. Raymond committed
117
	no dns, aka snark.thyrsus.com thyrsus.com locke.ccil.org ccil.org 
Eric S. Raymond's avatar
Eric S. Raymond committed
118
	password my_remote_password;
Eric S. Raymond's avatar
Eric S. Raymond committed
119

Eric S. Raymond's avatar
Eric S. Raymond committed
120 121
# Use this to test POP3
skip pop3.ccil.org with protocol APOP:
Eric S. Raymond's avatar
Eric S. Raymond committed
122
	no dns, aka snark.thyrsus.com thyrsus.com locke.ccil.org ccil.org 
Eric S. Raymond's avatar
Eric S. Raymond committed
123
	password my_apop_secret;
Eric S. Raymond's avatar
Eric S. Raymond committed
124

Eric S. Raymond's avatar
Eric S. Raymond committed
125 126 127
# Use this to test against a different server
skip pop3.netaxs.com:
	password my_netaxs.password;