PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Alternative zu



ChatErbse
10.04.02, 09:23
fetchmail....

Also senden und empfangen klappt alles wunderbar.
Egal ob ich lokal sende / empfange, es wird alles richtig maskiert und kommt sogar bei Aol an... ;)

Ich habe eine eigene Domain mit fester Ip und auch einen festen Mailserver
der auf meine Domain hört mail.domain.de ....

dort kommen nun alle meine Mails auf einem Catch-All -Konto an und werden dann durch fetchmail abgeholt.

wie gesagt es klappt alles!

Nur eines stört mich:

Ich starte fetchmail mit der Option -keep damit meine Mails auf dem Server beim Provider liegen bleiben, damit ich diese auch von Unterwegs via Notebook und z.b. Handy abholen kann.

Nun holt fetchmail alle Mails immer wieder ab...... das stört ungemein und lässt sich auch nicht abschalten.

Ich möchte meinen Server, der zwar via t-dsl und flatrate in i-net geht, nicht von aussen ansprechbar machen. Und das hat seinen Grund.


Ich suche nun eine alternative zu fetchmail.

Jemand eine Idee? Es sollte genauso einfach zu konfigurieren sein wie fetchmail !

grüssle CE
:cool:

micha
10.04.02, 12:11
Hi,



Nun holt fetchmail alle Mails immer wieder ab......


wie meinst Du das genau ?
Ich starte fetchmail mit fetchmail --keep --ssl -v, und es funktioniert wunderbar.

Gruß micha

ChatErbse
10.04.02, 12:18
hi, danke für Deine Antwort.

fetchmail holt immer und immer wieder alle!!! emails ab, wenn ich --keep einsetze. Ohne dass ich -a ( fetchall) benutze.

Also benötige ich wohl ein anderes programm dass die emails auf dem externen Server stehen lässt und nur die "neu" hinzugekommenen abholt.

grüssle CE

micha
10.04.02, 14:25
Hi,

Ok, Dein Problem ist mir jetzt klar, allerdings nicht Deine Folgerung, da Du schon sagtest, dass Fetchmail ausser diesem einzigen Problem gut ist und einfach zu konfigurieren. Da würde es mich an Deiner Stelle eher interessieren, warum das so ist ;)
Der User, der mit fetchmail die Mails abholt, müsste nach dem Download eine Datei ~/.fetchids haben, in der fetchmail die ganzen ID's der - schon empfangenen - Mails speichert. Ist diese Datei vorhanden ?
Nützlich kann auch mal ein Blick in die /var/log/messages, /var/log/mail oder /var/log/warn sein. Und vor allem fetchmail mit der Option -v aufrufen. Lassen sich da irgendwelche Fehlermeldungen finden ?
Was für eine Version von fetchmail setzt Du ein, und welche Distribution ?

Gruß micha

ChatErbse
10.04.02, 14:50
Danke für Deine Antwort.

Suse 7.2

fetchmail 5.8.0

fetchmail -V =


Taking options from command line and /root/.fetchmailrc
Idfile is /root/.fetchids
Fetchmail will forward misaddressed multidrop messages to admin.
Options for retrieving from admin@domain.de@mail.domain.de:
True name of server is mail.domain.de.
Protocol is POP3.
All available authentication methods will be tried.
Server nonresponse timeout is 300 seconds (default).
Default mailbox selected.
Only new messages will be retrieved (--all off).
Fetched messages will be kept on the server (--keep on).
Old messages will not be flushed before message retrieval (--flush off).
Rewrite of server-local addresses is enabled (--norewrite off).
Carriage-return stripping is disabled (stripcr off).
Carriage-return forcing is disabled (forcecr off).
Interpretation of Content-Transfer-Encoding is enabled (pass8bits off).
MIME decoding is disabled (mimedecode off).
Idle after poll is disabled (idle off).
Nonempty Status lines will be kept (dropstatus off)
Delivered-To lines will be kept (dropdelivered off)
Messages will be SMTP-forwarded to: localhost (default)
Recognized listener spam block responses are: 571 550 501 554
Single-drop mode: 1 local name(s) recognized.
No UIDs saved from this host.


Allerdings finde ich weder bei Admin noch beim Root eine .fetchids ......

mmhhh

ich wollte dass der root-cron-daemon folgendes macht:

*/5 * * * * admin fetchmail -k -v >>/var/log/fetchmail 2>&1

Tut er auch, aber er holt eben alle mails immer wieder ab.
So und nun müsste ich nur noch wissen, wenn via root der Cron-Daemon fetchmail als user admin startet, wie ich dann zu der .fetchids komme.

ne idee?

grüssle CE

micha
10.04.02, 16:15
Hi,


Taking options from command line and /root/.fetchmailrc
Idfile is /root/.fetchids
Fetchmail will forward misaddressed multidrop messages to admin.
Options for retrieving from admin@domain.de@mail.domain.de:


ich denke, dass da irgendwas bei dem Benutzer nicht stimmt. Du hast admin als User, aber er zeigt Dir als Einstellung, dass die .fetchids nach /root gespeichert werden soll. Da, wenn fetchmail aber unter admin läuft, er nicht nach /root schreiben kann, wird diese auch nicht erstellt. Ich hab bei mir nen Benutzer/Gruppe postbote unter /home/postbote, der für die Mails zuständig ist. Die .fetchmailrc liegt unter /home/postbote/.fetchmailrc, die .fetchids ebenfalls.
Zum Vergleich mein Ausgabe von fetchmail -V:


Taking options from command line and /home/postbote/.fetchmailrc
Idfile is /home/postbote/.fetchids
Fetchmail will forward misaddressed multidrop messages to postbote.
Options for retrieving from xxxxxxxx@pop.gmx.net:
...


Meine crontab von postbote:



0 6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22 * * * /usr/local/bin/fetchmail --ssl --keep 2>/dev/null


Versuche am Besten mal, die Mails als root abzuholen ( nicht per crontab, sonder per Hand ) :
fetchmail --keep -v &> /root/fetch.log

Sollte er danach unter /root eine .fetchids erstellt haben, und beim zweiten Versuch auch nur noch die neuen holen, dann würde ich ebenfalls einen extra User für die Mails erstellen, die .fetchmailrc von /root nach /home/$USER kopieren, und auch die crontab von diesem User benutzen.
Ansonsten ist der Log von fetchmail unter /root/fetch.log gespeichert. Den dann bitte, nachdem Du eventuell sensible Daten ausgekreuzt hast, hier posten.

Gruß micha

LKH
10.04.02, 16:44
Hi,

ich weiss jetzt leider nicht, wie du du fetchmail startest. Auf jeden Fall steht i.d.R. im Homeverzeichnis des Benutzers ein .fetchmairc mit einem Inhalt wie folgt:

poll mail.domain.de protocol POP3 user irgendeiner password geheim to ...

Wenn du irgendwo hinter poll no fetchall reinschreibst, holt er nur die neuen (ungelesenen) Mails. Dies ist eigentlich schon die default Einstellung.

Hoffe es hilft,

ChatErbse
10.04.02, 17:11
Hallo micha,

auch als root erstellt er keine .fetchids.......

hier mal die fetch.log :(

wäre echt toll wenn Dir dazu noch was einfällt.





fetchmail: 5.8.0 querying mail.xxxxxxxxxxx.de (protocol POP3) at Wed Apr 10 17:39:14 2002
fetchmail: POP3< +OK mail.xxxxxxxxxxx.net Merak 4.2.2 POP3 Wed, 10 Apr 2002 17:44:51 +0100 <20020410174451@mail.xxxxxxxxxxx.net>
fetchmail: POP3> CAPA
fetchmail: POP3< +OK Capability list follows
fetchmail: POP3< TOP
fetchmail: POP3< USER
fetchmail: POP3< APOP
fetchmail: POP3< EXPIRE NEVER
fetchmail: POP3< UIDL
fetchmail: POP3< SASL LOGIN CRAM-MD5
fetchmail: POP3< STLS
fetchmail: POP3< .
fetchmail: POP3> AUTH CRAM-MD5
fetchmail: POP3< + PDIwMDIwNDEwMTc0NDUxQG1haWwucm91dGluZy5uZXQ+
fetchmail: POP3> YWRtaW5Aa2ZlaGxiZXJnLmRlIGRkMWEzMWM0ODkwMWY0ZjkwZD QzY2RhYzI0YjIxYWMz
fetchmail: POP3< +OK 6 messages 36437 octets
fetchmail: POP3> STAT
fetchmail: POP3< +OK 6 36437
fetchmail: POP3> LAST
fetchmail: POP3< +OK 0
6 messages for admin@xxxxxxxxxxx.de at mail.xxxxxxxxxxx.de (36437 octets).
fetchmail: POP3> LIST
fetchmail: POP3< +OK 6 messages 36437 octets
fetchmail: POP3< 1 1286
fetchmail: POP3< 2 7201
fetchmail: POP3< 3 7452
fetchmail: POP3< 4 7201
fetchmail: POP3< 5 7452
fetchmail: POP3< 6 5845
fetchmail: POP3< .
fetchmail: POP3> RETR 1
fetchmail: POP3< +OK 1286 octets
reading message 1 of 6 (1286 octets)
fetchmail: SMTP< 220 sls.gpl ESMTP Sendmail 8.11.3/8.11.3/SuSE Linux 8.11.1-0.5; Wed, 10 Apr 2002 17:39:21 +0200
fetchmail: SMTP> EHLO localhost
fetchmail: SMTP< 250-sls.gpl Hello localhost [127.0.0.1], pleased to meet you
fetchmail: SMTP< 250-ENHANCEDSTATUSCODES
fetchmail: SMTP< 250-8BITMIME
fetchmail: SMTP< 250-SIZE
fetchmail: SMTP< 250-DSN
fetchmail: SMTP< 250-ONEX
fetchmail: SMTP< 250-ETRN
fetchmail: SMTP< 250-XUSR
fetchmail: SMTP< 250 HELP
fetchmail: SMTP> MAIL FROM:<webmaster@xxxxxxxxxxx.de> BODY=7BIT SIZE=1286
fetchmail: SMTP< 250 2.1.0 <webmaster@xxxxxxxxxxx.de>... Sender ok
fetchmail: SMTP> RCPT TO:<admin@localhost>
fetchmail: SMTP< 250 2.1.5 <admin@localhost>... Recipient ok
fetchmail: SMTP> DATA
fetchmail: SMTP< 354 Enter mail, end with "." on a line by itself
fetchmail: SMTP>. (EOM)
fetchmail: SMTP< 250 2.0.0 g3AFdL405179 Message accepted for delivery
not flushed
fetchmail: POP3> RETR 2
fetchmail: POP3< +OK 7201 octets
reading message 2 of 6 (7201 octets)
fetchmail: SMTP> MAIL FROM:<ndsub.7g7j5YxDp2Lv76OyyTUJxJD7671EP.e3@mail.xxxxxx xxxxx.com> BODY=7BIT SIZE=7201
fetchmail: SMTP< 250 2.1.0 <ndsub.7g7j5YxDp2Lv76OyyTUJxJD7671EP.e3@mail.xxxxxx xxxxx.com>... Sender ok
fetchmail: SMTP> RCPT TO:<admin@localhost>
fetchmail: SMTP< 250 2.1.5 <admin@localhost>... Recipient ok
fetchmail: SMTP> DATA
fetchmail: SMTP< 354 Enter mail, end with "." on a line by itself
fetchmail: SMTP>. (EOM)
fetchmail: SMTP< 250 2.0.0 g3AFdR405182 Message accepted for delivery
not flushed
fetchmail: POP3> RETR 3
fetchmail: POP3< +OK 7452 octets
reading message 3 of 6 (7452 octets)
fetchmail: SMTP> MAIL FROM:<ndsub.7g7j5YxDp6Lv76OyyTUJxJD7671EJ.e3@mail.xxxxxx xxxxx.com> BODY=8BITMIME SIZE=7452
fetchmail: SMTP< 250 2.1.0 <ndsub.7g7j5YxDp6Lv76OyyTUJxJD7671EJ.e3@mail.xxxxxx xxxxx.com>... Sender ok
fetchmail: SMTP> RCPT TO:<admin@localhost>
fetchmail: SMTP< 250 2.1.5 <admin@localhost>... Recipient ok
fetchmail: SMTP> DATA
fetchmail: SMTP< 354 Enter mail, end with "." on a line by itself
fetchmail: SMTP>. (EOM)
fetchmail: SMTP< 250 2.0.0 g3AFdW405184 Message accepted for delivery
not flushed
fetchmail: POP3> RETR 4
fetchmail: POP3< +OK 7201 octets
reading message 4 of 6 (7201 octets)
fetchmail: SMTP> MAIL FROM:<ndsub.7g7j5YxDp2Lv76OyyTUJxJD7671EP.e3@mail.xxxxxx xxxxx.com> BODY=7BIT SIZE=7201
fetchmail: SMTP< 250 2.1.0 <ndsub.7g7j5YxDp2Lv76OyyTUJxJD7671EP.e3@mail.xxxxxx xxxxx.com>... Sender ok
fetchmail: SMTP> RCPT TO:<admin@localhost>
fetchmail: SMTP< 250 2.1.5 <admin@localhost>... Recipient ok
fetchmail: SMTP> DATA
fetchmail: SMTP< 354 Enter mail, end with "." on a line by itself
fetchmail: SMTP>. (EOM)
fetchmail: SMTP< 250 2.0.0 g3AFdc405188 Message accepted for delivery
not flushed
fetchmail: POP3> RETR 5
fetchmail: POP3< +OK 7452 octets
reading message 5 of 6 (7452 octets)
fetchmail: SMTP> MAIL FROM:<ndsub.7g7j5YxDp6Lv76OyyTUJxJD7671EJ.e3@mail.xxxxxx xxxxx.com> BODY=8BITMIME SIZE=7452
fetchmail: SMTP< 250 2.1.0 <ndsub.7g7j5YxDp6Lv76OyyTUJxJD7671EJ.e3@mail.xxxxxx xxxxx.com>... Sender ok
fetchmail: SMTP> RCPT TO:<admin@localhost>
fetchmail: SMTP< 250 2.1.5 <admin@localhost>... Recipient ok
fetchmail: SMTP> DATA
fetchmail: SMTP< 354 Enter mail, end with "." on a line by itself
fetchmail: SMTP>. (EOM)
fetchmail: SMTP< 250 2.0.0 g3AFdh405190 Message accepted for delivery
not flushed
fetchmail: POP3> RETR 6
fetchmail: POP3< +OK 5845 octets
reading message 6 of 6 (5845 octets)
fetchmail: SMTP> MAIL FROM:<MAILER-DAEMON@aol.com> SIZE=5845
fetchmail: SMTP< 250 2.1.0 <MAILER-DAEMON@aol.com>... Sender ok
fetchmail: SMTP> RCPT TO:<admin@localhost>
fetchmail: SMTP< 250 2.1.5 <admin@localhost>... Recipient ok
fetchmail: SMTP> DATA
fetchmail: SMTP< 354 Enter mail, end with "." on a line by itself
fetchmail: SMTP>. (EOM)
fetchmail: SMTP< 250 2.0.0 g3AFdn405194 Message accepted for delivery
not flushed
fetchmail: POP3> QUIT
fetchmail: POP3< +OK mail.xxxxxxxxxxx.net closing connection
fetchmail: SMTP> QUIT
fetchmail: SMTP< 221 2.0.0 sls.gpl closing connection
fetchmail: normal termination, status 0

ChatErbse
10.04.02, 18:05
Habe für mich die Lösung gefunden:

fetchmail -k -uidl lässt die mails auf dem Server und liest wirklich nur die neuen .


Danke für Eure Hilfe.

@ Micha: Du hast mir das erste mal dass gefühl gegeben, dass es mit fetchmail gehen muss. Danke!

grüssle
CE : nun froh: und zufrieden

micha
10.04.02, 19:26
Hi,

freut mich, wenns jetzt funktioniert ;)

Gruß micha