immediate delete of mails

Aki Tuomi aki.tuomi at open-xchange.com
Wed Oct 10 09:37:03 EEST 2018



On 10.10.2018 09:34, Tamas Selmeci wrote:
> On Tue, 9 Oct 2018 15:44:14 +0200 (CEST)
> Steffen Kaiser <skdovecot at inf.h-brs.de> wrote:
>
>> try out pure IMAP via telnet:
>>
>> telnet server 143
>> 1 login user pwd
>> 2 select inbox
>> 4 CREATE Trash
>> 5 COPY 1 Trash
>> 3 STORE 1 +FLAGS \Deleted
>> 4 EXPUNGE
> Here's the output:
>
> * OK [CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE LITERAL+ AUTH=PLAIN AUTH=LOGIN] Dovecot ready.
> 1 login
> 1 BAD Error in IMAP command received by server.
> 1 login user pass
> 1 OK [CAPABILITY IMAP4rev1 SASL-IR LOGIN-REFERRALS ID ENABLE IDLE SORT SORT=DISPLAY THREAD=REFERENCES THREAD=REFS THREAD=ORDEREDSUBJECT MULTIAPPEND URL-PARTIAL CATENATE UNSELECT CHILDREN NAMESPACE UIDPLUS LIST-EXTENDED I18NLEVEL=1 CONDSTORE QRESYNC ESEARCH ESORT SEARCHRES WITHIN CONTEXT=SEARCH LIST-STATUS BINARY MOVE SNIPPET=FUZZY LITERAL+ NOTIFY SPECIAL-USE] Logged in
> 2 select inbox
> * FLAGS (\Answered \Flagged \Deleted \Seen \Draft $MDNSent $Forwarded $label1 $Labelimportant receipt-handled NonJunk $label5 $label2 $label3 $label4 $has_cal)
> * OK [PERMANENTFLAGS ()] Read-only mailbox.
> * 1995 EXISTS
> * 0 RECENT
> * OK [UNSEEN 1971] First unseen.
> * OK [UIDVALIDITY 1250421210] UIDs valid
> * OK [UIDNEXT 25219] Predicted next UID
> 2 OK [READ-ONLY] Select completed (0.016 + 0.000 + 0.017 secs).
> 4 create Trash
> 4 NO [ALREADYEXISTS] Mailbox already exists (0.006 + 0.000 + 0.006 secs).
> 5 Copy 1 Trash
> 5 OK [COPYUID 1 4067 17246] Copy completed (0.020 + 0.000 + 0.019 secs).
> 3 STORE 1 +FLAGS \Deleted
> * 1 FETCH (FLAGS (\Deleted \Seen))
> 3 OK Store completed (0.003 + 0.000 + 0.002 secs).
> 4 expunge
> 4 OK Expunge completed (0.001 + 0.000 secs).
> ----------------------
> The answer to "2 select inbox" contains "Read-only mailbox", it's suspicious to me...

doveadm user <yourusername>

check the UID/GID value (or look mail_uid / mail_gid from config)

namei -vl /path/to/your/mbox/file

and check permissions are correct

Aki


More information about the dovecot mailing list