Please note the new address for this forum : forum.excito.org. The old address redirects here but I don't know for how long. Thanks !
New user's registration have been closed due to high spamming and low trafic on this forum. Please contact forum admins directly if you need an account. Thanks !

Want to migrate old mail folders to bubba, how?

Got problems with Bubba? Then this forum is for you.
Locked
txporter
Posts: 15
Joined: 12 Oct 2007, 09:04

Want to migrate old mail folders to bubba, how?

Post by txporter »

I have an old RedHat box that I use to pick up mail from my ISP using fetchmail, which routes it to sendmail for delivery. (My bubba will be replacing it)

I also use a procmail recipe to filter my mail as fetchmail downloads it and it delivers it to mail files in my home dir, so I end up with some mail in /var/spool/mail/myuserid and some in various mail files in /home/myuserid/Mail. I use mutt to read mail and have .muttrc set up to know the location of all the mail files in /home/myuserid/Mail.

While I know I can use my bubba to fetch my mail from my ISP pop3 account, and I assume I can set up procmail to work with postfix to filter and deliver mail like I do on my Redhat box.

My real question is whether the bubba webmail client can be set up to read mail both in my default system mail queue and in the mail folders in my home dir mail files?

I get enough email that I really need the procmail filtering and delivery of mail from mailing lists, etc to my custom folders as opposed to having 100-200 email messages a day end up in my default mail queue.

I have seen the posts on setting up clamav and procmail for anti spam, but have not seen any posts on routing mail to multiple folders.

Thanks,

Tom P.
johannes
Posts: 1470
Joined: 31 Dec 2006, 07:12
Location: Sweden
Contact:

Post by johannes »

txporter,

I am not positive that I understand you correctly, but I _think_ Bubba already has what you need. As it is now, every user on Bubba gets their own home dir and corresponding email account (Maildir folder in /home/user/Mail). The webmail client can of course read from all users.

Is this a solution for you, just creating users for all mail queues you need?
/Johannes (Excito co-founder a long time ago, but now I'm just Johannes)
txporter
Posts: 15
Joined: 12 Oct 2007, 09:04

Post by txporter »

Johannes,

Thanks for writing back. (Please excuse inaccuracies in filenames or locations as I am working from memory here!) Perhaps part of my confusion is due to differences between RedHat and Debian (Bubba)default mail handling:

The old RH sendmail/fetchmail combination defaults to delivering mail to a single mail file in mbx format located in /var/spool/mail/myuserid. Mutt was set up to read mail from this file. On my RH box, I then set up sendmail to use procmail as my local mailer, then set up ~/.procmailrc to look at all incoming mail for myuserid and route mail based on sender or subject line to various mailfiles (again in .mbx format) located in ~/Mail. So all Rails mailing list mail was routed to ~/Mail/rails.mbx and all RedHat mail was routed to ~/Mail/RH.mbx. Any mail picked up by these procmail recipes sent to these special mail files and not to the default /var/spool/mail/myuserid. In order to read this mail with Mutt, I had to change .muttrc to tell it where these extra mailfiles were.

To contrast with Bubba, I guess I am asking if default Bubba email handling can be set up to filter a users mail based on sender id and/or subject line and place it in specific mail folders for each subscribed mailing list or sender as it comes in from fetchmail, OR is all a user's mail delivered to one single mail folder in their home dir, and it is the responsibility of the user to manually manage mail using the folder management capabilities of the web-based or IMAP based mail client as they read it?

Is bubba's fetchmail set up to use postfix as a MTA, or does it deliver mail to the users ~/Mail maildir directly without using postfix? If it uses postfix, I assume that I could configure postfix to use procmail as a local delivery agent and filter mail from one POP3 account into any folders I want, but I don't know if the IMAP server can handle this kind of set up, or if the web-based email client can deal with multiple mail folders for a single user either.

I apologize for this lengthy post, but does this make my question any clearer?

Thanks,

Tom P.
johannes
Posts: 1470
Joined: 31 Dec 2006, 07:12
Location: Sweden
Contact:

Post by johannes »

Hi again,

Ok, thanks, this makes sense, I understand what you are getting at. Also note that this is not my main area of expertise, but I'll do my best:

Installing procmail should work (fetchmail uses postfix). Also, since we use maildirs, would it be a solution for you to sort the incoming mail to different sub folders in your mail directory? This would solve the problem with the webmail client and IMAP server, they wouldn't have to read multiple maildirs per user. Even though reading multiple maildirs may be possible, but I suppose it would be some work to set up, I'll have to look in to that.
/Johannes (Excito co-founder a long time ago, but now I'm just Johannes)
txporter
Posts: 15
Joined: 12 Oct 2007, 09:04

Post by txporter »

Thanks for the update!

Having procmail deliver to sub-folders in a single maildir should work. I just was not sure that the mail client(s) could deal with sub-folders in the maildir.

I will let you know how things work out and if I find a good solution I will post a HowTo to the forums.

Tom P.
johannes
Posts: 1470
Joined: 31 Dec 2006, 07:12
Location: Sweden
Contact:

Post by johannes »

Great, we would very much appreciate that, thanks! :)
/Johannes (Excito co-founder a long time ago, but now I'm just Johannes)
Locked