Rob MacGregor | 1 Aug 2002 08:04
Picon
Favicon

Re: [fetchmail] Possible bug with '-v' using Sendmail 8.11.2 and Fetchmail 5.9.13

>From: Debra Douglass <ddoug <at> catrio.org>
>
>I have noticed that the entries in the Sendmail access_db are no
>longer triggered when the '-v' switch is used with Fetchmail. I have
>several blocked domain names and addresses in that database and when I
>turned on the verbose switch they were no longer blocked.  Does
>anyone know why this happens?

Without log evidence showing what happened nobody will be able to.

If you up the logging in Sendmail and then run with and without the "-v" 
there *might* be enough information for somebody to help.

    Please don't CC me on anything sent to mailing lists or send
        me email directly unless it's a privacy issue, thanks.

    Reply-to mangled to assist those who don't read the above :)
--
Rob  |  Ask questions the smart way:
                http://www.tuxedo.org/~esr/faqs/smart-questions.html

_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx

_______________________________________________
Fetchmail-friends mailing list
Fetchmail-friends <at> lists.ccil.org
http://lists.ccil.org/mailman/listinfo/fetchmail-friends

(Continue reading)

Martin Trautmann | 1 Aug 2002 11:25
Picon
Picon

[fetchmail] How to get started

Hi all,

may I ask for some newbie help: How do I get started with fetchmail?

My initial problem was that the IMAP exchange server started to strip
headerlines from messages. Up to now I used mutt directly on the
mailboxes, although I had some trouble sometimes. Thus I had a second look
at fetchmail (trying v.5.7 before).

Ok, I got fetchmail release 5.9.13+NTLM+NLS

But how do I start this thing?

A first attempt on 'fetchmail -avk exchange doubled' the messages,
pulling/pushing the messages back to there.

fetchmailconf does not work yet, due to some incorrect python support
(ImportError: No module named _tkinter)

I was looking for some well documented default .fetchmailrc, but there's
none around!?

What I want to do first:
- get some mail, identified by Receiver or header lines, to 
  local mailboxes (such as $HOME/Mail/In)
- leave some mail, identified by Sender, on the IMAP server,
  maybe sorting it to other boxes, since Outlook is far from
  perfect for this task.
- identify some spam (using procmail) and sort some out

(Continue reading)

Rob MacGregor | 1 Aug 2002 12:02
Picon
Favicon

Re: [fetchmail] How to get started

>From: Martin Trautmann <traut <at> gmx.de>
>
>may I ask for some newbie help: How do I get started with fetchmail?

The man page is always a good start :-)

>My initial problem was that the IMAP exchange server started to strip
>headerlines from messages.

Header line from a "telnet <server> 143" and sample stripped message?

>Up to now I used mutt directly on the
>mailboxes, although I had some trouble sometimes. Thus I had a second look
>at fetchmail (trying v.5.7 before).
>
>Ok, I got fetchmail release 5.9.13+NTLM+NLS
>
>But how do I start this thing?

RTFM.  Hint there's a daemon option.

>What I want to do first:
>- get some mail, identified by Receiver or header lines, to
>   local mailboxes (such as $HOME/Mail/In)

Multidrop boxes?  Take a look at the multidrop section of the man page.

>- leave some mail, identified by Sender, on the IMAP server,
>   maybe sorting it to other boxes, since Outlook is far from
>   perfect for this task.
(Continue reading)

Rob MacGregor | 1 Aug 2002 13:01
Picon
Favicon

Re: [fetchmail] How to get started

PLEASE READ THE SODDING .SIG!!!

My reply-to address is mangled to ensure you keep list related traffic on 
the list and don't bother me directly.  I don't do that for fun.

>From: traut <at> gmx.de
>
>I did - but I understood not enough about the operation of E-Mail. I
>expected that Mail would be downloaded to $MAIL, /mailbox/$USER or
>something like that. Instead it's pushed back to the server.

Yup, fetchmail is basically a mail transfer agent.  Unless you configure it 
otherwise it just passes email to another SMTP server.

However, you *can* configure it to use your chosen local delivery agent.

>Oh, bad thing - I'll have to put it to some other IMAP box back then
>again.

Hardly a problem given how easy the University of Washington IMAP/POP 
package is to install.

>I expected procmail to offer the best filter by configuration, while the
>man pages named some fetchmail built-in spam filtering.

Nope, the man page tells you that you can configure fetchmail to recognise 
certain SMTP errors as indicating spam and to just trash the message in 
question.

>PS: is it standard on this list to use that strange E-Mail addresses? Is
(Continue reading)

Martin Trautmann | 1 Aug 2002 18:37
Picon
Picon

Re: [fetchmail] How to get started

----- Forwarded message, not sent to the list before -----

On Thu 2002-08-01 (12:02), Rob MacGregor wrote:
> >From: Martin Trautmann <traut <at> gmx.de>
> >
> >may I ask for some newbie help: How do I get started with fetchmail?
> 
> The man page is always a good start :-)

Hi Rob!

I did - but I understood not enough about the operation of E-Mail. I
expected that Mail would be downloaded to $MAIL, /mailbox/$USER or
something like that. Instead it's pushed back to the server.

I guess I've to start procmail in order to pull data out. I don't have any
clue yet why pulling the data from the IMAP server does push it there
again. All I found in the current seutp was MAIL=/mailhome/trautman/trautman

> >My initial problem was that the IMAP exchange server started to strip
> >headerlines from messages.
> 
> Header line from a "telnet <server> 143" and sample stripped message?

Sorry, I'd need a walkthrough of telnet commands for that task.
While reading mail from the server with mutt and comparing previous
results, stripped is e.g.
References: In-Reply-To:
Errors-to: List-ID: List-owner: List-post: List-software: Precedence:
Received: (all but one) Sender: and any X-.*:
(Continue reading)

Martin Trautmann | 1 Aug 2002 18:39
Picon
Picon

Re: [fetchmail] How to get started

----- Forwarded message from Martin Trautmann <traut <at> gmx.de> -----
On Thu 2002-08-01 (13:01), Rob MacGregor wrote:
> >Sorry, I'd need a walkthrough of telnet commands for that task.
> 
> telnet mailserver 25
> 
> Then post the header line from the mail server.

220 EXCHANGE1 ESMTP Server (Microsoft Exchange Internet Mail Service 5.5.2653.13) ready

On port 143 (as stated before) it's
* OK Microsoft Exchange IMAP4rev1 server version 5.5.2653.23 (exchange1) ready

> >While reading mail from the server with mutt and comparing previous
> >results, stripped is e.g.
> >References: In-Reply-To:
> >Errors-to: List-ID: List-owner: List-post: List-software: Precedence:
> >Received: (all but one) Sender: and any X-.*:
> 
> That may be Mutt doing it, any mail server that does that is probably 
> breaking more RFCs than I can count.

Hm, strange, it did not do this before.
Messages fetchmailed from IMAP and resent to the exchange server include all
the headers when I get them with mutt again!

Kind regards
Martin

----- End forwarded message -----
(Continue reading)

Dan Martinez | 2 Aug 2002 11:22

[fetchmail] fetchmail 5.9.13, SSL, and Red Hat

I've observed what I believe to be two problems related to building
SSL support into fetchmail 5.9.13 when compiling the source RPM.

An initial build attempt shows that SSL support isn't enabled at all,
although it was certainly intended to be. This appears to be because
the spec file specifies "--enable-SSL" as an argument to configure,
rather than "--with-ssl".

Once this is fixed, configure reports that it's building with SSL
support, but reports that it's using /usr/local/ssl (which doesn't
even exist on my Red Hat 7.3 system) as its source for SSLeay-flavored
SSL.

Red Hat keeps its OpenSSL files under /usr; adding /usr to the list of
directories searched for SSL causes configure to use the correct
directories, and realize that it's dealing with OpenSSL rather than
SSLeay.

A patch which modifies configure.in and specgen.sh for what I believe
to be the correct behavior can be found below. 

(Note that I have not been able to determine whether SSL actually
works when all is said and done: a side effect of my investigations
was the discovery that my ISP doesn't appear to actually support POP3
over SSL, and that I've been living in a fool's paradise for longer
than I care to think about. plugin ssh, take me away!)

Also, while I'm reporting bugs, it looks like there's one in
<http://www.tuxedo.org/~esr/fetchmail/>. The text reads, in part,
"especially item G3 on how to report bugs". "G3" is a hyperlink to
(Continue reading)

Rob MacGregor | 2 Aug 2002 11:41
Picon
Favicon

Re: [fetchmail] starting fetchmail from ppp.linkup on FreeBSD 4.6

>From: Paulo Roberto <nirv199 <at> yahoo.com>
>
>I am having some trouble trying to run fetchmail in daemon mode, being
>started from /etc/ppp/ppp.linkup in FreeBSD 4.6.
>At the /var/log/ppp.log I get:
>ppp[56]: tun0: Command: papchap: ! sh /usr/local/bin/fetchmail -v -f
>/root/.fetchmailrc >> /tmp/FETCHMAIL.LOG
>But no mail is retrieved (yup, I sent myself dozens of emails to test
>it) and even no output is directed to my test file.
>Does fetchmail needs any special parameter to be run at ppp.linkup?

What's in /root/.fetchmailrc?

Does ppp.linkup run as root?

Finally, does the ! indicate that it didn't run the script or what?

          Please DO NOT send me list related traffic directly.
       Reply-to mangled to assist those who don't read the above.
--
Rob  |  What part of "no" was it you didn't understand?

_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com

_______________________________________________
Fetchmail-friends mailing list
Fetchmail-friends <at> lists.ccil.org
http://lists.ccil.org/mailman/listinfo/fetchmail-friends
(Continue reading)

Alexander Skwar | 4 Aug 2002 01:47
X-Face

Re: [fetchmail] Downloading Large -- Removing Small

So sprach SoloCDM am 2002-08-02 um 11:37:25 -0600 :
> With fetchmail 5.9.0 downloading from a POP3 mail server, how can I
> download 250 messages from a mail server while every 50 messages,
> once downloaded, are removed from the mail server in the same
> process?

A good start would be to read the man page ;)  This would lead you to:

       -e <count>, --expunge <count>
              (keyword:  expunge) Arrange for deletions to be made final
              after a given number of mes­ sages.  Under POP2 or POP3,
              fetchmail cannot make deletions final without sending
              QUIT and  ending  the  session  --  with  this  option
              on, fetchmail will break a long mail retrieval session
              into multiple subsessions, sending QUIT after each
              sub-session.  This is a good defense against line drops on
              POP3 servers that do not do the equivalent of a QUIT on
              hangup.  Under IMAP, fetchmail normally issues an EXPUNGE
              command  after  each deletion  in  order  to force the
              deletion to be done immediately.  This is safest when your
              connection to the server is flaky and expensive, as it
              avoids resending  duplicate mail  after  a line hit.
              However, on large mailboxes the overhead of re-indexing
              after every message can slam the server pretty hard, so if
              your connection is reliable it  is good  to do expunges
              less frequently.  Also note that some servers enforce a
              delay of a few seconds after each quit, so fetchmail may
              not be able to get  back  in  immediately after an expunge
              -- you may see "lock busy" errors if this happens. If you
              specify this option to an integer N, it tells fetchmail to
(Continue reading)

Alexander Skwar | 4 Aug 2002 18:18
X-Face

[fetchmail] Re: Downloading Large -- Removing Small

So sprach SoloCDM am 2002-08-04 um 07:48:58 -0600 :
> Is the following legitimate?

Yes.

> 
> fetchmail -a -b 250 -B 250 -e 50
> 
> If not, please explain to me the difference between batchlimit and
> fetchlimit.

»batchlimit« sets a limit to the number of messages fetchmail sends to
your MTA.  If you're fetching 300 messages and you set the batchlimit to
250, fetchmail will initiate 2 connections to the MTA.  It will first
send 250 messages to the MTA and will then terminate the connection.
Next it will build up a new connection and send the remaining 50
messages.

»fetchlimit« sets a limit to the number of messages fetchmail will fetch
from the remote POP3/IMAP/... server.  If there are 300 messages waiting
for you at the POP3/IMAP/... server, it'll only download the first 250
messages.  On a subsequent call, it will download the remaining 50
messages (plus any new messages, but again no more than 250 messages).

So it doesn't make sense to set fetchlimit and batchlimit to the same
numbers, because the connection to the MTA will be terminated as soon as
the fetchlimit is reached.  This further means, that the batchlimit
should always be smaller than the fetchlimit, if you want to specify
both.

(Continue reading)


Gmane