Koozali.org: home of the SME Server

Filtering mailing lists and stuff to selected IMAP folders...

Offline NomadOfNorad

  • ****
  • 109
  • +0/-0
    • http://www.joshua-wopr.com
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?


Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
Re: Filtering mailing lists and stuff to selected IMAP folders...
« Reply #1 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.

Regards,
William

IF I give advise.. It's only if it was me....

Offline NomadOfNorad

  • ****
  • 109
  • +0/-0
    • http://www.joshua-wopr.com
Re: Filtering mailing lists and stuff to selected IMAP folders...
« Reply #2 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?

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
Regards,
William

IF I give advise.. It's only if it was me....

Offline NomadOfNorad

  • ****
  • 109
  • +0/-0
    • http://www.joshua-wopr.com
Re: Filtering mailing lists and stuff to selected IMAP folders...
« Reply #4 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?
« Last Edit: July 08, 2008, 05:30:38 AM by NomadOfNorad »

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
Re: Filtering mailing lists and stuff to selected IMAP folders...
« Reply #5 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.

Regards,
William

IF I give advise.. It's only if it was me....

Offline NomadOfNorad

  • ****
  • 109
  • +0/-0
    • http://www.joshua-wopr.com
Re: Filtering mailing lists and stuff to selected IMAP folders...
« Reply #6 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?

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
Re: Filtering mailing lists and stuff to selected IMAP folders...
« Reply #7 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

Regards,
William

IF I give advise.. It's only if it was me....

Offline NomadOfNorad

  • ****
  • 109
  • +0/-0
    • http://www.joshua-wopr.com
Re: Filtering mailing lists and stuff to selected IMAP folders...
« Reply #8 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?

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
Regards,
William

IF I give advise.. It's only if it was me....

Offline NomadOfNorad

  • ****
  • 109
  • +0/-0
    • http://www.joshua-wopr.com
Re: Filtering mailing lists and stuff to selected IMAP folders...
« Reply #10 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?


Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
Regards,
William

IF I give advise.. It's only if it was me....

Offline NomadOfNorad

  • ****
  • 109
  • +0/-0
    • http://www.joshua-wopr.com
Re: Filtering mailing lists and stuff to selected IMAP folders...
« Reply #12 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.

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
Re: Filtering mailing lists and stuff to selected IMAP folders...
« Reply #13 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.

Regards,
William

IF I give advise.. It's only if it was me....

Offline NomadOfNorad

  • ****
  • 109
  • +0/-0
    • http://www.joshua-wopr.com
Re: Filtering mailing lists and stuff to selected IMAP folders...
« Reply #14 on: July 08, 2008, 08:09:47 AM »
Bingo!

Offline NomadOfNorad

  • ****
  • 109
  • +0/-0
    • http://www.joshua-wopr.com
Re: Filtering mailing lists and stuff to selected IMAP folders...
« Reply #15 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

BTW, when I installed the above add-ons, I got this error here on the first one, and this error here 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.
« Last Edit: July 09, 2008, 12:17:11 AM by NomadOfNorad »

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
Re: Filtering mailing lists and stuff to selected IMAP folders...
« Reply #16 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



Regards,
William

IF I give advise.. It's only if it was me....

Offline NomadOfNorad

  • ****
  • 109
  • +0/-0
    • http://www.joshua-wopr.com
Re: Filtering mailing lists and stuff to selected IMAP folders...
« Reply #17 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...
« Last Edit: July 09, 2008, 03:19:02 AM by NomadOfNorad »

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
Re: Filtering mailing lists and stuff to selected IMAP folders...
« Reply #18 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.


Regards,
William

IF I give advise.. It's only if it was me....

Offline NomadOfNorad

  • ****
  • 109
  • +0/-0
    • http://www.joshua-wopr.com
Re: Filtering mailing lists and stuff to selected IMAP folders...
« Reply #19 on: July 09, 2008, 03:26:37 AM »
Just run those two?  Only?

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
Re: Filtering mailing lists and stuff to selected IMAP folders...
« Reply #20 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?

Regards,
William

IF I give advise.. It's only if it was me....

Offline NomadOfNorad

  • ****
  • 109
  • +0/-0
    • http://www.joshua-wopr.com
Re: Filtering mailing lists and stuff to selected IMAP folders...
« Reply #21 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

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
Re: Filtering mailing lists and stuff to selected IMAP folders...
« Reply #22 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




Regards,
William

IF I give advise.. It's only if it was me....

Offline william_syd

  • *****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
Re: Filtering mailing lists and stuff to selected IMAP folders...
« Reply #23 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?

Regards,
William

IF I give advise.. It's only if it was me....

Offline NomadOfNorad

  • ****
  • 109
  • +0/-0
    • http://www.joshua-wopr.com
Re: Filtering mailing lists and stuff to selected IMAP folders...
« Reply #24 on: July 09, 2008, 03:48:47 AM »
Did you lose the "Mailsorting is disabled....." message?

Yes.  It's gone.