[pkg-fetchmail-maint] fetchmail: bad-headers accept breaks correct lmtp behavior

Pfannenschmid, P. (Binarus) info at binarus.de
Sun Jun 30 10:40:21 UTC 2013


Matthias,

I have to apologize for my stupidity.

Looking again at the excerpt which was in my last Email (sse below), I now think that fetchmail's lmtp _partner_ (in my case cyrus-imapd) rejects the message with the bad headers (at least that's the way I am understanding "fetchmail: LMTP< 554 5.6.0 Message contains invalid header" - that is an INPUT to fetchmail, right?). Thus, to solve my problem, I guess I'd have to configure cyrus-imapd in a way that makes it accept messages with bad headers via lmtp.

But some questions remain:

Why does fetchmail try to deliver via SMTP after having got the reject from the lmtp partner?

And what does "Rewritten version is from ..." mean (by the way, in the first place, that line in the output led me to the assumption that fetchmail would rewrite (heal) the bad header somehow before forwarding the message, and therefore I didn't come to the idea that cyrus-imapd could actually be the cause of the problem).

Could you please explain in simple words what exactly is going on?

Best regards,

Peter Pfannenschmid



-------- Original Message --------

[...]

reading message user3 at static.88-198-34-253.clients.your-server.de:1 of 2 (7975 octets)About to rewrite From: Stephan Baerwolf <stephan.baerwolf at tu-ilmenau.de>...
...rewritten version is From: Stephan Baerwolf <stephan.baerwolf at tu-ilmenau.de>.
fetchmail: LMTP< 220 spock Cyrus LMTP v2.4.16-Debian-2.4.16-4+deb7u1 server ready
fetchmail: LMTP> LHLO spock.home.omeganet.de
fetchmail: LMTP< 250-spock
fetchmail: LMTP< 250-8BITMIME
fetchmail: LMTP< 250-ENHANCEDSTATUSCODES
fetchmail: LMTP< 250-PIPELINING
fetchmail: LMTP< 250-SIZE
fetchmail: LMTP< 250-AUTH EXTERNAL
fetchmail: LMTP< 250 IGNOREQUOTA
fetchmail: forwarding to /var/run/cyrus/socket/lmtp
fetchmail: LMTP> MAIL FROM:<stephan.baerwolf at tu-ilmenau.de> SIZE=7975
fetchmail: LMTP< 250 2.1.0 ok
fetchmail: LMTP> RCPT TO:<bin_user3 at localhost>
fetchmail: LMTP< 250 2.1.5 ok
fetchmail: LMTP> DATA
fetchmail: LMTP< 354 go ahead
fetchmail: LMTP>. (EOM)
fetchmail: LMTP< 554 5.6.0 Message contains invalid header
Trying to connect to 127.0.0.1/25...connection failed.
fetchmail: connection to localhost:smtp [127.0.0.1/25] failed: Connection refused.
Trying to connect to 127.0.0.1/25...connection failed.
fetchmail: connection to localhost:smtp [127.0.0.1/25] failed: Connection refused.
fetchmail: Connection errors for this poll:
name 0: connection to localhost:smtp [127.0.0.1/25] failed: Connection refused.
name 1: connection to localhost:smtp [127.0.0.1/25] failed: Connection refused.
   not flushed
fetchmail: POP3> LIST 2
fetchmail: POP3< +OK 2 7506
fetchmail: POP3> TOP 2 99999999
fetchmail: POP3< +OK

[...]



More information about the pkg-fetchmail-maint mailing list