-SRC := $(shell pwd)
DST := /etc/postfix
-INPUTS := configuration/* configuration/mysql/*
+INPUTS := \
+ configuration/main.cf \
+ configuration/master.cf \
+ configuration/postgrey_whitelist_clients.local \
+ configuration/postgrey_whitelist_recipients \
+ configuration/rbl_override \
+ configuration/mysql/relay_domains.cf \
+ configuration/mysql/virtual_alias_maps.cf \
+ configuration/mysql/virtual_domains_maps.cf \
+ configuration/mysql/virtual_mailbox_limits.cf \
+ configuration/mysql/virtual_mailbox_maps.cf
-all: $(INPUTS:configuration/%=$(DST)/%) postfixadmin
+OUTPUTS := $(subst configuration/,$(DST)/,$(INPUTS))
+
+all: $(OUTPUTS) postfixadmin
postfixadmin:
./setup-postfix.sh
-$(DST)/%: $(SRC)/%
+$(DST)/%: configuration/%
@mkdir -p $(@D)
cp $^ $@
$CONF['transport_options'] = array (
'virtual', // for virtual accounts
'local', // for system accounts
- 'relay' // for backup mx
+ 'relay', // for backup mx
'mailman' // for mailing lists
);
Alias /postfixadmin /usr/local/share/postfixadmin
<Directory /usr/local/share/postfixadmin>
-AllowOverride all
+ Options +Indexes +FollowSymLinks +ExecCGI
+ AllowOverride AuthConfig FileInfo
+ Order allow,deny
+ Allow from all
+ Require all granted
</Directory>
echo Configuring postfixadmin in Apache.
sudo cp postfixadmin.conf /etc/httpd/conf.d/postfixadmin.conf
fi
+sudo yum install php-imap