in reply to Email System Scalabilty

It's not clear to me what "a fixed limit of physical mbox's" means. Rather than storing messages in "physical mbox's", I would be inclined to store them in a database (other than a flat-file database). Maybe doing so would avoid the constraint.

Replies are listed 'Best First'.
Re^2: Email System Scalabilty
by john.charles.aldrich (Initiate) on Apr 18, 2009 at 08:14 UTC
    my host only allows me to assign 1000 email addresses for my server. This is a hard limit that I have no way around unless I upgrade to a higher level plan. I have a solution that consists of having these three things:

    1) a mysql database containing a list of my users

    2) a single catch-all email address

    3) a mail processing script that checks this address via crontab entry at a specified interval



    NONE of the users in the mysql database have a actual email address on the system. Rather what they have is a "psuedo-email address". What is essentially happening here is that all mail addressed to anyone on the system is going into one account, that being the catch-all email address ( with headers set appropriately by the sending side of the transaction ) and then the mail processing script looks at the To: header in the transaction and compares that to the mysql database of users and then routes it to the appropriate mysql database for that users messages.

    Following me now?

      That's clearer. I take it that your service provider has an MTA that imposes the limit as it relays messages to your server, or perhaps its an honour system.

      How will you ensure the senders all set headers appropriately? Do you have control of the senders?

        it's not an incoming limit or an outgoing limit. what I am refering to is the number of individual email accounts that the system will allow you to have. I'm not claiming to want or need control of people sending mail to the server from remote locations. All the work is basicly already done for me. I'm running off the "Envelope" header that gets set when mail is sent to my server by the remote mail server ( be that coming from 'mail.example.com', 'mail.test.com' or whatever ). all hosts set this header on outgoing messages.