Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Ashafix: Postfixadmin port in Perl/Mojolicious

by mbethke (Hermit)
on May 18, 2012 at 15:55 UTC ( #971334=CUFP: print w/replies, xml ) Need Help??

I started a new project a while ago and recently it got its own site, time to let them Monks know about it and get it properly bashed:

Ashafix—a Postfixadmin port using Mojolicious

I was tired of trying to hack Postfixadmin to implement stuff like per-user transports and ending up wanting to gouge my eyes out at the look of the PHP, so I decided to take one last look and convert it to something more digestible/extensible, adding a bit of security like the CSRF protection Postfixadmin never got due to its nonexistent (in release versions that is, the alpha is a bit further) templating system and some protection against SQL injection through consistent use of prepared statements.

The result is still very alpha but has basic things working. As I suck at HTML design, it looks pretty much exactly like Postfixadmin but uses the Template Toolkit under the hood. It supports only MySQL so far as sprinkling the business logic with database case distinctions as in PFA was something I didn't even want to start; if someone has a good idea on how to abstract away datatype differences such as Postgres' boolean that can be 't' or 'f' vs. MySQL's TINYINT with 0 or !0 short of using DBIx::Class with column inflators, go ahead!

Any other ideas, criticism and patches (code is on GitHub) are welcome too of course!

  • Comment on Ashafix: Postfixadmin port in Perl/Mojolicious

Replies are listed 'Best First'.
Re: Ashafix: Postfixadmin port in Perl/Mojolicious
by marcus (Scribe) on Jun 22, 2012 at 11:55 UTC

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: CUFP [id://971334]
Front-paged by Corion
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2018-06-23 03:37 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (125 votes). Check out past polls.