mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2024-09-19 19:22:14 +02:00
7c267b1b26
- updated example config to new mysql map format https://sourceforge.net/tracker/?func=detail&atid=937964&aid=1971444&group_id=191583 - changed example password to match the password used in POSTFIX_CONF.txt git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@371 a1433add-5e2c-0410-b055-b7f2511e0802
45 lines
1.1 KiB
Plaintext
45 lines
1.1 KiB
Plaintext
#
|
|
# Postfix Admin
|
|
# by Mischa Peters <mischa at high5 dot net>
|
|
# Copyright (c) 2002 - 2005 High5!
|
|
# Licensed under GPL for more info check GPL-LICENSE.TXT
|
|
#
|
|
|
|
REQUIRED!!
|
|
----------
|
|
- You are using Postfix 2.0 or higher.
|
|
- You are using Apache 1.3.27 / Lighttpd 1.3.15 or higher.
|
|
- You are using PHP 4.1 or higher.
|
|
- You are using MySQL 3.23 or higher.
|
|
|
|
|
|
READ THIS FIRST!
|
|
----------------
|
|
When this is an upgrade from Postfix Admin 1.5.4 please read UPGRADE.TXT!!
|
|
|
|
More information is available on http://high5.net/howto/
|
|
|
|
|
|
1. Modify main.cf
|
|
-----------------
|
|
In order for Postfix to use MySQL for relay_domains add the following
|
|
to your main.cf
|
|
|
|
relay_domains = proxy:mysql:/usr/local/etc/postfix/mysql_relay_domains_maps.cf
|
|
|
|
|
|
2. mysql_relay_domains_maps.cf
|
|
------------------------------
|
|
You will need to put this into a text file for postfix to pickup.
|
|
|
|
user = postfix
|
|
password = password
|
|
hosts = localhost
|
|
dbname = postfix
|
|
query = SELECT domain FROM domain WHERE domain = '%s' AND backupmx = '1'
|
|
|
|
|
|
3. Restart Postfix
|
|
-------------------
|
|
When you are done make sure to restart Postfix so the changes take effect.
|