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

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'
mail.theschmidthome.com ..

fetchmail: WARNING: Running as root is discouraged.
fetchmail: 6.3.4 querying mail.linuxserver.com
(protocol POP3) at Sat Jun 17 19:11:23 2006: poll
started
fetchmail: POP3< +OK MailSite POP3 Server 7.0.3.5
Ready
<90664128.62537728.1955321914@mail.exampleisp.com>
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< +
PDI5Mi4xMDYwNjE3MdkfjaaslfkjsierhJyYWwmaQbT4=
fetchmail: POP3>
dHNjaG1pZHQgNGHuy6eNDI5M2JkNjg=
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 mail.linuxserver.com (655
octets).
fetchmail: POP3> LIST 1
fetchmail: POP3< +OK 1 655
fetchmail: POP3> TOP 1 99999999
fetchmail: POP3< +OK
reading message tschmidt@mail.exampleisp.com:1 of
1 (655 octets)
fetchmail: SMTP< 220 mail.linuxserver.com ESMTP
Sendmail 8.13.5/8.13.5; Sat, 17 Jun 2006 19:11:23
-0400
fetchmail: SMTP> EHLO mail.linuxserver.com
fetchmail: SMTP< 250-mail.linuxserver.com Hello
mail.linuxserver.com [127.0.0.1], pleased to meet
you
fetchmail: SMTP< 250-ENHANCEDSTATUSCODES
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
FROM:<tschmidt@exampleisp.com> BODY=7BIT SIZE=655
fetchmail: SMTP< 250 2.1.0
<tschmidt@exampleisp.com>... 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
flushed
fetchmail: POP3> DELE 1
fetchmail: POP3< +OK message 1 deleted
fetchmail: POP3> QUIT
fetchmail: POP3< +OK mail.exampleisp.com POP3
server signing off (mailbox empty)
fetchmail: SMTP> QUIT
fetchmail: SMTP< 221 2.0.0 mail.linuxserver.com
closing connection
fetchmail: 6.3.4 querying mail.linuxserver.com
(protocol POP3) at Sat Jun 17 19:11:23 2006: poll
completed
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
DS2K3
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.

D
tschmidt
DS2K3,


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?
DS2K3
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.