This tutorial will tell you that how to configure Postfix with multiple instances.
Prerequisites.
Centos 6.x
Postfix 2.6
Step 1. Install postfix through below command.
#yum install postfix
Step 2. Then runs below command to enalbe postfix in multiple instances mode.
#postmulti -e init
The above command will append the below lines in main.cf
multi_instance_wrapper = ${command_directory}/postmulti -p –
multi_instance_enable = yes
multi_instance_enable = yes
Step 3. Create Secondary instance
#postmulti -I postfix-secondary -e create
or
#postmulti -i postfix-secondary -G postfix -e create
This will add below line in mail.cf
multi_instance_directories = /etc/postfix-secondary
Step 4. Enable the secondary instance.
#postmulti -i postfix-secondary -e enable
Step 5. Assign separate IP address for each instance.
#vi /etc/postfix/main.cf
inet_interfaces = localhost, 192.168.0.1
#vi /etc/postfix-secondary/main.cf
inet_interfaces = localhost, 192.168.0.2
Step 6. Restart Postfix to apply the changes.
To remove an instance.
postmulti -i instancename -p stop
postmulti -i instancename -e disable
postmulti -i instancename -e destroy
postmulti -i instancename -e disable
postmulti -i instancename -e destroy
To interact with particular instance with option -c
#postconf -c /etc/postfix-secondary -e “inet_interfaces = 192.168.01”
Other useful commands.
#postmulti -i instancename -p start
#postmulti -i instancename -p stop
#postmulti -i instancename -p status
#postmulti -i instancename -p stop
#postmulti -i instancename -p status
hi
i refer the procedure which you mentioned but my email going through connecting IP address.i want to configure the postfix on multiple ip address.please help me
If you have any issue please contact us at admin@linuxpcfix.com
hi
i refer the procedure which you mentioned but my email going through connecting IP address.i want to configure the postfix on multiple ip address.please help me
are all the instances working properly?