PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Fetchmail weiterleitung an Postfix



buzz59
19.10.04, 09:25
Hallo,

hab ein Problem mit Fetchmail und Postfix.

Also ich möchte das Fetchmail die Mails empfängt und sie an Postfix weiterleitet.

Aber ich bekomme es nicht hin, könnt ihr mir helfen?

gruß buzz59

Stormbringer
19.10.04, 09:40
Hi,

postfix verwaltet den Mailtransport (Empfang & Weitergabe).
Willst Du nun also mittels fetchmail Emails abrufen (fetchmail empfängt selbst gar nichts ...), und diese an postfix weiterreichen, so gibst Du lediglich den lokalen Empfängernamen an.
Beispiel:


set logfile "/home/stormbringer/fetchmail.log"
set postmaster "stormbringer"
set bouncemail
set spambounce
set properties ""
poll imap.gmx.net
proto IMAP
user "xxx@gmx.net"
password "PASSWORD"
fetchall
ssl
norewrite
is stormbringer

Gruß

buzz59
19.10.04, 10:13
Danke für deine Hilfe aber ich verstehe es noch nicht ganz, also hab Fetchmail installiert und dann eine .fetchmailrc datei unter root angelegt in der dieser text steht:

set postmaster "postmaster"
set bouncemail
set properties ""

poll XXXXXXXX with proto POP3
user 'XXX' there with password 'XXX' is XXX here options fetchall

Soweit klappt auch alles, nun möchte ich sie an postfix weiterleiten, gibts da nicht ein comando mit mda /...... ?

Stormbringer
19.10.04, 10:17
Natürlich gibt es dies - wie auch Dir ein man fetchmail sagen würde:


-m <command> | --mda <command>
(Keyword: mda) You can force mail to be passed to
an MDA directly (rather than forwarded to port 25)
with the --mda or -m option. To avoid losing mail,
use this option only with MDAs like procmail or
sendmail that return a nonzero status on disk-full
and other resource-exhaustion errors; the nonzero
status tells fetchmail that delivery failed and
prevents the message from being deleted off the
server. If fetchmail is running as root, it sets
its userid to that of the target user while deliv*
ering mail through an MDA. Some possible MDAs are
"/usr/sbin/sendmail -i -f %F %T",
"/usr/bin/deliver" and "/usr/bin/procmail -d %T"
(but the latter is usually redundant as it's what
SMTP listeners normally forward to). Local deliv*
ery addresses will be inserted into the MDA command
wherever you place a %T; the mail message's From
address will be inserted where you place an %F. Do
not use an MDA invocation like "sendmail -i -t"
that dispatches on the contents of To/Cc/Bcc, it
will create mail loops and bring the just wrath of
many postmasters down upon your head.


Wie (rather than forwarded to port 25) schon sagt: im Normalfall wird die abgerufene Email lokal an Port 25 (=postfix oder sendmail oder ...) weitergegeben.

Gruß

buzz59
19.10.04, 10:31
hi,

ok, also kannst du mir sagen was ich noch änderen muss?


gruß

Stormbringer
19.10.04, 13:06
Uns anderen hier sagen, wo wir eine nutzbare Glaskugel erhalten.

Gruß

buzz59
19.10.04, 13:21
jetzt auch noch rätzel :) oh nein.
Was müsst du noch wissen?

Stormbringer
19.10.04, 13:38
Wie Du bspw. darauf kommst, daß fetchmail die abgerufenen Emails nicht an postfix weitergibt ... oder ob etwas nicht ganz normales in den Logdateien steht, ob postfix lokal auf Port 25 lauscht, etc.
Und da diese Infos schwerlich ohne Glaskugel "weissagbar" sind, kam halt die Frage, wo es wohl nutzbare gibt ...

Gruß

buzz59
19.10.04, 13:50
Ich bin halt noch anfänger, entschuldige bitte :(
Also hab wie schon gesagt fetchmail installiert (siehe oben) und dann postfix, gehen die mails jetzt automatisch an postfix oder wie kann ich das jetzt verstehen?

Stormbringer
19.10.04, 14:14
Das hat nichts mit "Anfänger sein" zu tun ... man muß sich lediglich in die Lage des Lesenden bringen, und dann hinterfragen:
"könnte ich ohne zusätzliche als den gegebenen Infos das Problem exakt verstehen?". ;)

Es muß doch einen Grund geben, warum Du annimmst, daß die Emails nicht an postfix weitergegeben werden ... welcher ist das?
Läuft postfix denn überhaupt?
Wo werden die Emails abgelegt?
Hast Du postfix konfiguriert, oder einfach nur installiert?

Gruß

buzz59
20.10.04, 09:12
Läuft postfix denn überhaupt?
Gruß
postfix/postfix-script: fatal: the Postfix mail system is already running


Wo werden die Emails abgelegt?
Gruß
Weiß nicht :(


Hast Du postfix konfiguriert, oder einfach nur installiert?
Gruß
hab bis jetzt nur die einstellung myhostname in der main.cf verändert.

gruß