PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Mailserver mit fetchmail



kudai
11.02.05, 08:38
hallo
Ich möchte mein suse 9.2 als Mailserver einrichten. Möcht mal fragen ob ich auf dem richtigen Weg bin. Fetchmail soll alle Mails abholen, IMAP soll sie verteilen und postfix soll sie versenden. Fetchmail habe ich installiert und soweit konfiguriert das es die Mails abholt finde sie dann allerdings nicht.

Meine .fetchmailrc sieht in etwa so aus

pool post.strato.de protocol pop3 user "name" password "passwort" to test

sollte doch in /var/spool/mail/ die datei "test" angelegt haben, ist aber nur root vorhanden.



Im voraus schon Besten Dank für die Hilfe

Mfg

kudai

Terran Marine
11.02.05, 08:50
sollte doch in /var/spool/mail/ die datei "test" angelegt haben, ist aber nur root vorhanden.


Morgen,

fetchmail übergibt die Mails standardmäßig an den lokalen MTA (Mailserver), läuft dieser denn und was sagt das Log?

Gruß
Terran

Polarizer
11.02.05, 12:50
Also ich weiß nicht ob "to" auch erlaubt ist, aber ich kenne statt

password "passwort" to test
password "passwort" is test

Der Nutzer muß vorhanden sein oder in /etc/alias umgeleitet werden (postalias /etc/alias) nicht vergessen.

Die Mailbox von root in /var/spool/mail kannst Du ja mit einem Editor öffnen. Dort steht sicher drin, welcher Fehler auftrat.

Hope that helps

kudai
11.02.05, 12:51
also postfix läuft und hier habe ich eine logdatei vielleicht kann mir jemand helfen wo ich die Mail suchen muss

fetchmail: 6.2.5 querying post.strato.de (protocol POP3) at Fri Feb 11 12:32:29 2005: poll started
fetchmail: POP3< +OK POP3 server ready <5024953.29337.1108121541@post.webmailer.de>
fetchmail: POP3> CAPA
fetchmail: POP3< +OK Capability list follows:
fetchmail: POP3< EXPIRE NEVER
fetchmail: POP3< PIPELINING
fetchmail: POP3< RESP-CODES
fetchmail: POP3< TOP
fetchmail: POP3< USER
fetchmail: POP3< UIDL
fetchmail: POP3< IMPLEMENTATION MH/2.7.0b4+MVE
fetchmail: POP3< .
fetchmail: POP3> USER test@test.de
fetchmail: POP3< +OK Waiting for password
fetchmail: POP3> PASS *
fetchmail: POP3< +OK User logged in, proceed.
fetchmail: POP3> STAT
fetchmail: POP3< +OK 1 2161
fetchmail: 1 message for test@test.de at post.strato.de (2161 octets).
fetchmail: POP3> LIST 1
fetchmail: POP3< +OK 1 2161
fetchmail: POP3> RETR 1
fetchmail: POP3< +OK message follows
fetchmail: reading message test@test.de@post.strato.de:1 of 1 (2161 octets)
fetchmail: SMTP< 220 GW-Mail.site ESMTP Postfix
fetchmail: SMTP> EHLO localhost
fetchmail: SMTP< 250-GW-Mail.site
fetchmail: SMTP< 250-PIPELINING
fetchmail: SMTP< 250-SIZE 10240000
fetchmail: SMTP< 250-VRFY
fetchmail: SMTP< 250-ETRN
fetchmail: SMTP< 250 8BITMIME
fetchmail: SMTP> MAIL FROM:<kudai@web.de> SIZE=2161
fetchmail: SMTP< 250 Ok
fetchmail: SMTP> RCPT TO:<test@localhost>
fetchmail: SMTP< 250 Ok
fetchmail: SMTP> DATA
fetchmail: SMTP< 354 End data with <CR><LF>.<CR><LF>
fetchmail: SMTP>. (EOM)
fetchmail: SMTP< 250 Ok: queued as 100491FC75
fetchmail: flushed
fetchmail: POP3> DELE 1
fetchmail: POP3< +OK Message 1 deleted
fetchmail: POP3> QUIT
fetchmail: POP3< +OK Closing connection
fetchmail: 6.2.5 querying post.strato.de (protocol POP3) at Fri Feb 11 12:32:34 2005: poll completed
fetchmail: SMTP> QUIT
fetchmail: SMTP< 221 Bye
fetchmail: normal termination, status 0
fetchmail: 6.2.5 querying post.strato.de (protocol POP3) at Fri Feb 11 12:34:21 2005: poll started
fetchmail: POP3< +OK POP3 server ready <12022518.284.1108121653@post.webmailer.de>
fetchmail: POP3> CAPA
fetchmail: POP3< +OK Capability list follows:
fetchmail: POP3< EXPIRE NEVER
fetchmail: POP3< PIPELINING
fetchmail: POP3< RESP-CODES
fetchmail: POP3< TOP
fetchmail: POP3< USER
fetchmail: POP3< UIDL
fetchmail: POP3< IMPLEMENTATION MH/2.7.0b4+MVE
fetchmail: POP3< .
fetchmail: POP3> USER test@test.de
fetchmail: POP3< +OK Waiting for password
fetchmail: POP3> PASS *
fetchmail: POP3< +OK User logged in, proceed.
fetchmail: POP3> STAT
fetchmail: POP3< +OK 0 0
fetchmail: No mail for test@test.de at post.strato.de
fetchmail: POP3> QUIT
fetchmail: POP3< +OK Closing connection
fetchmail: 6.2.5 querying post.strato.de (protocol POP3) at Fri Feb 11 12:34:25 2005: poll completed
fetchmail: normal termination, status 1

Mfg

kudai

Tomek
11.02.05, 16:26
kudai: Für solche Postings bitte die CODE-Tags des Forums benutzen. Danke.

Roger Wilco
11.02.05, 19:47
also postfix läuft und hier habe ich eine logdatei vielleicht kann mir jemand helfen wo ich die Mail suchen muss
Da, wo sie Postfix hingepackt hat. :ugly:
Schau halt mal, welche Werte mailbox_command und/oder mailbox_transport bei dir haben.

kudai
14.02.05, 12:35
hallo

postconf -n

mailbox_command =
mailbox_transport = cyrus

die Mails habe ich in der /var/spool/postfix/defered gefunden.
Kann mir jemand helfen wieso sie dort landen, eigentlich sollte in der
/var/spool/mail/ eine datei mit den Emails angelegt werden.

Im voraus Besten Dank

Mfg

kudai

Roger Wilco
14.02.05, 19:55
Kann mir jemand helfen wieso sie dort landen, eigentlich sollte in der
/var/spool/mail/ eine datei mit den Emails angelegt werden.
Nein, weil dein mailbox_transport für Cyrus IMAPd eingerichtet ist. Lass das mal leer, wenn du die Mails wirklich in /var/mail bzw. /var/spool/mail haben willst.