[Dovecot] No 'from' in messages
Hi all,
Over the weekend, we've migrated our old mail environment to Sendmail and Dovecot:
- Dovecot 1.0 stable
- Sendmail 8.13.3
- Procmail 3.22
Procmail is MDA for Sendmail and it delivers mail to Maildir boxes. Email clients like Eudora, Thunderbird, Outlook and mutt are working OK. When using Outlook Express and Pine however, in the message list the 'from' or 'sender' field is empty. This means users of these programs cannot see who did send the mail to them.
When running Dovecot 0.99 in a early test period, this problem did not occur.
Question: Did anyone see this behaviour before and how to fix it?
Best regards, Remy Zandwijk
On Tue, 2005-03-01 at 20:57 +0100, Remy Zandwijk wrote:
Procmail is MDA for Sendmail and it delivers mail to Maildir boxes. Email clients like Eudora, Thunderbird, Outlook and mutt are working OK. When using Outlook Express and Pine however, in the message list the 'from' or 'sender' field is empty. This means users of these programs cannot see who did send the mail to them.
When running Dovecot 0.99 in a early test period, this problem did not occur.
This sounds like the new message address parser behaves differently with some messages. Pine (and apparently OE) is using FETCH ENVELOPE command to get the sender, while others fetch and parse the headers themselves.
With a few tests I didn't notice any problems though.. Does that happen with all emails? Does it matter if you delete dovecot.index.cache file for the mailbox? Could you look at the ENVELOPE reply if it contains the sender? (http://dovecot.org/bugreport.html#sniffing)
Timo,
With a few tests I didn't notice any problems though.. Does that happen with all emails? Does it matter if you delete dovecot.index.cache file for the mailbox? Could you look at the ENVELOPE reply if it contains the sender? (http://dovecot.org/bugreport.html#sniffing)
It does happen with all emails and it happens with the cache file deleted (as matter of fact, I deleted the entire maildir directory and created a fresh one, delivered mail to it and started OE).
I used Ethereal to sniff the connection to Dovecot. The EVELOPE command is:
ENVELOPE ("Fri, 4 Mar 2005 10:16:24 +0100" "Test" NIL NIL NIL NIL NIL NIL NIL "<001001c5209a$d67d5e80$f7572582@lap04XXXXX>") RFC822.SIZE 1377 UID 11 FLAGS (\Recent) INTERNALDATE "04-Mar-2005 10:16:02 +0100") i36i OK Fetch completed.
You can see the entire output on: http://www.luckyhands.nl/download/dovecot-envelope.txt
Best regards, Remy
On Fri, 2005-03-04 at 11:07 +0100, Remy Zandwijk wrote:
ENVELOPE ("Fri, 4 Mar 2005 10:16:24 +0100" "Test" NIL NIL NIL NIL NIL NIL NIL "<001001c5209a$d67d5e80$f7572582@lap04XXXXX>") RFC822.SIZE 1377 UID 11 FLAGS (\Recent) INTERNALDATE "04-Mar-2005 10:16:02 +0100") i36i OK Fetch completed.
Yes, it's missing the messages addresses there. The mails themselves didn't seem to have anything strange in them. So, I find it a bit strange.. I couldn't reproduce it myself after trying a few times. Could you try running this manually:
rm -f ~/Maildir/dovecot.index* MAIL=~/Maildir /usr/local/libexec/dovecot/imap x select inbox x fetch 1 envelope
Does it still give wrong result?
Timo,
Yes, it's missing the messages addresses there. The mails themselves didn't seem to have anything strange in them. So, I find it a bit strange.. I couldn't reproduce it myself after trying a few times. Could you try running this manually:
rm -f ~/Maildir/dovecot.index* MAIL=~/Maildir /usr/local/libexec/dovecot/imap x select inbox x fetch 1 envelope
Does it still give wrong result?
I just did this and it gave the wrong result:
bash-2.05$ /opt/dovecot/sbin/imap
* PREAUTH [CAPABILITY IMAP4rev1 SORT THREAD=REFERENCES MULTIAPPEND
UNSELECT LITERAL+ IDLE CHILDREN NAMESPACE LOGIN-REFERRALS] Logged in as tstud1 x select inbox * FLAGS (\Answered \Flagged \Deleted \Seen \Draft) * OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft \*)] Flags permitted. * 1 EXISTS * 0 RECENT * OK [UNSEEN 1] First unseen. * OK [UIDVALIDITY 1109930525] UIDs valid * OK [UIDNEXT 12] Predicted next UID x OK [READ-WRITE] Select completed. x fetch 1 envelope * 1 FETCH (ENVELOPE ("Sun, 6 Mar 2005 14:52:06 +0100 (MET)" "Test" NIL NIL NIL NIL NIL NIL NIL "<Pine.GSO.4.62.0503061452001.24401@pseudorca>")) x OK Fetch completed.
Although this problem only occurs in Pine and Outlook Express, could this be a MDA problem (since you cannot reproduce the problem, it maybe could be the mailfile format?).
Regards, Remy
participants (2)
-
Remy Zandwijk
-
Timo Sirainen