I have only ONE email account at my expense. But this email account is in 3 different mailing lists (in the pure email context, not drupal mailing list), which let's name them ml1, ml2 and ml3. What I want to do is, create 3 forums, and post the mails I get via these mailing lists to their corresponding forums.

(now all below is under Drupal context)
So I created 3 forums, forum1, forum2, and forum3. In Mailhandler configuation, I created 3 mailboxes, mbx1, mbx2 and mbx3. For mbx1, I set ml1 to the "E-mail address: *" ("The e-mail address to which users should send their submissions", as it says under the input box). Then mbx2 => ml2, and mbx3 => ml3. And of course it is all the same account / password pair to check these mails.

But my test results show that only mbx1 (being the first of the 3) gets mails, and it gets all the mails to all the mailing lists. And as matter of fact, it gets mails that are sent to my email account directly (no via ml1, ml2, or ml3). So, it looked to me as if this "E-mail address: *" is pretty useless.

Am I doing something wrong, or incomplete? Or am I simply expecting something that I should have? How could I make what I am wishing for work at all?

Thanks in advance.

Comments

kentr’s picture

It can work under the right circumstances. I'm using it like that.

Sounds like most of your problem is that all emails are going to the same account. The first Mailhandler Mailbox checks that account and retrieves all the messages, as it should, and marks them as "old" ("read", "processed", or whatever). Then the next Mailboxes try to retrieve, but all the messages are marked as "old", so those latter Mailboxes don't retrieve anything.

Suggestions:

  1. Sort the email into folders on the server, through some rules set up in your hosting account. Then set the Mailhandler Mailboxes to read only from their respective folders.
  2. SSH in to the server and set up procmail filtering. Maybe I'll do a manual page on this, if there's not one.
  3. Forward all email to an entirely different domain (like maybe GMail), where you have the ability to set up different addresses, do rule-based sorting, etc. Set the Mailboxes to access that account.
  4. Investigate whether the Google account mail servers let you do what you need to do. If so, set up a Google account and change the MX records for your account to send all your email there. Sort it as you please and set up the Mailboxes accordingly.

I haven't looked at the code or read all the docs, so this is just a guess: I suspect that the E-mail address: * field is just a title for the Mailbox.

kentr’s picture