fetchmail-friends
[Top] [All Lists]

[fetchmail]SMTP "MAIL FROM" using multi-line "From:" header

2001-05-30 07:56:35
The problem I'm experiencing is that on some emails fetchmail uses the "From:"
message header as the SMTP "MAIL FROM".  Should this header be split over
multiple lines, the SMTP listener will get a multiline "MAIL FROM", and hence
get confused.  What's worse is that the offending email is never delivered
locally in any shape or form, although it is removed from the remote server.

Furthermore, version 5.3.* of fetchmail would also occasionally segfault
intermittently when it encountered this special case.  I just upgraded to
5.8.4, and haven't seen a segfault yet.

I attach one such problematic email message at the end.  Here's 
the relevant excerpt of "fetchmail -v" for this email:

1 message for mac at postbox.cs.toronto.edu.
fetchmail: IMAP> A0005 FETCH 1 RFC822.SIZE
fetchmail: IMAP< * 1 FETCH (RFC822.SIZE 2280)
fetchmail: IMAP< A0005 OK FETCH completed
fetchmail: IMAP> A0006 FETCH 1 RFC822.HEADER
fetchmail: IMAP< * 1 FETCH (RFC822.HEADER {950}
reading message 1 of 1 (950 header octets)
fetchmail: SMTP< 220 cr51447-a.ym1.on.wave.home.com ESMTP Postfix
fetchmail: SMTP> EHLO localhost
fetchmail: SMTP< 250-cr51447-a.ym1.on.wave.home.com
fetchmail: SMTP< 250-PIPELINING
fetchmail: SMTP< 250-SIZE 10240000
fetchmail: SMTP< 250-ETRN
fetchmail: SMTP< 250 8BITMIME
fetchmail: SMTP> MAIL FROM:<LISTSERV(_at_)LISTS(_dot_)
        SECURITYFOCUS.COM> SIZE=2280
fetchmail: SMTP< 501 Bad address syntax
fetchmail: SMTP> RSET
fetchmail: SMTP< 502 Error: command not implemented

fetchmail: IMAP< )
fetchmail: IMAP< A0006 OK FETCH completed
 flushed
fetchmail: IMAP> A0007 STORE 1 +FLAGS (\Seen \Deleted)
fetchmail: IMAP< * 1 FETCH (FLAGS (\Seen \Deleted))
fetchmail: IMAP< A0007 OK STORE completed
fetchmail: IMAP> A0008 EXPUNGE
fetchmail: IMAP< * 1 EXPUNGE
fetchmail: IMAP< * 0 EXISTS
fetchmail: IMAP< * 0 RECENT
fetchmail: IMAP< A0008 OK Expunged 1 messages


Here's the important info:

OS:             Linux 2.2.19
fetchmail:      fetchmail-ssl_5.8.4-1_i386.deb from Debian
IMAP greet:     fetchmail: IMAP< * OK localhost IMAP4rev1 v12.264 server ready
SMTP listener:  Postfix snapshot-20010202
cmd:            "fetchmail -d 300"
fetchmail -V:

This is fetchmail release 5.8.4+NTLM+SDPS+SSL+NLS
Linux khazad-dum 2.2.19 #2 Mon Apr 16 01:13:50 EDT 2001 i686 unknown
Taking options from command line and /home/mac/.fetchmailrc
Poll interval is 300 seconds
Idfile is /home/mac/.fetchids
Fetchmail will forward misaddressed multidrop messages to mac.
Options for retrieving from mac(_at_)mail(_dot_)dgp(_dot_)toronto(_dot_)edu:
  True name of server is mail.dgp.toronto.edu.
  Protocol is IMAP.
  All available authentication methods will be tried.
  SSL encrypted sessions enabled.
  Server nonresponse timeout is 300 seconds (default).
  Default mailbox selected.
  Only new messages will be retrieved (--all off).
  Fetched messages will be kept on the server (--keep on).
  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)
  Messages will be SMTP-forwarded to: localhost (default)
  Host part of MAIL FROM line will be khazad-dum
  Recognized listener spam block responses are: 571 550 501 554
  Single-drop mode: 1 local name(s) recognized.
  Connection must be through interface eth0/24.43.0.0/255.255.0.0.
  No UIDs saved from this host.
Options for retrieving from mac(_at_)imap(_dot_)cs(_dot_)toronto(_dot_)edu:
  True name of server is postbox.cs.toronto.edu.
  Protocol is IMAP.
  All available authentication methods will be tried.
  SSL encrypted sessions enabled.
  Server nonresponse timeout is 300 seconds (default).
  Default mailbox selected.
  Only new messages will be retrieved (--all off).
  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)
  Messages will be SMTP-forwarded to: localhost (default)
  Host part of MAIL FROM line will be khazad-dum
  Recognized listener spam block responses are: 571 550 501 554
  Single-drop mode: 1 local name(s) recognized.
  Connection must be through interface eth0/24.43.0.0/255.255.0.0.
  No UIDs saved from this host.
Options for retrieving from 
mkalisiak(_at_)mail(_dot_)yec1(_dot_)on(_dot_)wave(_dot_)home(_dot_)com:
  Poll of this server will occur every 10 intervals.
  True name of server is femail.on.wave.home.com.
  Protocol is POP3.
  All available authentication methods will be tried.
  Server nonresponse timeout is 300 seconds (default).
  Default mailbox selected.
  Only new messages will be retrieved (--all off).
  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)
  Messages will be SMTP-forwarded to: localhost (default)
  Host part of MAIL FROM line will be khazad-dum
  Recognized listener spam block responses are: 571 550 501 554
  Single-drop mode: 1 local name(s) recognized.
  Connection must be through interface eth0/24.43.0.0/255.255.0.0.
  No UIDs saved from this host.
Options for retrieving from 
maciej-kalisiak(_at_)mail(_dot_)yec1(_dot_)on(_dot_)wave(_dot_)home(_dot_)com:
  Poll of this server will occur every 10 intervals.
  True name of server is femail.on.wave.home.com.
  Protocol is POP3.
  All available authentication methods will be tried.
  Server nonresponse timeout is 300 seconds (default).
  Default mailbox selected.
  Only new messages will be retrieved (--all off).
  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)
  Messages will be SMTP-forwarded to: localhost (default)
  Host part of MAIL FROM line will be khazad-dum
  Recognized listener spam block responses are: 571 550 501 554
  Single-drop mode: 1 local name(s) recognized.
  Connection must be through interface eth0/24.43.0.0/255.255.0.0.
  No UIDs saved from this host.

-- 
Maciej Kalisiak|mac(_at_)] "The trouble with doing something right the first 
time
dgp.toronto.edu|www.]  is that nobody appreciates how difficult it was."
dgp.toronto.edu/~mac]  


<Prev in Thread] Current Thread [Next in Thread>