Clever Virtual Mail Hosting Web Manager

2012-03-09 Thread Romans Malinovskis

Hi list

Probably quite a few of you are running virtual domain hosting 
http://www.postfix.org/VIRTUAL_README.html. I have started with similar setup, 
but then I merged all tables into one to make management simpler. Unfortunately 
there wasn’t any web admin for managing such a set-up so I wrote one myself in 
PHP / Agile Toolkit. As it might be useful to others, I’m sharing it here:

https://github.com/romaninsh/Agile-Postfix-Admin


Features:
 - create mailboxes, redirects, aliases
 - supports several access levels 0=single user, 9=domain access, 99=all domains
 - simple to install, very small code footprint (all logic in 160 lines of PHP)
 - searching, filtering by domain
 - postfix and courier sample config included

Feel free to use the tool. PHP5.3 required. You are welcome to contribute any 
fixes back by forking me on github. Installation instructions are in README 
file.

Regards,
Romans.

NOTE: This is beta version and it stores passwords in clear text in the 
database. I will add encryption in the further releases. 

Re: Clever Virtual Mail Hosting Web Manager

2012-03-09 Thread Romans Malinovskis
I must have mentioned that the demo is running here:

http://postfixadmin.agiletoolkit.org

Have a nice weekend everyone.

> Hi list
> 
> Probably quite a few of you are running virtual domain hosting 
> http://www.postfix.org/VIRTUAL_README.html. I have started with similar 
> setup, but then I merged all tables into one to make management simpler. 
> Unfortunately there wasn’t any web admin for managing such a set-up so I 
> wrote one myself in PHP / Agile Toolkit. As it might be useful to others, I’m 
> sharing it here:
> 
> https://github.com/romaninsh/Agile-Postfix-Admin
> 
> 
> Features:
>  - create mailboxes, redirects, aliases
>  - supports several access levels 0=single user, 9=domain access, 99=all 
> domains
>  - simple to install, very small code footprint (all logic in 160 lines of 
> PHP)
>  - searching, filtering by domain
>  - postfix and courier sample config included
> 
> Feel free to use the tool. PHP5.3 required. You are welcome to contribute any 
> fixes back by forking me on github. Installation instructions are in README 
> file.
> 
> Regards,
> Romans.
> 
> NOTE: This is beta version and it stores passwords in clear text in the 
> database. I will add encryption in the further releases. 



Re: Clever Virtual Mail Hosting Web Manager

2012-03-10 Thread Romans Malinovskis
>> I must have mentioned that the demo is running here:
>> 
>> http://postfixadmin.agiletoolkit.org
>> 
>> Have a nice weekend everyone.
> 
> Ummm... postfixadmin already exists, is very mature, and works well for many. 
> Why reinvent the wheel? Regardless, you need to use a different name…

I needed to customize and it’s very difficult to do so with postfixadmin. It 
worked well out of the box, but there are very little flexibility.  The goal of 
my little project is to be very easily customizable and lightweight and also to 
have a fresh, modern look. 

Without reinventing the wheel, you don’t get to fly.



Re: Clever Virtual Mail Hosting Web Manager

2012-03-10 Thread Romans Malinovskis
> There is already a plan to allow for very easy customization by allowing you 
> to add custom fields that will not be zapped by upgrades:
> 
> https://sourceforge.net/tracker/?func=detail&aid=2686461&group_id=191583&atid=937967
> 
> Maybe you could consider working on that instead?

I am not very familiar with the way how postfixadmin is bulit. For me it was 
much simpler to put this together in few hours with the features I need. Both 
projects are very fundamentally different. Postfix admin is certainly very 
stable and established, but the code looks like assembler.

>> Without reinventing the wheel, you don’t get to fly.
> And sometimes attempts to reinvent the wheel result in a lot of crashing and 
> burning... ;)
> No worries though, you can do whatever you like, I just hate to see a wasted 
> opportunity (to improve an existing, mature product)…

or you become most valuable company in the world, but my reasoning is simple. I 
made it. I shared it. If others like how it’s built inside, it could be made 
into a proper stable product easily.

> Anyway, this is OT for postfix, so if you’d like to continue the conversation 
> please send privately… but regardless, you still need to use something other 
> than postfixadmin.agiletoolkit.org for the name.

Im open for suggestions. It’s juts an experiment for now.

Thanks Charles.