Dovecot and hard links?

Aki Tuomi aki.tuomi at open-xchange.com
Sun Aug 18 12:22:46 EEST 2019


> On 17/08/2019 21:27 @lbutlr via dovecot <dovecot at dovecot.org> wrote:
> 
>  
> On 17 Aug 19, at 10:14 , Timo Sirainen <timo at sirainen.com> wrote:
> > Hard links are created when a mail is copied with the IMAP COPY command. So Dovecot just does what the client asks it to do. Maybe you have some misbehaving IMAP client?
> 
> Maybe. Heck, I’ll grant probably, even.
> 
> But what do I do about it? How can I see when and where Dovecot is making hundreds of hard links to single messages? And when I have 379 hard links in a single folder all linking in the same Maildir folder that isn’t an IMAP COPY, can it?
> 
> 👹 # find . -samefile cur/1564791714.M272226P99946.mail.covisp.net,S=8572,W=8738:2,Sbm                                                 ./cur/1564212774.M188126P73039.mail.covisp.net,S=8572,W=8738:2,Saei
> ./cur/1564249810.M383378P61816.mail.covisp.net,S=8572,W=8738:2,Saei
> ./cur/1564249870.M645963P63778.mail.covisp.net,S=8572,W=8738:2,Saei
> ./cur/1564249931.M726654P10909.mail.covisp.net,S=8572,W=8738:2,Saei
> ./cur/1564249992.M167306P22041.mail.covisp.net,S=8572,W=8738:2,Saei
> ./cur/1564250054.M627856P36026.mail.covisp.net,S=8572,W=8738:2,Saei
> ./cur/1564250120.M344375P57372.mail.covisp.net,S=8572,W=8738:2,Saei
> ./cur/1564250184.M87018P78868.mail.covisp.net,S=8572,W=8738:2,Saei
> ./cur/1564250244.M239686P97249.mail.covisp.net,S=8572,W=8738:2,Saei
> ./cur/1564250307.M256738P32251.mail.covisp.net,S=8572,W=8738:2,Saei
> ./cur/1564250369.M562195P60508.mail.covisp.net,S=8572,W=8738:2,Saei
> ./cur/1564250432.M269767P89961.mail.covisp.net,S=8572,W=8738:2,Saei
> ./cur/1564250493.M348431P23010.mail.covisp.net,S=8572,W=8738:2,Saei
> ./cur/1564250554.M213392P36137.mail.covisp.net,S=8572,W=8738:2,Saei
> ./cur/1564250614.M852674P98300.mail.covisp.net,S=8572,W=8738:2,Saei
> ./cur/1564250701.M145311P56821.mail.covisp.net,S=8572,W=8738:2,Saei
> ./cur/1564250788.M796958P24655.mail.covisp.net,S=8572,W=8738:2,Saei
> ./cur/1564250850.M154873P76505.mail.covisp.net,S=8572,W=8738:2,Saei
> ./cur/1564250910.M858640P38368.mail.covisp.net,S=8572,W=8738:2,Saei
> ./cur/1564251004.M975829P24042.mail.covisp.net,S=8572,W=8738:2,Saei
> ./cur/1564251099.M801627P27707.mail.covisp.net,S=8572,W=8738:2,Saei
> ./cur/1564251204.M608023P48105.mail.covisp.net,S=8572,W=8738:2,Saei
> 
> Etc etc.
> 
> (Also,I have tried two find the mappings for the ,Sbm and ,Saei but I do not have a dovecot-keywords file on my system anywhere (according to locate at least). I mean, I know S is Seen, but abeim are a mystery.)

You could try doveadm dump . on the directory to find out the keywords, and maybe even find out what these mysterious mails are about.

Aki


More information about the dovecot mailing list