Postfixadmin on FreeBSD 6.2 (and probably 7.2 and 8.0)

Lars Sommer, [email protected], 2007-10-16
Updated at 2008-07-30
DISCLAIMER: This is a personal note made for personal usage. It might not be easy usable nor explaining.

Add an easy webinterface to your Postfix mail server.
Install this AFTER the main mail server.

Install this port:
mail/postfixadmin

Install the initial database:
mysql -p < /usr/local/www/postfixadmin/DATABASE_MYSQL.TXT


From the port install:

2. Configure
------------
Check the /usr/local/www/postfixadmin/config.inc.php file. There you
can specify settings that are relevant to your setup.

The default password for the admin part of Postfix Admin is admin/admin.
This is specified in the .htpasswd file in the admin directory. Make sure
that the location of the .htpasswd file matches your path.

3. Configure Apache
-------------------
Add a line in your httpd.conf to allow the use of .htaccess file.

Alias /postadmin/       "/usr/local/www/postfixadmin/"
<Directory "/usr/local/www/postfixadmin">
        Options Indexes
        AllowOverride AuthConfig
</Directory>

---

Configure the dovecot-sql.conf (If using Dovecot for POP3/IMAP):

driver = mysql
connect = host=127.0.0.1 dbname=postfix user=postfix password=mysecretpassword
default_pass_scheme = MD5-CRYPT
password_query = SELECT password FROM mailbox WHERE username = '%u'
user_query = SELECT maildir, 106 AS uid, 106 AS gid FROM mailbox WHERE username= '%u'

---

Remember to change login for admin/admin in .htpasswd

Remember to delete the setup.php after first setup!

Skriv et svar

Din e-mailadresse vil ikke blive publiceret. Krævede felter er markeret med *