Topic: Backup MX or how to add second 'myhostname' in postfix conf?!
====
- iRedMail version (check /etc/iredmail-release): 0.9.2
- Linux/BSD distribution name and version: Debian 7.8
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx):Apache
- Manage mail accounts with iRedAdmin-Pro? no
- Related log if you're reporting an issue:
====
Hello everyone. The situation is as follows: I have 2 ISP and one main domain, eg: mydomain.com and 2 dns records for, one of which records a higher priority than the other. When one domain is available, starts a second domain.
mail A 11.22.33.44
mail2 A 55.66.77.99
@ MX 0 mail
@ MX 1 mail2
Then the first isp down, i perform the following command:
postconf -e myhostname=mail2.mydomain.com
service postfix reload
..and mail starts on the second channel.
Is it possible to automate this process without scripts, where postfix switched to rezerv when the main provider is not running?
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.