Help - Search - Members - Calendar
Full Version: Fetchmail trouble
Linuxhelp > Support > Technical Support

I'm hoping someone can help me with this. I'm trying to set up a email gateway to block spam, I found this guide (Gateway guide) to go by but I am having a problem with fetchmail. I sent a test email ran fetchmail via webmin and it downloaded it but then deleted the message. Here is the output after fetchmail ran:

etchmail -v -f '/root/.fetchmailrc' ..

fetchmail: WARNING: Running as root is discouraged.
fetchmail: 6.3.4 querying
(protocol POP3) at Sat Jun 17 19:11:23 2006: poll
fetchmail: POP3< +OK MailSite POP3 Server
fetchmail: POP3> CAPA
fetchmail: POP3< +OK Capability list follows
fetchmail: POP3< TOP
fetchmail: POP3< USER
fetchmail: POP3< UIDL
fetchmail: POP3< SASL SCRAM-MD5 CRAM-MD5
fetchmail: POP3< .
fetchmail: POP3> AUTH CRAM-MD5
fetchmail: POP3< +
fetchmail: POP3>
fetchmail: POP3< +OK tschmidt's mailbox has 1
message(s) (655 octets)
fetchmail: POP3> STAT
fetchmail: POP3< +OK 1 655
fetchmail: POP3> LAST
fetchmail: POP3< +OK 0
1 message for tschmidt at (655
fetchmail: POP3> LIST 1
fetchmail: POP3< +OK 1 655
fetchmail: POP3> TOP 1 99999999
fetchmail: POP3< +OK
reading message of
1 (655 octets)
fetchmail: SMTP< 220 ESMTP
Sendmail 8.13.5/8.13.5; Sat, 17 Jun 2006 19:11:23
fetchmail: SMTP> EHLO
fetchmail: SMTP< Hello [], pleased to meet
fetchmail: SMTP< 250-PIPELINING
fetchmail: SMTP< 250-8BITMIME
fetchmail: SMTP< 250-SIZE
fetchmail: SMTP< 250-DSN
fetchmail: SMTP< 250-ETRN
fetchmail: SMTP< 250-DELIVERBY
fetchmail: SMTP< 250 HELP
fetchmail: SMTP> MAIL
fetchmail: SMTP< 250 2.1.0
<>... Sender ok
fetchmail: SMTP> RCPT TO:<email_tschmidt@localhost>
fetchmail: SMTP< 250 2.1.5
<email_tschmidt@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 k5HNBN0f004352 Message
accepted for delivery
fetchmail: POP3> DELE 1
fetchmail: POP3< +OK message 1 deleted
fetchmail: POP3> QUIT
fetchmail: POP3< +OK POP3
server signing off (mailbox empty)
fetchmail: SMTP> QUIT
fetchmail: SMTP< 221 2.0.0
closing connection
fetchmail: 6.3.4 querying
(protocol POP3) at Sat Jun 17 19:11:23 2006: poll
fetchmail: normal termination, status 0

Why is fetchmail doing this? Do I need to change something or maybe there is a better how-to/guide on spam filtering/email gateway?

Thanks in advance
Virtually all POP clients delete the message on the POP server after it has been downloaded - Otherwise the mailbox just fills up. If you haven't already, install webmin which has an easy-to-use fetchmail configuration module that will allow you to alter this behavious either globally or on a per-user basis.


Thanks for the reply. The problem I am having(and maybe you answered it and I'm just not reading it right) is that fetchmail deletes it before my email client downloads it. Outlook shows no new mail. I was reading on another forum where someone had said dovecot(which is what I am using) only uses the Maildir format which is not set up because I thought I read it used both formats. Is it possible that fetchmail deletes it because it has no where to send it?
Fetchmail just downlaods the message from the POP3 server, hands it over to Sendmail/Postfix on the local machine and then removes it from the POP3 server. If you want to collect mail directly from your ISPs server than you don't need to use Fetchmail. The mail should be sitting on your machine - If you install a program like uw-imap or dpvecot then you should be able to get it (uw-imap has IMAP and POP3 servers, and dovecot is a more advanced IMAP server).
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2017 Invision Power Services, Inc.