Understand the UID value in mailbox debug
Hi list
we have a client who complains that mails from a certain sender are always put into his spamfolder. Our strong guess is that this is an issue with the webmail (Roundcube), but I need some help in understanding the output from dovecot's mailbox-debug.
In order to narrow down the source of the problem we activated the mailbox-debug from Dovecot. Now we can see that the mail is moved into the spamfolder. But the strange thing is that a UID is logged which does not exist on the mailserver
The following log is the "move" of the mail into the spamfolder
Mar 19 11:53:57 backend3 dovecot: imap(REMOVED_FOR_PRIVACY): OmQLrmQubgDAqDIW copy from INBOX: box=INBOX.Spam, uid=58, msgid=<000601d181cd$71401940$53c04bc0$@bluewin.ch>, size=314585 Mar 19 11:53:57 backend3 dovecot: imap(REMOVED_FOR_PRIVACY): OmQLrmQubgDAqDIW delete: box=INBOX, uid=1614, msgid=<000601d181cd$71401940$53c04bc0$@bluewin.ch>, size=314585 Mar 19 11:53:57 backend3 dovecot: imapREMOVED_FOR_PRIVACY): OmQLrmQubgDAqDIW expunge: box=INBOX, uid=1614, msgid=<000601d181cd$71401940$53c04bc0$@bluewin.ch>, size=314585
I do not understand whose UID this is, as it does not exist on the server. Does dovecot create temporary UID or something like that? Or is it more a process ID?
Thanks and regards
tobi
Mar 19 11:53:57 backend3 dovecot: imap(REMOVED_FOR_PRIVACY): OmQLrmQubgDAqDIW copy from INBOX: box=INBOX.Spam, uid=58, msgid=<000601d181cd$71401940$53c04bc0$@bluewin.ch>, size=314585 Mar 19 11:53:57 backend3 dovecot: imap(REMOVED_FOR_PRIVACY): OmQLrmQubgDAqDIW delete: box=INBOX, uid=1614, msgid=<000601d181cd$71401940$53c04bc0$@bluewin.ch>, size=314585 Mar 19 11:53:57 backend3 dovecot: imapREMOVED_FOR_PRIVACY): OmQLrmQubgDAqDIW expunge: box=INBOX, uid=1614, msgid=<000601d181cd$71401940$53c04bc0$@bluewin.ch>, size=314585
I do not understand whose UID this is, as it does not exist on the server. Does dovecot create temporary UID or something like that? Or is it more a process ID?
do you mean '58' ?
grep 58 /etc/passwd ?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Mon, 21 Mar 2016, Tobi wrote:
Mar 19 11:53:57 backend3 dovecot: imap(REMOVED_FOR_PRIVACY): OmQLrmQubgDAqDIW copy from INBOX: box=INBOX.Spam, uid=58, msgid=<000601d181cd$71401940$53c04bc0$@bluewin.ch>, size=314585
I do not understand whose UID this is, as it does not exist on the server. Does dovecot create temporary UID or something like that? Or is it more a process ID?
it's the UID of the message. http://tools.ietf.org/html/rfc3501#section-2.3.1.1
Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1
iQEVAwUBVu/WJXz1H7kL/d9rAQLdKgf/WzjAU9+iDh/Pj1LT2oFI3OPbHJCIYwjj g5EoSyYmdn11bwbdJA5SaWvnQ2D48/5pZEvHQrZmXiZS0rO0thNQmv79vTTYMxHg WsBxsBJVdsEvkgXq35Ewq5DF2//HsPbd2GIE39djUqeG7cW5LnJc9euKYhLcDsGp fXsYFzgmOHoB2uQB2qevYXpAeuLClDmK2aRLnAbJXIVjZOOOtp5MbBvwWA4vTngi Jd3WHu29CWlg2Ysy2QSbM8k7I4ScMaLLIZ2aJkkmBdvgCMADuXu4k4YDoZ2Aaa3p CmODzDaQ6mEhqtJBGxNCBEe6fvyfEQFsJyszYHxCeRd9jVcA/FqAOg== =6yXZ -----END PGP SIGNATURE-----
Am 21.03.2016 um 12:08 schrieb Steffen Kaiser:
it's the UID of the message. http://tools.ietf.org/html/rfc3501#section-2.3.1.1
thanks a lot this explains why I was unable to find the UID in passwd May I add another question related to mailbox debug log?
would it be possible to log the session ID (from IMAP login) that triggered the copy of the mail? I checked mail-log-plugin.c but could not find a session field. Basically I need to relate the action logged by mailbox debug to the respective IMAP login on the server.
If it's not possible at the moment to get this information, would it be possible to implement in future versions of dovecot?
Thanks
tobi
On 21 Mar 2016, at 22:13, Tobi <tobster@brain-force.ch> wrote:
would it be possible to log the session ID (from IMAP login) that triggered the copy of the mail? I checked mail-log-plugin.c but could not find a session field. Basically I need to relate the action logged by mailbox debug to the respective IMAP login on the server.
If it's not possible at the moment to get this information, would it be possible to implement in future versions of dovecot?
mail_log_prefix = "%s(%u)<%{session}>: "
participants (4)
-
Steffen Kaiser
-
Timo Sirainen
-
Tobi
-
voytek@sbt.net.au