[Workaround.org] custom imap default folders

Emmanuel Revah stsil at manurevah.com
Sat Mar 28 01:29:38 CET 2009


Le Mar 24 mars 2009 9:58, Tobias Scheeper a écrit :
> Hello All,
>
> I have set up the ´ISP-Style´ Email Server with Postfix, Dovecot, mySQL
> and so on like described here on workaround.org.
>
> There is one thing, I couldn´t work out on my own till now:
>
> My Spamassassin is configured to mark possible SPAM and mails which are
> quite sure SPAM i a different way. Therefore sieve sorts those mails
> into folders `Junk` and `Junk-Verdacht` (=possible spam). I recently
> realizied, that not every account has got those folders. For my own
> accounts Thunderbird created the Junk-folders itself.
> `Junk-Verdacht`-folders have been created by myself while examining my
> way to handle spam. But many other accounts on my server don´t have
> those two folders. So spam and possible spam seems to get lost - i
> havent check if its really lost, but according to the inboxes, the spam
> seems not to be there anymore.
>
> So heres my 2 questions:
> Am I able to set up custom IMAP folders for all mail accounts by
> default? (and of course: how am I?)

if i'm not mistaking, you can create the imap folders manually in the
correct /home/vmail/domain.tld/user/.NEWFOLDER  (or
/home/vmail/domain.tld/user/maildir/.NEWFOLDER)

to automate this you would have to add something to whatever
script/interface you use to create accounts. ..

> Is sieve able to find out wether a folder exists and according to that
> not to move spam - might be useful for those that don´t use imap but
> pop3 instead...

i think that the folders should created if they don't exist, however what
might be the problem is simply "are the users subscribed to the folders" ?

you can automatically subscribe your users if you add the imap folder name
to the file "subscriptions" in the maildir directory. ..

>
> regards,
> Tobias


i hope i'm right :]]


manu

----
http://manurevah.com



More information about the Workaround-chitchat mailing list