aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/multidrop
blob: 37f87b4c6d815751680a8dbe7f504967a6f47c95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
From mlievaart@orion.nl  Mon Jan 10 10:46:33 2000
From: Martijn Lievaart <mlievaart@orion.nl>
To: Eric S. Raymond <esr@thyrsus.com>
Date: zondag 9 januari 2000 0:38
Subject: Re: Thanks for fetchmail and a solution to the multidrop problem (I
Status: O
Content-Length: 8086
Lines: 226

think)

Hello Eric,

Let me first state that I'm no sendmail nor unix guru, so although this
seems to work, I certainly would not say this is the "best" solution. In
fact I would welcome all comments to make this better. In particular, it
seems that that the mailertable feature was made just for this, but I'm
still studying that.

Also, This mail will have lines wrapped. I will put up this on a website
asap, so people can download the relevant portions. In the meantime, I'm
using (stuck on) Outlook, so I won't even attempt to format this mail.
Accept my apoligies and try to mentally reconnect the lines.

Finally, this mail is a bit lengthy, but I guess it is better to get all
information in, so please bear with me.

After some very frustrating attempts to get multidrop to work reliably, it
suddenly hit me. When sendmail has translated the recipient to the mailbox,
the recipient is gone (in the cases we're talking about). So the solution is
not to let sendmail do this translation (completely).

The trick is to let a custom MDA be called with both the mailbox and the
full recipient name. This MDA then just stuffs it in the correct mailbox
after adding the appropriate headers. Luckily I hit on the formail utility.
It reformats a mailmessage and does just what I wanted. Specifically my
script uses it to:
- add a custom header (default: "Delivered-To:") with the recipient
- rewrite the message-ID, so fetchmail will download the same message
multiple times.
- add another header, just for fun.

The rewriting of the message-ID is needed because fetchmail will suppress
multiple messages with the same ID, normally a good idea, but now it gets in
the way. A switch on fetchmail to suppress this behaviour would be great.

At first I hardcoded the domains in the sendmail.cf, but I quickly set out
to do one better and came up with the following solution. In sendmail.cf,
add the following line somewhere at the top.

Kmultidroptable hash -o /etc/mail/multidroptable

this defines a table for all domains we want to use multidrop for. The
format of this file is multiple lines of the format:
<domain>    <mailbox>

e.g:
mailtest.orion.nl       mailtest
mailtest2.orion.nl      mailtest
mailtest3.orion.nl      mailtest
bvh-communicatie.nl     b.bvh
krakatau.nl             b.bvh
personeelzaak.nl        b.bvh
maslowassociates.nl     b.bvh
rtij.nl                 rtij

Of course, create a .db file with makemap. Also, the domains must be added
to class w, so they should be added to your sendmail.cw or RelayTo file, or
whatever you use.

Now add to sendmail.cf:

R$+ < @ $* . >                          $: <MULTIDROP> $(multidroptable $2
$: <NO> $) <?> $1 < @ $2 . >
R<MULTIDROP> <NO> <?> $*                $: $1
R<MULTIDROP> $+ <?> $+ < @ $* . >       $#drop $@ $2 @ $3 $: $1

These lines should be above the existing lines that read:

# short circuit local delivery so forwarded email works
R$=L < @ $=w . >        $#local $: @ $1         special local names
R$+ < @ $=w . >         $#local $: $1                   regular local name

This works as follows (in fact these comments are above my modification in
our sendmail.cf).
#
# MLI. Any drop host gets passed to the drop script
#
# The first rule looks up the domain in the multidrop table.
# The input at this point is always:
#       user@<dom.ain.>
#  If found, the resulting line looks like this:
#       <MULTIDROP> mailbox <?> user@<dom.ain.>
# if not found, the resulting line will be:
#       <MULTIDROP> <NO> <?> user@<dom.ain.>
# The second line restores the "not found" case back to user@<dom.ain.>
# So if this domain was found in the multidroptable, we still have a line
starting with <MULTIDROP>
# as shown above. The third line hands this to the drop script.
#
# Note that the user ($:) is the mailbox this message should be stuffed in,
the host ($@) is the full
# user@<dom.ain>. This is how the dropscript expects it.
#

I guess sendmail guru's are now laughing their pants off, and I hope someone
will show me a better way to achieve this. For now, it works.

Next, we need to define mailer drop (somewhere in the sendmail.cf)

#
# multidrop pop3 support.
#

Mdrop,          P=/usr/local/bin/dropmail, F=lFS,
                T=X-Unix,
                A=dropmail $u $h

The S flag here is crucial, otherwise the dropmail script won't run as root,
and under linux (==bash) suid scripts are not permited. I gather most unices
now disalow suid scripts, so this would be necessary on most unices. There
probably are other flags that would make this better, but this works, so I
decided to divert my attention to other tasks at hand (busy, busy, busy....
;^>).

Now we only need the dropmail script, /usr/local/bin/dropmail, mode 700. It
looks big, but effectively one pipeline does the real work. The rest is
configuration, error checking and locking the mailbox.

#!/bin/bash

#
# Script to force a mail message in a format that fetchmail will recognise.
# use as a MDA from sendmail. Must be executed with F=S.
#

#
# Configuration:
#
maildir=/var/spool/mail
envelope=Delivered-To:

#
# set PATH to a known value to avoid some security issues
#
export PATH=/bin:/usr/bin

#
#
#
to=$2
user=$1
mbox=$maildir/$user

#
# If the mailbox does not exist, create it. Note that we act pretty
paranoid, this is hopefully
# resistant to symlink attacks
#
if [ ! -f $mbox ]
then
        oldumask=`umask`
        umask 077
        touch $mbox
        chmod 660 $mbox || exit 1
        chown $user $mbox || exit 1
        chgrp mail $mbox || exit 1
        umask $oldumask
fi

# First lock the mailbox, if this doesn't succeed in 64 seconds, give up and
send
# mail to postmaster.
# If this period is to short, increase the retries (-r flag to lockfile)
#
# Then run the message through formail to get it into the right mailbox
format with the
# right headers added.
#
# Delivered-To will make fetchmail propagate this mail to the correct user
when
# run with '-E "Delivered-To"'. Set this in the advanced settings of the
TeamInternet f.i.
# (if you changed the envelope at the start of this script, adapt this
accordingly)
#
# We also muck up the messageid, so fetchmail will never skip a message on
the basis of
# duplicate messageIDs. The -i "Message-ID" will rename the old message ID,
the -a will
# add a new one.
#
# Lastly, we add a header indicating which host did the rewriting.
#

if lockfile -r 8 $mbox.lock >/dev/null 2>&1
then
        cat - | formail -i "$envelope <$to>" -i "Message-ID:" -a
"Message-ID:" -i "X-Multidrop-Processing: <`hostname`>" >>$mbox
        rm -f $mbox.lock
else
        (echo "Subject: Cannot lock mailbox for $user" & cat -) |
/usr/lib/sendmail postmaster
fi

#
# EOF
#

This obviously is very Linux (even RedHat?) dependant, locking mailboxes,
creating mailboxes with the right permissions, probably even bash dependent.
I would say that it should be fairly easy to port to other systems, but
alas, my unix knowledge is lacking for that. I'll also rewrite it someday,
a.o. that umask handling can be done much better and the location of the
sendmail binairy should not be fixed.

Now the only thing left to do is to retrieve the mail with fetchmail, using
'envelope "Delivered-To:"' in the poll line. The above script has added this
line, so this is all that fetchmail needs.

All parts of this solution need carefull examination. In particular I think
the new rule lines may not catch all cases, although they worked for
everything I threw at them and work satisfactorily in production. I'm also
wondering if there is a more standard way to drop something in a mailbox. I
yet have to investigate procmail, but all other MDA's mucked with the
message and effectively undid my carefully added header. I'll experiment
some more and rethink it all as I learn more.

I'm still wondering, if I can get formail to include another received
line.... "Received from localhost by dropmail for <user>...." to make it
work without the envelope flag. Well I'll have to experiment. Do you know if
there is a header I can add so fetchmail works out-of-the-box?

Regards,
Martijn Lievaart
">type="text/css"> pre { white-space: pre-wrap; /* css-2.1, curent FF, Opera, Safari */ } </style> <META http-equiv="Content-Type" content="text/html; charset=us-ascii"> <LINK REL="Previous" HREF="000152.html"> <LINK REL="Next" HREF="000155.html"> </HEAD> <BODY BGCOLOR="#ffffff"> <H1>[fetchmail-devel] [BUG] fetchmail hangs during pop3 pull after a mail with a null char</H1> <B>David Greaves</B> <A HREF="mailto:fetchmail-devel%40lists.berlios.de?Subject=Re%3A%20%5Bfetchmail-devel%5D%20%5BBUG%5D%20fetchmail%20hangs%20during%20pop3%20pull%20after%20a%20mail%20with%20a%20null%20char&In-Reply-To=%3C416D2205.3040502%40dgreaves.com%3E" TITLE="[fetchmail-devel] [BUG] fetchmail hangs during pop3 pull after a mail with a null char">david at dgreaves.com </A><BR> <I>Wed Oct 13 14:39:33 CEST 2004</I> <P><UL> <LI>Previous message: <A HREF="000152.html">[fetchmail-devel] Not Yet Reviewed Queue is Empty! </A></li> <LI>Next message: <A HREF="000155.html">[fetchmail-devel] warning message charset fix: progress indicator 1/3. </A></li> <LI> <B>Messages sorted by:</B> <a href="date.html#154">[ date ]</a> <a href="thread.html#154">[ thread ]</a> <a href="subject.html#154">[ subject ]</a> <a href="author.html#154">[ author ]</a> </LI> </UL> <HR> <!--beginarticle--> <PRE>First : fetchmail is great - thanks :) I sent this to fetchmail-friends a while back and it was suggested that I send it to the devlist. I joined and lurked - and finally got round to sending this in... It's been working for years with these occasional hangs that have been fixed by popping the bad messages and manually filing them. I finally had a bad message arrive when I was in a position to debug! Summary : fetchmail hangs during pop3 pull after a mail with a null char. The mail with a null char is pulled OK but then rejected by local Cyrus lmtp and bounced to postmaster via exim4.20 The next pop3 pull then fails. I've made an effort to trace and I think the hang occurs due to a double call to SMTP_ok which is empty the second time. I am pretty sure the second call originates at sink.c line 1433. in the config expunge 1 fixes the problem (which makes sense) general config is pop3-&gt;lmtp-&gt;local Cyrus IMAP So I went through the FAQ G3 points: 1. OS: Linux RedHat 7.3 kernel 2.6.6 2. gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-110) 3. below 4. forwarding to lmtp listener on cyrus 2.2.3 (bounce goes to SMTP exim 4.2) 5. -v -v -f /etc/fetchmailrc 6. at the end nb: SMTP_ok loop start comments are my trace. Aug 17 17:33:01 willow fetchmail[13648]: 6.2.5 querying pop3.ukfsn.org (protocol POP3) at Tue 17 Aug 2004 05:33:01 PM BST: poll started Aug 17 17:33:01 willow fetchmail[13648]: POP3&lt; +OK &lt;<A HREF="https://lists.berlios.de/mailman/listinfo/fetchmail-devel">aa55cd0b5451bb3c3210dadaf2bf26b2 at pop3.ukfsn.org</A>&gt; Aug 17 17:33:01 willow fetchmail[13648]: POP3&gt; CAPA^M Aug 17 17:33:01 willow fetchmail[13648]: POP3&lt; +OK Capability list follows Aug 17 17:33:01 willow fetchmail[13648]: POP3&lt; PIPELINING Aug 17 17:33:01 willow fetchmail[13648]: POP3&lt; TOP Aug 17 17:33:01 willow fetchmail[13648]: POP3&lt; USER Aug 17 17:33:01 willow fetchmail[13648]: POP3&lt; UIDL Aug 17 17:33:01 willow fetchmail[13648]: POP3&lt; STLS Aug 17 17:33:01 willow fetchmail[13648]: POP3&lt; . Aug 17 17:33:01 willow fetchmail[13648]: POP3&gt; USER dgreaves^M Aug 17 17:33:01 willow fetchmail[13648]: POP3&lt; +OK Tell me your password. Aug 17 17:33:01 willow fetchmail[13648]: POP3&gt; PASS *^M Aug 17 17:33:02 willow fetchmail[13648]: POP3&lt; +OK Welcome aboard! You have 55 messages. Aug 17 17:33:05 willow fetchmail[13648]: POP3&gt; STAT Aug 17 17:33:05 willow fetchmail[13648]: POP3&lt; +OK 55 429607 Aug 17 17:33:05 willow fetchmail[13648]: 55 messages for dgreaves at pop3.ukfsn.org (429607 octets). fetchmailrc: set syslog set postmaster &quot;<A HREF="https://lists.berlios.de/mailman/listinfo/fetchmail-devel">david at dgreaves.com</A>&quot; set nobouncemail set properties &quot;&quot; #set daemon 180 set idfile /var/run/fetchmail.ids # The ukfsn accounts poll pop3.ukfsn.org with proto POP3 tracepolls ~ user 'dgreaves' there with password 'xxxxxxx' is <A HREF="https://lists.berlios.de/mailman/listinfo/fetchmail-devel">david at dgreaves.com</A> here options fetchall lmtp smtp /var/imap/socket/lmtp expunge 5 ~ antispam 571 550 501 554 &lt;more user accounts removed&gt; here is output from ~ ./fetchmail -v -v -f /etc/fetchmailrc Aug 17 17:43:33 willow fetchmail[13675]: 6.2.5 querying pop3.ukfsn.org (protocol POP3) at Tue 17 Aug 2004 05:43:33 PM BST: poll started Aug 17 17:43:33 willow fetchmail[13675]: POP3&lt; +OK &lt;<A HREF="https://lists.berlios.de/mailman/listinfo/fetchmail-devel">40b4ee38e8c2b8d6ea0b39ace1b3d5cd at pop3.ukfsn.org</A>&gt; Aug 17 17:43:33 willow fetchmail[13675]: POP3&gt; CAPA^M Aug 17 17:43:33 willow fetchmail[13675]: POP3&lt; +OK Capability list follows Aug 17 17:43:34 willow fetchmail[13675]: POP3&lt; PIPELINING Aug 17 17:43:34 willow fetchmail[13675]: POP3&lt; TOP Aug 17 17:43:34 willow fetchmail[13675]: POP3&lt; USER Aug 17 17:43:34 willow fetchmail[13675]: POP3&lt; UIDL Aug 17 17:43:34 willow fetchmail[13675]: POP3&lt; STLS Aug 17 17:43:34 willow fetchmail[13675]: POP3&lt; . Aug 17 17:43:34 willow fetchmail[13675]: POP3&gt; USER dgreaves^M Aug 17 17:43:34 willow fetchmail[13675]: POP3&lt; +OK Tell me your password. Aug 17 17:43:34 willow fetchmail[13675]: POP3&gt; PASS *^M Aug 17 17:43:34 willow fetchmail[13675]: POP3&lt; +OK Welcome aboard! You have 33 messages. Aug 17 17:43:37 willow fetchmail[13675]: selecting or re-polling default folder Aug 17 17:43:37 willow fetchmail[13675]: POP3&gt; STAT Aug 17 17:43:37 willow fetchmail[13675]: POP3&lt; +OK 33 186252 Aug 17 17:43:37 willow fetchmail[13675]: 33 messages for dgreaves at pop3.ukfsn.org (186252 octets). Aug 17 17:43:37 willow fetchmail[13675]: POP3&gt; LIST 1 #**********************************************Aug 17 17:43:37 willow fetchmail[13675]: POP3&lt; +OK 1 9060 Aug 17 17:43:37 willow fetchmail[13675]: POP3&gt; RETR 1 Aug 17 17:43:37 willow fetchmail[13675]: POP3&lt; +OK Message follows Aug 17 17:43:37 willow fetchmail[13675]: reading message <A HREF="https://lists.berlios.de/mailman/listinfo/fetchmail-devel">dgreaves at pop3.ukfsn.org</A>:1 of 33 (9060 octets) Aug 17 17:43:37 willow fetchmail[13675]: About to rewrite Return-Path: &lt;linux-kernel-owner+lkml=<A HREF="https://lists.berlios.de/mailman/listinfo/fetchmail-devel">40dgreaves.com-S268306AbUHQPkZ at vger.kernel.org</A>&gt;^M Rewritten version is Return-Path: &lt;linux-kernel-owner+lkml=<A HREF="https://lists.berlios.de/mailman/listinfo/fetchmail-devel">40dgreaves.com-S268306AbUHQPkZ at vger.kernel.org</A>&gt;^M Aug 17 17:43:38 willow fetchmail[13675]: About to rewrite From: &quot;O.Sezer&quot; &lt;<A HREF="https://lists.berlios.de/mailman/listinfo/fetchmail-devel">sezeroz at ttnet.net.tr</A>&gt;^M Rewritten version is From: &quot;O.Sezer&quot; &lt;<A HREF="https://lists.berlios.de/mailman/listinfo/fetchmail-devel">sezeroz at ttnet.net.tr</A>&gt;^M Aug 17 17:43:38 willow fetchmail[13675]: About to rewrite To: <A HREF="https://lists.berlios.de/mailman/listinfo/fetchmail-devel">linux-kernel at vger.kernel.org</A>^M Rewritten version is To: <A HREF="https://lists.berlios.de/mailman/listinfo/fetchmail-devel">linux-kernel at vger.kernel.org</A>^M Aug 17 17:43:38 willow fetchmail[13675]: About to rewrite Cc: <A HREF="https://lists.berlios.de/mailman/listinfo/fetchmail-devel">marcelo.tosatti at cyclades.com</A>^M Rewritten version is Cc: <A HREF="https://lists.berlios.de/mailman/listinfo/fetchmail-devel">marcelo.tosatti at cyclades.com</A>^M Aug 17 17:43:38 willow fetchmail[13675]: About to rewrite Sender: <A HREF="https://lists.berlios.de/mailman/listinfo/fetchmail-devel">linux-kernel-owner at vger.kernel.org</A>^M Rewritten version is Sender: <A HREF="https://lists.berlios.de/mailman/listinfo/fetchmail-devel">linux-kernel-owner at vger.kernel.org</A>^M Aug 17 17:43:38 willow fetchmail[13675]: SMTP_ok loop start Aug 17 17:43:38 willow fetchmail[13675]: LMTP&lt; 220 willow LMTP Cyrus v2.2.3 ready Aug 17 17:43:38 willow fetchmail[13675]: LMTP&gt; LHLO localhost Aug 17 17:43:38 willow fetchmail[13675]: SMTP&lt; 250-willow Aug 17 17:43:38 willow fetchmail[13675]: SMTP&lt; 250-8BITMIME Aug 17 17:43:38 willow fetchmail[13675]: SMTP&lt; 250-ENHANCEDSTATUSCODES Aug 17 17:43:38 willow fetchmail[13675]: SMTP&lt; 250-PIPELINING Aug 17 17:43:38 willow fetchmail[13675]: SMTP&lt; 250-SIZE Aug 17 17:43:38 willow fetchmail[13675]: SMTP&lt; 250-AUTH EXTERNAL Aug 17 17:43:38 willow fetchmail[13675]: SMTP&lt; 250 IGNOREQUOTA Aug 17 17:43:38 willow fetchmail[13675]: forwarding to /var/imap/socket/lmtp Aug 17 17:43:38 willow fetchmail[13675]: LMTP&gt; MAIL FROM:&lt;linux-kernel-owner+lkml=<A HREF="https://lists.berlios.de/mailman/listinfo/fetchmail-devel">40dgreaves.com-S268306AbUHQPkZ at vger.kernel.org</A>&gt; SIZE=9060 Aug 17 17:43:38 willow fetchmail[13675]: SMTP_ok loop start Aug 17 17:43:38 willow fetchmail[13675]: LMTP&lt; 250 2.1.0 ok Aug 17 17:43:38 willow fetchmail[13675]: LMTP&gt; RCPT TO:&lt;<A HREF="https://lists.berlios.de/mailman/listinfo/fetchmail-devel">david at dgreaves.com</A>&gt; Aug 17 17:43:38 willow fetchmail[13675]: SMTP_ok loop start Aug 17 17:43:38 willow fetchmail[13675]: LMTP&lt; 250 2.1.5 ok Aug 17 17:43:38 willow fetchmail[13675]: LMTP&gt; DATA Aug 17 17:43:38 willow fetchmail[13675]: SMTP_ok loop start Aug 17 17:43:38 willow fetchmail[13675]: LMTP&lt; 354 go ahead ********************************************************************************************************************************************************************Aug 17 17:43:38 willow fetchmail[13675]: message <A HREF="https://lists.berlios.de/mailman/listinfo/fetchmail-devel">dgreaves at pop3.ukfsn.org</A>:1 was not the expected length (9317 actual != 9060 expected) Aug 17 17:43:38 willow fetchmail[13675]: LMTP&gt;. (EOM) Aug 17 17:43:38 willow fetchmail[13675]: SMTP_ok loop start Aug 17 17:43:38 willow fetchmail[13675]: LMTP&lt; 250 2.1.5 Ok Aug 17 17:43:38 willow fetchmail[13675]: flushed Aug 17 17:43:38 willow fetchmail[13675]: POP3&gt; DELE 1^M Aug 17 17:43:38 willow fetchmail[13675]: POP3&lt; +OK Done. Aug 17 17:43:38 willow fetchmail[13675]: POP3&gt; LIST 2 Aug 17 17:43:38 willow fetchmail[13675]: POP3&lt; +OK 2 5098 Aug 17 17:43:38 willow fetchmail[13675]: POP3&gt; RETR 2 Aug 17 17:43:39 willow fetchmail[13675]: POP3&lt; +OK Message follows Aug 17 17:43:39 willow fetchmail[13675]: reading message <A HREF="https://lists.berlios.de/mailman/listinfo/fetchmail-devel">dgreaves at pop3.ukfsn.org</A>:2 of 33 (5098 octets) Aug 17 17:43:39 willow fetchmail[13675]: About to rewrite Return-Path: &lt;linux-kernel-owner+lkml=<A HREF="https://lists.berlios.de/mailman/listinfo/fetchmail-devel">40dgreaves.com-S268293AbUHQPhg at vger.kernel.org</A>&gt;^M Rewritten version is Return-Path: &lt;linux-kernel-owner+lkml=<A HREF="https://lists.berlios.de/mailman/listinfo/fetchmail-devel">40dgreaves.com-S268293AbUHQPhg at vger.kernel.org</A>&gt;^M #****************************************************************Aug 17 17:43:39 willow fetchmail[13675]: About to rewrite From: Christoph Hellwig &lt;<A HREF="https://lists.berlios.de/mailman/listinfo/fetchmail-devel">hch at infradead.org</A>&gt;^M Rewritten version is From: Christoph Hellwig &lt;<A HREF="https://lists.berlios.de/mailman/listinfo/fetchmail-devel">hch at infradead.org</A>&gt;^M Aug 17 17:43:39 willow fetchmail[13675]: About to rewrite To: Markus Lidel &lt;<A HREF="https://lists.berlios.de/mailman/listinfo/fetchmail-devel">Markus.Lidel at shadowconnect.com</A>&gt;^M Rewritten version is To: Markus Lidel &lt;<A HREF="https://lists.berlios.de/mailman/listinfo/fetchmail-devel">Markus.Lidel at shadowconnect.com</A>&gt;^M Aug 17 17:43:39 willow fetchmail[13675]: About to rewrite Cc: Christoph Hellwig &lt;<A HREF="https://lists.berlios.de/mailman/listinfo/fetchmail-devel">hch at infradead.org</A>&gt;,^M ^IWarren Togami &lt;<A HREF="https://lists.berlios.de/mailman/listinfo/fetchmail-devel">wtogami at redhat.com</A>&gt;, <A HREF="https://lists.berlios.de/mailman/listinfo/fetchmail-devel">linux-kernel at vger.kernel.org</A>^M Rewritten version is Cc: Christoph Hellwig &lt;<A HREF="https://lists.berlios.de/mailman/listinfo/fetchmail-devel">hch at infradead.org</A>&gt;,^M ^IWarren Togami &lt;<A HREF="https://lists.berlios.de/mailman/listinfo/fetchmail-devel">wtogami at redhat.com</A>&gt;, <A HREF="https://lists.berlios.de/mailman/listinfo/fetchmail-devel">linux-kernel at vger.kernel.org</A>^M Aug 17 17:43:39 willow fetchmail[13675]: About to rewrite Sender: <A HREF="https://lists.berlios.de/mailman/listinfo/fetchmail-devel">linux-kernel-owner at vger.kernel.org</A>^M Rewritten version is Sender: <A HREF="https://lists.berlios.de/mailman/listinfo/fetchmail-devel">linux-kernel-owner at vger.kernel.org</A>^M Aug 17 17:43:39 willow fetchmail[13675]: forwarding to /var/imap/socket/lmtp Aug 17 17:43:39 willow fetchmail[13675]: LMTP&gt; MAIL FROM:&lt;linux-kernel-owner+lkml=<A HREF="https://lists.berlios.de/mailman/listinfo/fetchmail-devel">40dgreaves.com-S268293AbUHQPhg at vger.kernel.org</A>&gt; SIZE=5098 Aug 17 17:43:39 willow fetchmail[13675]: SMTP_ok loop start Aug 17 17:43:39 willow fetchmail[13675]: LMTP&lt; 250 2.1.0 ok Aug 17 17:43:39 willow fetchmail[13675]: LMTP&gt; RCPT TO:&lt;<A HREF="https://lists.berlios.de/mailman/listinfo/fetchmail-devel">david at dgreaves.com</A>&gt; Aug 17 17:43:39 willow fetchmail[13675]: SMTP_ok loop start Aug 17 17:43:39 willow fetchmail[13675]: LMTP&lt; 250 2.1.5 ok Aug 17 17:43:39 willow fetchmail[13675]: LMTP&gt; DATA Aug 17 17:43:39 willow fetchmail[13675]: SMTP_ok loop start Aug 17 17:43:39 willow fetchmail[13675]: LMTP&lt; 354 go ahead Aug 17 17:43:39 willow fetchmail[13675]: message <A HREF="https://lists.berlios.de/mailman/listinfo/fetchmail-devel">dgreaves at pop3.ukfsn.org</A>:2 was not the expected length (5209 actual != 5098 expected) Aug 17 17:43:39 willow fetchmail[13675]: LMTP&gt;. (EOM) Aug 17 17:43:39 willow fetchmail[13675]: SMTP_ok loop start Aug 17 17:43:39 willow fetchmail[13675]: LMTP&lt; 250 2.1.5 Ok Aug 17 17:43:39 willow fetchmail[13675]: flushed Aug 17 17:43:39 willow fetchmail[13675]: POP3&gt; DELE 2^M Aug 17 17:43:39 willow fetchmail[13675]: POP3&lt; +OK Done. Aug 17 17:43:39 willow fetchmail[13675]: POP3&gt; LIST 3 Aug 17 17:43:39 willow fetchmail[13675]: POP3&lt; +OK 3 2147 Aug 17 17:43:39 willow fetchmail[13675]: POP3&gt; RETR 3 Aug 17 17:43:40 willow fetchmail[13675]: POP3&lt; +OK Message follows Aug 17 17:43:40 willow fetchmail[13675]: reading message <A HREF="https://lists.berlios.de/mailman/listinfo/fetchmail-devel">dgreaves at pop3.ukfsn.org</A>:3 of 33 (2147 octets) Aug 17 17:43:40 willow fetchmail[13675]: About to rewrite Return-Path: &lt;reiserfs-list-return-20355-david=<A HREF="https://lists.berlios.de/mailman/listinfo/fetchmail-devel">dgreaves.com at namesys.com</A>&gt;^M Rewritten version is Return-Path: &lt;reiserfs-list-return-20355-david=<A HREF="https://lists.berlios.de/mailman/listinfo/fetchmail-devel">dgreaves.com at namesys.com</A>&gt;^M #********#****************************Aug 17 17:43:40 willow fetchmail[13675]: About to rewrite From: elliott &lt;<A HREF="https://lists.berlios.de/mailman/listinfo/fetchmail-devel">aurelius at sesmail.com</A>&gt;^M Rewritten version is From: elliott &lt;<A HREF="https://lists.berlios.de/mailman/listinfo/fetchmail-devel">aurelius at sesmail.com</A>&gt;^M Aug 17 17:43:40 willow fetchmail[13675]: About to rewrite To: <A HREF="https://lists.berlios.de/mailman/listinfo/fetchmail-devel">reiserfs-list at namesys.com</A>^M Rewritten version is To: <A HREF="https://lists.berlios.de/mailman/listinfo/fetchmail-devel">reiserfs-list at namesys.com</A>^M Aug 17 17:43:40 willow fetchmail[13675]: forwarding to /var/imap/socket/lmtp Aug 17 17:43:40 willow fetchmail[13675]: LMTP&gt; MAIL FROM:&lt;reiserfs-list-return-20355-david=<A HREF="https://lists.berlios.de/mailman/listinfo/fetchmail-devel">dgreaves.com at namesys.com</A>&gt; BODY=8BITMIME SIZE=2147 Aug 17 17:43:40 willow fetchmail[13675]: SMTP_ok loop start Aug 17 17:43:40 willow fetchmail[13675]: LMTP&lt; 250 2.1.0 ok Aug 17 17:43:40 willow fetchmail[13675]: LMTP&gt; RCPT TO:&lt;<A HREF="https://lists.berlios.de/mailman/listinfo/fetchmail-devel">david at dgreaves.com</A>&gt; Aug 17 17:43:40 willow fetchmail[13675]: SMTP_ok loop start Aug 17 17:43:40 willow fetchmail[13675]: LMTP&lt; 250 2.1.5 ok Aug 17 17:43:40 willow fetchmail[13675]: LMTP&gt; DATA Aug 17 17:43:40 willow fetchmail[13675]: SMTP_ok loop start Aug 17 17:43:40 willow fetchmail[13675]: LMTP&lt; 354 go ahead Aug 17 17:43:40 willow fetchmail[13675]: message <A HREF="https://lists.berlios.de/mailman/listinfo/fetchmail-devel">dgreaves at pop3.ukfsn.org</A>:3 was not the expected length (2194 actual != 2147 expected) Aug 17 17:43:40 willow fetchmail[13675]: LMTP&gt;. (EOM) Aug 17 17:43:40 willow fetchmail[13675]: SMTP_ok loop start Aug 17 17:43:40 willow fetchmail[13675]: LMTP&lt; 554 5.6.0 Message contains NUL characters Aug 17 17:43:40 willow fetchmail[13675]: SMTP_ok loop start Aug 17 17:43:40 willow fetchmail[13675]: SMTP&lt; 220 willow ESMTP Exim 4.20 Tue, 17 Aug 2004 17:43:40 +0100 Aug 17 17:43:40 willow fetchmail[13675]: SMTP&gt; HELO localhost Aug 17 17:43:40 willow fetchmail[13675]: SMTP_ok loop start Aug 17 17:43:40 willow fetchmail[13675]: SMTP&lt; 250 willow Hello [AdFSF0x5m0a0vDWoZf1oPXMI8ichzbi7] at localhost.localdomain [127.0.0.1] Aug 17 17:43:40 willow fetchmail[13675]: SMTP&gt; MAIL FROM:&lt;<A HREF="https://lists.berlios.de/mailman/listinfo/fetchmail-devel">FETCHMAIL-DAEMON at willow.dgreaves.com</A>&gt; Aug 17 17:43:40 willow fetchmail[13675]: SMTP_ok loop start Aug 17 17:43:40 willow fetchmail[13675]: SMTP&lt; 250 OK Aug 17 17:43:40 willow fetchmail[13675]: SMTP&gt; RCPT TO:&lt;<A HREF="https://lists.berlios.de/mailman/listinfo/fetchmail-devel">david at dgreaves.com</A>&gt; Aug 17 17:43:40 willow fetchmail[13675]: SMTP_ok loop start Aug 17 17:43:40 willow fetchmail[13675]: SMTP&lt; 250 Accepted Aug 17 17:43:40 willow fetchmail[13675]: SMTP&gt; DATA Aug 17 17:43:40 willow fetchmail[13675]: SMTP_ok loop start Aug 17 17:43:40 willow fetchmail[13675]: SMTP&lt; 354 Enter message, ending with &quot;.&quot; on a line by itself Aug 17 17:43:40 willow fetchmail[13675]: SMTP: (bounce-message body) Aug 17 17:43:40 willow fetchmail[13675]: SMTP&gt;. (EOM) Aug 17 17:43:40 willow fetchmail[13675]: SMTP_ok loop start Aug 17 17:43:40 willow fetchmail[13675]: SMTP&lt; 250 OK id=1Bx73k-0003Ya-FK Aug 17 17:43:40 willow fetchmail[13675]: SMTP&gt; QUIT Aug 17 17:43:40 willow fetchmail[13675]: SMTP_ok loop start Aug 17 17:43:40 willow fetchmail[13675]: SMTP&lt; 221 willow closing connection Aug 17 17:43:40 willow fetchmail[13675]: flushed Aug 17 17:43:40 willow fetchmail[13675]: POP3&gt; DELE 3^M Aug 17 17:43:40 willow fetchmail[13675]: POP3&lt; +OK Done. Aug 17 17:43:40 willow fetchmail[13675]: POP3&gt; LIST 4 Aug 17 17:43:40 willow fetchmail[13675]: POP3&lt; +OK 4 4406 Aug 17 17:43:40 willow fetchmail[13675]: POP3&gt; RETR 4 Aug 17 17:43:40 willow fetchmail[13675]: POP3&lt; +OK Message follows Aug 17 17:43:40 willow fetchmail[13675]: reading message <A HREF="https://lists.berlios.de/mailman/listinfo/fetchmail-devel">dgreaves at pop3.ukfsn.org</A>:4 of 33 (4406 octets) Aug 17 17:43:41 willow fetchmail[13675]: About to rewrite Return-Path: &lt;<A HREF="https://lists.berlios.de/mailman/listinfo/fetchmail-devel">netdev-bounce at oss.sgi.com</A>&gt;^M Rewritten version is Return-Path: &lt;<A HREF="https://lists.berlios.de/mailman/listinfo/fetchmail-devel">netdev-bounce at oss.sgi.com</A>&gt;^M Aug 17 17:43:41 willow fetchmail[13675]: About to rewrite From: Wensong Zhang &lt;<A HREF="https://lists.berlios.de/mailman/listinfo/fetchmail-devel">wensong at linux-vs.org</A>&gt;^M Rewritten version is From: Wensong Zhang &lt;<A HREF="https://lists.berlios.de/mailman/listinfo/fetchmail-devel">wensong at linux-vs.org</A>&gt;^M Aug 17 17:43:41 willow fetchmail[13675]: About to rewrite To: <A HREF="https://lists.berlios.de/mailman/listinfo/fetchmail-devel">netdev at oss.sgi.com</A>^M Rewritten version is To: <A HREF="https://lists.berlios.de/mailman/listinfo/fetchmail-devel">netdev at oss.sgi.com</A>^M Aug 17 17:43:41 willow fetchmail[13675]: About to rewrite Cc: Julian Anastasov &lt;<A HREF="https://lists.berlios.de/mailman/listinfo/fetchmail-devel">ja at ssi.bg</A>&gt;^M Rewritten version is Cc: Julian Anastasov &lt;<A HREF="https://lists.berlios.de/mailman/listinfo/fetchmail-devel">ja at ssi.bg</A>&gt;^M Aug 17 17:43:41 willow fetchmail[13675]: About to rewrite Sender: <A HREF="https://lists.berlios.de/mailman/listinfo/fetchmail-devel">netdev-bounce at oss.sgi.com</A>^M Rewritten version is Sender: <A HREF="https://lists.berlios.de/mailman/listinfo/fetchmail-devel">netdev-bounce at oss.sgi.com</A>^M Aug 17 17:43:41 willow fetchmail[13675]: forwarding to /var/imap/socket/lmtp Aug 17 17:43:41 willow fetchmail[13675]: SMTP&gt; MAIL FROM:&lt;<A HREF="https://lists.berlios.de/mailman/listinfo/fetchmail-devel">netdev-bounce at oss.sgi.com</A>&gt; SIZE=4406 Aug 17 17:43:41 willow fetchmail[13675]: SMTP_ok loop start Aug 17 17:43:41 willow fetchmail[13675]: SMTP&lt; 250 2.1.0 ok Aug 17 17:43:41 willow fetchmail[13675]: SMTP&gt; RCPT TO:&lt;<A HREF="https://lists.berlios.de/mailman/listinfo/fetchmail-devel">david at dgreaves.com</A>&gt; Aug 17 17:43:41 willow fetchmail[13675]: SMTP_ok loop start Aug 17 17:43:41 willow fetchmail[13675]: SMTP&lt; 250 2.1.5 ok Aug 17 17:43:41 willow fetchmail[13675]: SMTP&gt; DATA Aug 17 17:43:41 willow fetchmail[13675]: SMTP_ok loop start Aug 17 17:43:41 willow fetchmail[13675]: SMTP&lt; 354 go ahead *******************************************************Aug 17 17:43:41 willow fetchmail[13675]: message <A HREF="https://lists.berlios.de/mailman/listinfo/fetchmail-devel">dgreaves at pop3.ukfsn.org</A>:4 was not the expected length (4533 actual != 4406 expected) Aug 17 17:43:41 willow fetchmail[13675]: SMTP&gt;. (EOM) Aug 17 17:43:41 willow fetchmail[13675]: SMTP_ok loop start Aug 17 17:43:41 willow fetchmail[13675]: SMTP&lt; 250 2.1.5 Ok ## 5 minute hang Aug 17 17:48:41 willow fetchmail[13675]: smtp listener protocol error 2 Aug 17 17:48:41 willow fetchmail[13675]: not flushed Aug 17 17:48:41 willow fetchmail[13675]: POP3&gt; LIST 5 Aug 17 17:48:41 willow fetchmail[13675]: POP3&lt; -ERR Client has been idle for too long. Aug 17 17:48:41 willow fetchmail[13675]: Client has been idle for too long. Aug 17 17:48:41 willow fetchmail[13675]: POP3&gt; QUIT^M Aug 17 17:48:41 willow fetchmail[13675]: client/server protocol error while fetching from pop3.ukfsn.org Aug 17 17:48:41 willow fetchmail[13675]: 6.2.5 querying pop3.ukfsn.org (protocol POP3) at Tue 17 Aug 2004 05:48:41 PM BST: poll completed Aug 17 17:48:41 willow fetchmail[13675]: Query status=4 (PROTOCOL) # ./fetchmail -V -v -v -f /etc/fetchmailrc This is fetchmail release 6.2.5+NLS Fallback MDA: (none) Linux willow 2.6.6 #1 Wed Jun 2 12:15:21 BST 2004 i586 unknown Taking options from command line and /etc/fetchmailrc Idfile is /var/run/fetchmail.ids Progress messages will be logged via syslog Fetchmail will show progress dots even in logfiles. Fetchmail will forward misaddressed multidrop messages to <A HREF="https://lists.berlios.de/mailman/listinfo/fetchmail-devel">david at dgreaves.com.</A> Fetchmail will direct error mail to the postmaster. Options for retrieving from <A HREF="https://lists.berlios.de/mailman/listinfo/fetchmail-devel">dgreaves at pop3.ukfsn.org</A>: ~ True name of server is pop3.ukfsn.org. ~ This host will be queried when no host is specified. ~ Password = &quot;xxxxxx&quot;. ~ Protocol is POP3 (using default port). ~ All available authentication methods will be tried. ~ Server nonresponse timeout is 300 seconds (default). ~ Default mailbox selected. ~ All messages will be retrieved (--all on). ~ Fetched messages will not be kept on the server (--keep off). ~ Old messages will not be flushed before message retrieval (--flush off). ~ Rewrite of server-local addresses is enabled (--norewrite off). ~ Carriage-return stripping is disabled (stripcr off). ~ Carriage-return forcing is disabled (forcecr off). ~ Interpretation of Content-Transfer-Encoding is enabled (pass8bits off). ~ MIME decoding is disabled (mimedecode off). ~ Idle after poll is disabled (idle off). ~ Nonempty Status lines will be kept (dropstatus off) ~ Delivered-To lines will be kept (dropdelivered off) ~ No received-message limit (--fetchlimit 0). ~ Fetch message size limit is 100 (--fetchsizelimit 100). ~ Do binary search of UIDs during 9 out of 10 polls (--fastuidl 10). ~ No SMTP message batch limit (--batchlimit 0). ~ Deletion interval between expunges forced to 5 (--expunge 5). ~ Messages will be LMTP-forwarded to: /var/imap/socket/lmtp ~ Recognized listener spam block responses are: 571 550 501 554 ~ No pre-connection command. ~ No post-connection command. ~ Single-drop mode: 1 local name(s) recognized. ~ <A HREF="https://lists.berlios.de/mailman/listinfo/fetchmail-devel">david at dgreaves.com</A> ~ No interface requirement specified. ~ No monitor interface specified. ~ No plugin command specified. ~ No plugout command specified. ~ 1 UIDs saved. ~ 0bcc1e7633bb91ec04fbf4e1505b377d ~ Poll trace information will be added to the Received header. other account info removed David Greaves </PRE> <!--endarticle--> <HR> <P><UL> <!--threads--> <LI>Previous message: <A HREF="000152.html">[fetchmail-devel] Not Yet Reviewed Queue is Empty! </A></li> <LI>Next message: <A HREF="000155.html">[fetchmail-devel] warning message charset fix: progress indicator 1/3. </A></li> <LI> <B>Messages sorted by:</B> <a href="date.html#154">[ date ]</a> <a href="thread.html#154">[ thread ]</a> <a href="subject.html#154">[ subject ]</a> <a href="author.html#154">[ author ]</a> </LI> </UL> <hr> <a href="https://lists.berlios.de/mailman/listinfo/fetchmail-devel">More information about the fetchmail-devel mailing list</a><br> </body></html>