Koozali.org: home of the SME Server

Contribs.org Forums => General Discussion => Topic started by: NomadOfNorad on July 08, 2008, 01:37:59 AM

Title: Filtering mailing lists and stuff to selected IMAP folders...
Post by: NomadOfNorad on July 08, 2008, 01:37:59 AM
I have Thunderbird set up to toss mails from certain selected mailing lists into a handful of folders inside an IMAP mailbox.  (Actually, I have several IMAP mailboxes on my server that I access, but only one or two of them have folders.)  I would like to know, though, if there is a way to have the server sort those mails for me, rather than having to have Thunderbird do it.

I set up this server so that I could access my mailboxes from multiple machines around the house, and while I mostly access them from one machine, I do sometimes use different email clients to do it.  If I access the main mailbox from a different machine, or from a different mail client -- say, because I want to look real quick for a join-this-website confirm message, and not have to fire up the main mail client -- I of course don't have the filtering going on, and now have to wade through all these mails that normally get moved out of the Inbox and into the other folders.  Theoretically, I could transfer the filter presets over to the other mail clients (say, another copy of Thunderbird on an older machine I sometimes use), or convert them to the other programs I use... but that's a nuisance.

Ideally, I'd like to have things set up so that, regardless of what mail client or machine I connect with, the mails have already been transferred to the appropriate folders before I even get there.  Is there a way to do that with SME Server?

Title: Re: Filtering mailing lists and stuff to selected IMAP folders...
Post by: william_syd on July 08, 2008, 03:04:51 AM


hmmm...

This may be the one..

[root@c3 ~]# yum --enablerepo=smecontribs install smeserver-mailsorting.noarch

Check the wiki and dungog sites.

Title: Re: Filtering mailing lists and stuff to selected IMAP folders...
Post by: NomadOfNorad on July 08, 2008, 04:20:09 AM
I'm sorry...  URL?  And is there something with a front-end interface?  Something I could configure from a web browser?
Title: Re: Filtering mailing lists and stuff to selected IMAP folders...
Post by: william_syd on July 08, 2008, 04:35:47 AM
No problem. I guess your search button must be broken  :)

http://www.dungog.net/wiki/Usermanager#Mailsorting

http://www.dungog.net/wiki/Smeserver-mailsorting

Title: Re: Filtering mailing lists and stuff to selected IMAP folders...
Post by: NomadOfNorad on July 08, 2008, 05:19:48 AM
Okay, so what does the .noarch part of that command line you entered do?  I don't see it on those wiki pages.  Could I potentially be screwed by puting that in, or leaving it off?  I.e. could (some of) the moved mails potentially disappear unseen if I do this part wrong?
Title: Re: Filtering mailing lists and stuff to selected IMAP folders...
Post by: william_syd on July 08, 2008, 06:03:33 AM

Ok. What your adding is a 'Contrib'. This is not part of the SME7 core.

Any contrib has the potential to break your server. It's up to you to determine the 'trustworthiness' of the contrib author.

.noarch means it is not limited to one processor type. I believe it is optional when being installed by yum.

Title: Re: Filtering mailing lists and stuff to selected IMAP folders...
Post by: NomadOfNorad on July 08, 2008, 06:43:51 AM
Okay, having run that line from the shell (I left off the .noarch part, btw), now how do I pull up that config screen shown in the second wiki link you gave?
Title: Re: Filtering mailing lists and stuff to selected IMAP folders...
Post by: william_syd on July 08, 2008, 06:53:38 AM

If your a non paying dungog member then you need userpanel.

yum --enablerepo=smecontribs install smeserver-userpanel

Title: Re: Filtering mailing lists and stuff to selected IMAP folders...
Post by: NomadOfNorad on July 08, 2008, 06:56:35 AM
If your a non paying dungog member then you need userpanel.

yum --enablerepo=smecontribs install smeserver-userpanel


So, this will add an additional menu item to the server-manager web interface?
Title: Re: Filtering mailing lists and stuff to selected IMAP folders...
Post by: william_syd on July 08, 2008, 06:58:31 AM

Yes.

And this also...

https://www.yourserver.net/user-manager

Title: Re: Filtering mailing lists and stuff to selected IMAP folders...
Post by: NomadOfNorad on July 08, 2008, 07:40:22 AM
Okay, I see no obvious new menu items in .../server-manager/ and when I go to .../user-manager/ I get:
Quote
Smeserver User Manager

To perform a user administration function, click one of the links in the menu on the left of your screen. If your admin allows it, you can:

This software comes with ABSOLUTELY NO WARRANTY. As part of our commitment to open-source software, you are welcome to copy and redistribute this software.

...but there's no items on the left.

Am I missing something?

Title: Re: Filtering mailing lists and stuff to selected IMAP folders...
Post by: william_syd on July 08, 2008, 07:49:11 AM


Am I missing something?



(http://magicwilly.webhostingpal.com/ContribsForumPictures/UserPanel/User_Panel.png)


Title: Re: Filtering mailing lists and stuff to selected IMAP folders...
Post by: NomadOfNorad on July 08, 2008, 08:02:21 AM
Okay, I guess I go to Security > User Panel Access and from that menu, next to the user I want to configure the forwarding of stuff to subdirs in, select Change access... and on the resulting pane, checkbox some stuff...

I've checkboxed backup, emailsettings, useraccounts, userpanal-mailsort, and userpanelaccess and clicked the Modify button, but I'm still getting nothing at the user-manager page.
Title: Re: Filtering mailing lists and stuff to selected IMAP folders...
Post by: william_syd on July 08, 2008, 08:05:17 AM

Log off from server-manager before going to user-manager.

You may even have to close your browser windows.

Title: Re: Filtering mailing lists and stuff to selected IMAP folders...
Post by: NomadOfNorad on July 08, 2008, 08:09:47 AM
Bingo!
Title: Re: Filtering mailing lists and stuff to selected IMAP folders...
Post by: NomadOfNorad on July 08, 2008, 08:34:41 PM
Well, I've just placed a bunch of filter criteria into the system at the server, and then turned OFF the filtering system for those mailing lists in Thunderbird...

It's not working!  All the messages are simply showing up in the Inbox, they're not getting moved into the specified folder for the given mailing list...

click here for the picture (http://img204.imageshack.us/img204/2210/smeserveruser20080708ms3.png)

BTW, when I installed the above add-ons, I got this error here (http://img185.imageshack.us/my.php?image=p1000287iq9.jpg) on the first one, and this error here (http://img508.imageshack.us/my.php?image=p1000293lx1.jpg) on the second one.  Could that have something to do with filtering not working, or is it just a red herring?

In both instances, the error was:
Quote
not well-formed (invalid token) at line 6, column 36, byte 135 at /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi/XML/Parser.pm line 187
...and in both instances, the install completed anyway.  And of course, I did the usual reconfigure and reboot at the end of each.
Title: Re: Filtering mailing lists and stuff to selected IMAP folders...
Post by: william_syd on July 09, 2008, 02:57:56 AM

For the install errors I suggest you take it to the bug track. The contrib author will get an email highlighting the issue.

As for it not sorting mail, you have a line in your screen shot saying " Mail sorting on this server has been disabled ......."

I don't know why. Did you do this bit...

http://www.dungog.net/wiki/Smeserver-mailsorting#Enable_mailsorting

In particular...

db configuration setprop qmail FilterType procmail

signal-event mailsorting-conf



Title: Re: Filtering mailing lists and stuff to selected IMAP folders...
Post by: NomadOfNorad on July 09, 2008, 03:17:23 AM
Hmmmm.... I can't find that line in either screenshot...  Where are you looking on it?  And which one of the two screenshots is it?

Should I run those two lines you listed, or are you thinking I might have but shouldn't have?

edit: Oh, wait, it was on a screengrab, not the digital-camera-shots...  I see it now...
Title: Re: Filtering mailing lists and stuff to selected IMAP folders...
Post by: william_syd on July 09, 2008, 03:20:45 AM
Hmmmm.... I can't find that line in either screenshot...  Where are you looking on it?  And which one of the two screenshots is it?

The 'click here for the picture' screen shot.

Should I run those two lines you listed, or are you thinking I might have but shouldn't have?

I think you have not and that you should run them.


Title: Re: Filtering mailing lists and stuff to selected IMAP folders...
Post by: NomadOfNorad on July 09, 2008, 03:26:37 AM
Just run those two?  Only?
Title: Re: Filtering mailing lists and stuff to selected IMAP folders...
Post by: william_syd on July 09, 2008, 03:29:11 AM

Yes, just those two in green.

As for digital camera shots, have you tried putty so you can do your configuration changes from your Windows box?

Title: Re: Filtering mailing lists and stuff to selected IMAP folders...
Post by: NomadOfNorad on July 09, 2008, 03:36:50 AM
Okay, I've run the two lines in green.

So, this Putty thing...  is it something akin to a telnet server?

URL
Title: Re: Filtering mailing lists and stuff to selected IMAP folders...
Post by: william_syd on July 09, 2008, 03:44:21 AM



Naw.... more like a secure Telnet client.

http://www.chiark.greenend.org.uk/~sgtatham/putty/

And a companion program for transferring files...

http://winscp.net/eng/index.php

You will need to enable SSH access at the Remote Access Server-Manager screen.

After you have it working using username/passwords you then want to transition to public/private keys.

http://wiki.contribs.org/SSH_Public-Private_Keys




Title: Re: Filtering mailing lists and stuff to selected IMAP folders...
Post by: william_syd on July 09, 2008, 03:45:19 AM
Okay, I've run the two lines in green.

Did you lose the "Mailsorting is disabled....." message?

Title: Re: Filtering mailing lists and stuff to selected IMAP folders...
Post by: NomadOfNorad on July 09, 2008, 03:48:47 AM
Did you lose the "Mailsorting is disabled....." message?

Yes.  It's gone.