Welcome, Guest
Please Login or Register.
Lost Password?
Re:.spam directory accessible from imap? (1 viewing)
Post Reply

TOPIC: Re:.spam directory accessible from imap?

#15343
kato (User)
Posts: 120
graphgraph
.spam directory accessible from imap? 2008/08/03 19:19  
Argh, this really seems like something that must be answered already, but I didn't find anything in the FAQ, forum, or wiki :(

I want mail delivered normally into a folder in the user's account called 'Spam'. I see that there is a .spam file in the Maildir, but it's not visible to the users through their IMAP account. One has to log into the virtualmin/webmin module and view the mail to see that folder.

I went into System Settings -> Module Config -> Spam filtering options, and tried to set the Default delivery for spam.

The doc has this to say:
it may be wise to retain messages for some period of time and allow users to check the spam folder using Usermin webmail, or via IMAP folders (if IMAP is available to your users).

The IMAP option sounds like what I want, but how do I make that work?
Operating system CentOS Linux 4.6
Webmin version 1.420
Virtualmin version 3.60 (Pro)
Kernel and CPU Linux 2.6.9-67.0.22.ELsmp on i686
  The administrator has disabled public write access.
#15351
andreychek (Moderator)
Posts: 636
graphgraph
Re:.spam directory accessible from imap? 2008/08/04 04:35  
Good morning,

A well behaved IMAP client won't just show all available mailbox folders by default.

For IMAP, you may need to "subscribe" to folders that interest you, including the spam folder.

How exactly you do that depends on your specific client, but in essence you may need to click a few buttons and have it show additional folders you're interested in.

For example, you could follow these steps if you're using Outlook 2003:

http://office.microsoft.com/en-us/outlook/HP052426081033.aspx

In Thunderbird, you'd do something similar, but in File -> Subscribe.
-Eric
  The administrator has disabled public write access.
#15354
kato (User)
Posts: 120
graphgraph
Re:.spam directory accessible from imap? 2008/08/04 06:09  
Hello Eric!

Thanks for the tips. I tried the subscribe option, but the folders don't show up for me in t-bird or in outlook.

Outlook does add a folder called "Junk Email", but this doesn't seem to be coming from imap, it seems to be an outlook contrivance.

Any more tips?
Operating system CentOS Linux 4.6
Webmin version 1.420
Virtualmin version 3.60 (Pro)
Kernel and CPU Linux 2.6.9-67.0.22.ELsmp on i686
  The administrator has disabled public write access.
#15355
andreychek (Moderator)
Posts: 636
graphgraph
Re:.spam directory accessible from imap? 2008/08/04 06:43  
Mmm, so what exactly is the full path to your .spam directory? And are you using Dovecot for IMAP (ps auxw|grep dovecot|grep imap)?

Also, just to verify, you are configuring the client to use IMAP rather than something like POP, correct?

And yeah, by default I do believe Outlook will make it's own junk mail folder that's unrelated to any account you have setup.
-Eric
  The administrator has disabled public write access.
#15362
Joe (Admin)
Posts: 4117
graph
Re:.spam directory accessible from imap? 2008/08/04 09:10  
Note that if you didn't create a folder in the client, you'll have to "subscribe" to it before it will show up.
  The administrator has disabled public write access.
#15378
kato (User)
Posts: 120
graphgraph
Re:.spam directory accessible from imap? 2008/08/05 06:04  
Eric Wrote:
full path to your .spam directory?
Here you go:
Code:

[kato@server Maildir]$ pwd /home/users/kato/Maildir [kato@server Maildir]$ ls -la total 24 drwx------   6 kato kato 4096 Jul 28 22:32 . drwxr-x---  21 kato kato 4096 Aug  5 00:05 .. drwx------   2 kato kato 4096 Jul 29 11:08 cur drwx------   2 kato kato 4096 Aug  5 06:20 new drwx------   5 kato kato 4096 Jul 28 22:32 .spam drwx------   2 kato kato 4096 Aug  5 06:20 tmp [kato@server Maildir]$ ls -la .spam/ total 20 drwx------  5 kato kato 4096 Jul 28 22:32 . drwx------  6 kato kato 4096 Jul 28 22:32 .. drwx------  2 kato kato 4096 Jul 28 22:32 cur drwx------  2 kato kato 4096 Jul 28 23:41 new drwx------  2 kato kato 4096 Jul 28 23:41 tmp



And are you using Dovecot for IMAP?
Yes.

Also, just to verify, you are configuring the client to use IMAP rather than something like POP, correct?
Yes, we configure all our clients to use IMAP.

Joe Wrote:
Note that if you didn't create a folder in the client, you'll have to "subscribe" to it before it will show up.
That's the issue, in my mind. The folder doesn't show up in the "subscribe" options for outlook or t-bird.

Could this problem be because the folder starts with a . (system folder)? If so, how do I change that behavior for my new servers and existing ones?
Operating system CentOS Linux 4.6
Webmin version 1.420
Virtualmin version 3.60 (Pro)
Kernel and CPU Linux 2.6.9-67.0.22.ELsmp on i686
  The administrator has disabled public write access.
#15379
andreychek (Moderator)
Posts: 636
graphgraph
Re:.spam directory accessible from imap? 2008/08/05 06:19  
Could this problem be because the folder starts with a . (system folder)? If so, how do I change that behavior for my new servers and existing ones?
Well, therein is the issue that's confusing me a bit -- a . is how it's supposed to be. Looking at the Dovecot docs:

http://wiki.dovecot.org/MailboxFormat/Maildir

Code:

Directory Structure Dovecot uses Maildir++ directory layout for organizing mailbox directories. This means that all the folders are directly inside ~/Maildir directory:     * ~/Maildir/new, ~/Maildir/cur and ~/Maildir/tmp directories contain the messages for INBOX. The tmp directory is used during delivery, new messages arrive in new and read shall be moved to cur by the clients.     * ~/Maildir/.folder/ is a mailbox folder     * ~/Maildir/.folder.subfolder/ is a subfolder of a folder (ie. "folder/subfolder")



So with the . there in the folder name, it's setup exactly as we'd expect.

Are any other folders that do show up as being available in Outlook/Thunderbird?

And if you were to create a new folder through Outlook/Thunderbird, does it show up on the filesystem?
-Eric
  The administrator has disabled public write access.
#15573
kato (User)
Posts: 120
graphgraph
Re:.spam directory accessible from imap? 2008/08/09 08:04  
Hi Eric,

Great questions, I'm going to try them out right now...

If I create folders on the client, they show up on the server. If I create them on the server, they show up in the client's "subscribe" window, but not automagically on the client, as expected.

So I might be able to tell customes to create the spam folder on their client, and it will be available. However, I can't seem to get a spam message to inject into the folder if they are created by the client. I'm not sure what the cause is of that yet, might just be that the filters aren't working at all now :(
Operating system CentOS Linux 4.6
Webmin version 1.420
Virtualmin version 3.60 (Pro)
Kernel and CPU Linux 2.6.9-67.0.22.ELsmp on i686
  The administrator has disabled public write access.
Post Reply
get the latest posts directly to your desktop

Talk and Get Help

Support
Forums
Bugs and Issues

Get Virtualmin

OS Support
Buy Online
Download
Copyright 2005-2007 Virtualmin, Inc. All rights reserved.