Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts
  • in reply to: Weird Imap shared folders started to appear #378349
    geekpak
    Participant

    So my hope is that anyone having issues with “Shared Folders” appearing in IMAP will read the following:

    Solution:
    1. DO NOT manually delete these directories from /var/spool/imap/
    2. Use either cyradm or get SirAdmin to do the following:

    a. reconstruct the mailbox (if not using SirAdmin: /usr/bin/cyrus/bin/reconstruct -r -f MAILBOXNAME)
    b. apply Access Control Lists for your admin user (if not using SirAdmin sam Shared\ Folders/MAILBOXNAME YOURADMINUSER all)
    c. delete the mailbox in question (if not using SirAdmin dam Shared\ Folders/MAILBOXNAME anyone)
    If you did accidentally delete these at the command-line like I did then do the following:

    mkdir DIRECTORYNAME
    chown -R _cyrus DIRECTORYNAME
    and then do steps 1 and 2 above.

    one final note: I spent several hours trying to get both the command-line and SirAdmin to work. My errant mailboxes were created by spammers. So they showed up like this:

    ._-levy
    but when referring to them in the cyradm tool use the name as it appears on the filesystem:
    ^_-levy

    Additional notes:
    If you don’t have an admin user that can login using SirAdmin or cyradm checkout this article: https://www.afp548.com/article.php?story=20060128151535780

    finally, to prevent exploitation of this bug by spammers try (i have not confirmed if this eliminates the problem, but I wanted to post all relevant points I found when tracking this issue down):

    To avoid these folders being created again, make sure you do not accept mail for unknown users and that “local_recipient_maps” inside /etc/postfix/main.cf is not empty. If it is, either remove it or set it to:
    local_recipient_maps = proxy:unix:passwd.byname $alias_maps

    I hope this saves you the 8 hours we wasted today on this issue.

Viewing 1 post (of 1 total)