summaryrefslogtreecommitdiffstats
path: root/BACKUP_MX.TXT
blob: a36ed1284e511f216f02058bfc27e3885e87ba43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#
# Postfix Admin
# by Mischa Peters <mischa at high5 dot net>
# Copyright (c) 2002 - 2005 High5!
# License Info: http://www.postfixadmin.com/?file=LICENSE.TXT
#

REQUIRED!!
----------
- You are using Postfix 2.0 or higher.
- You are using Apache 1.3.27 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!!

When you are upgrading from 2.0.x please read TABLE_BACKUP_MX.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 = postfix
hosts = localhost
dbname = postfix
table = domain
select_field = domain
where_field = domain
additional_conditions = and backupmx = '1'


3. Restart Postfix
-------------------
When you are done make sure to restart Postfix so the changes take effect.