Red Hat LINUX 7.2 - OFFICIAL LINUX CUSTOMIZATION GUIDE Guida di Installazione Pagina 210

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 282
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 209
210 Chapter 16. Email
set postmaster "user1"
set bouncemail
poll pop.domain.com proto pop3
user ’user1’ there with password ’secret’ is user1 here
poll mail.domain2.com
user ’user5’ there with password ’secret2’ is user1 here
user ’user7’ there with password ’secret3’ is user1 here
Figure 16-6. Example of a basic .fetchmailrc file
In this example, the global are options set so the user is sent email as a last resort (postmaster
option) and all email errors are sent to the postmaster instead of the sender (bouncemail option).
The set action tells Fetchmail that this line contains a global option. Then, two email servers are
specified, one set to check using POP3, and the other for trying various protocols to find one that
works. Two users are checked using the second server option, but all email found for any users is
sent to user1’s mail spool. This allows multiple mailboxes to be checked on multiple servers, while
appearing in a single MUA inbox. Each user’s specific information begins with the user action.
Note
You do not have to place your password in the .fetchmailrc file. You can omit the with pass-
word ’ password section. Fetchmail will then ask for your password when it is started with the
fetchmail command.
While you can set up your .fetchmailrc file manually, it is much easier to let the included fetch-
mailconf program do it for you. However, when testing new configurations, it is usually easier to
edit the .fetchmailrc file directly.
As expected with a program that services such a mature network service as email and utilizes so many
protocols, Fetchmail contains many different global, server, and local options. Many of these options
are rarely used or only apply to very specific situations. The fetchmail man page explains each of
these options in detail, but the most common ones are listed here.
16.4.1.1. Global Options
Each global option should be placed on a single line after a set action.
daemon
seconds — Tells Fetchmail to automatically use daemon-mode, where it will stay in
the background and poll for mail at the interval specified.
postmaster — Gives Fetchmail a local user to send mail to in case of delivery problems.
syslog Tells Fetchmail to start logging error and status messages in the system’s log file. By
default, this is /var/log/maillog.
16.4.1.2. Server Options
Place server options on their own line in .fetchmailrc after a poll or skip action.
auth
auth-type Specifies the type of authentication to be used. By default, password
authentication is utilized, but some protocols support other types of authentication, including ker-
beros_v5, kerberos_v4, and ssh. If the any authentication type is used, Fetchmail will first try
Vedere la pagina 209
1 2 ... 205 206 207 208 209 210 211 212 213 214 215 ... 281 282

Commenti su questo manuale

Nessun commento