PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Was genau passiert, wenn fetchami Mails abruft?



killerhorse
15.04.04, 01:34
Hallo,

Habe mir vor längerer Zeit einen Mailerver eingerichtet. Habe dazu Sendmail zum Mails versenden konfiguriert. Das war noch alles halbwegs klar. Hab dann noch einen POP3 Server draufgespielt was auch kein problem war. Als drittes gibts dann noch Fetchmail. Das ganze zum Laufen zu bringen war einfach. Was ich aber nun garnicht weiss:
Was passiert genau, nachdem Fetchmail die Mails abgerufen hat? Ich hab in der configfile ja angegeben welchem User die Mails gehören (also wohin er sie verschieben soll), aber verschiebt die Fetchmail dorthin oder hat das was mit Sendmail (ev. sendmail -q) zutun.
Kann mir vielleicht jemand kurz erklären was da im Hintergrund abläuft. Ich habe Redhat 9 als Serversystem. Habe an der Konfiguration was Mails betrifft sonst nichts geändert, ausser den oben beschriebenen Dingen.

Möchte dies nur so ungefähr wissen, da ich nun einen IMAP Server installieren möchtee und dazu wäre es nicht schlecht wenn ich einen ungefähren Durchblick bekomme wie das ganze überhaupt funktioniert.

MfG

Christian

core
15.04.04, 04:50
Normalerweise holt fetchmail deine Mails aus entfernen POP oder IMAP Konten ab und jagt diese durch den Lokalen SMTP (Sendmail), daraufhin landen sie dann in der lokalen Mailbox.
/var/spool/mail/USER oder /var/mail/USER.

Das steht auch genauer in der Man Page:



fetchmail(1) fetchmail(1)

NAME
fetchmail - fetch mail from a POP, IMAP, ETRN, or ODMR-capable server

SYNOPSIS
fetchmail [option...] [mailserver...]
fetchmailconf

DESCRIPTION
fetchmail is a mail-retrieval and forwarding utility; it fetches mail from
remote mailservers and forwards it to your local (client) machine's deliv-
ery system. You can then handle the retrieved mail using normal mail user
agents such as mutt(1), elm(1) or Mail(1). The fetchmail utility can be
run in a daemon mode to repeatedly poll one or more systems at a specified
interval.

The fetchmail program can gather mail from servers supporting any of the
common mail-retrieval protocols: POP2, POP3, IMAP2bis, IMAP4, and
IMAPrev1. It can also use the ESMTP ETRN extension and ODMR. (The RFCs
describing all these protocols are listed at the end of this manual page.)

While fetchmail is primarily intended to be used over on-demand TCP/IP
links (such as SLIP or PPP connections), it may also be useful as a mes-
sage transfer agent for sites which refuse for security reasons to permit
(sender-initiated) SMTP transactions with sendmail.

As each message is retrieved fetchmail normally delivers it via SMTP to
port 25 on the machine it is running on (localhost), just as though it
were being passed in over a normal TCP/IP link. The mail will then be
delivered locally via your system's MDA (Mail Delivery Agent, usually
sendmail(8) but your system may use a different one such as smail, mmdf,
exim, or qmail). All the delivery-control mechanisms (such as .forward
files) normally available through your system MDA and local delivery
agents will therefore work automatically.

If no port 25 listener is available, but your fetchmail configuration was
told about a reliable local MDA, it will use that MDA for local delivery
instead. At build time, fetchmail normally looks for executable proc-
mail(1) and sendmail(1) binaries.

If the program fetchmailconf is available, it will assist you in setting
up and editing a fetchmailrc configuration. It runs under X and requires
that the language Python and the Tk toolkit be present on your system. If
you are first setting up fetchmail for single-user mode, it is recommended
that you use Novice mode. Expert mode provides complete control of fetch-
mail configuration, including the multidrop features. In either case, the
`Autoprobe' button will tell you the most capable protocol a given
mailserver supports, and warn you of potential problems with that server.

killerhorse
15.04.04, 14:18
Danke für die Antwort!
Hab noch eine kurze Frage: unterstützt Sendmail eigentlich auch maildir? Hab schon gegooglet aber nicht wirklich etwas gefunden wie man das konfiguriert.

MfG

Christian