Coder Social home page Coder Social logo

postfixadmin-installer's Introduction

postfixadmin-installer

Script to automate the installation and configuration of a postfixadmin system on a debian-alike OS (it uses apt-get).

You will need a working Postfix and MySQL server (and ideally knowledge of the root password for the latter), and LWP::Simple (which is libwww-perl in dpkg).

Installation

Just download and run as root:

apt-get install postfix mysql-server libwww-perl
GET https://raw.github.com/BigRedS/postfixadmin-installer/master/postfixadmin-installer > postfixadmin-installer
perl ./postfixadmin-installer

You will be prompted for MySQL credentials if the debian-sys-maint ones can't be found or are found to not work. At the end of the script you will be given the generated setup password to use to set up the first admin user.

There's a few options you can pass the script; use --help to see them. The only one that's particularly likely to be useful is --fqdn; if this isn't given then the output of hostname -f is used. This value is used in a few places in the PostfixAdmin UI; nothing other than links will break if you get it wrong.

Config

The script is split in two. The upper, larger, part is where all the config is set, and it's mostly fairly well commented. A quick run down of the defaults:

  • Mailboxes go in /var/lib/vmail/<domain>/<local-part>
  • MySQL stuff goes in a db called vmail accessible by a user vmail from localhost.
  • Filesystem stuff is all done as vmail:vmail by both Dovecot and Postfix.
  • Postfixadmin 2.3.6 is downloaded from Sourceforge. It is extracted into /var/www/postfixadmin and Apache is not reconfigured at all; you might need to configure an alias to make this work.
  • imap, imaps, pop3 and pop3s are all enabled.
  • Plaintext imap(s) & pop3(s) auth is enabled (because it's really handy for testing).
  • Plaintext auth for imap and pop is default when enabled.

To Do

Patches welcome :) Also, file issues above.

Compatibility

This is known to work (i.e. tested succesfully) on:

  • Debian Jessie
  • Debian Wheezy
  • Debian Squeeze w/Dovecot 2.x

This doesn't work with Dovecot 1.x; the merging of the 'wheezy' branch broke this.

If you want the version that does work with Dovecot 1.x (specifically Lenny and Squeeze), try it at tag 'lenny' or 'wheezy' (see 'Releases' on GitHub); I'm not that interested in feature-adding to those, but if something does go wrong do let me know.

I'm interested in compatibility with any other Debian-derived distros, too.

postfixadmin-installer's People

Contributors

bigreds avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.