Dear,
I have configured first mail server and now it's working fine with OpenDKIM, split DNS.
Thank you all for helping me out with advice mostly
Phoenix and others.
Now i want to configure second mail server behind NAT (same as the first one) but this server will have different name (mail2.mydomain.com).
How can i configure split DNS so that mail2.mydomain.com can be added to the Bind configuration files?
Here are three files that i need to change for the second server. Do i have to replace every mail with mail2?
In my public DNS record mx is mail.mydomain.com.
Here are my current configuration for the three files that i need to change.
Code:
sudo nano /etc/bind/db.mydomain.com
;
; BIND data file for homedomain.org
;
$TTL 604800
@ IN SOA mail.mydomain.com. admin.mydomain.com. (
070727 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
@ IN NS mail
IN MX 10 mail
IN A 192.168.0.5
mail IN A 192.168.0.5
#sudo nano /etc/bind/db.0.168.192
$TTL 3D
@ IN SOA mail.mydomain.com. admin.mydomain.com. (
2 ; Serial
8H ; Refresh
2H ; Retry
4W ; Expire
1D) ; Minimum TTL
NS mail.mydomain.com.
10 PTR mail.mydomain.com.
#sudo nano /etc/bind/db.0.0.127
$TTL 3D
@ IN SOA mail.mydomain.com. admin.mydomain.com. (
2 ; Serial
8H ; Refresh
2H ; Retry
4W ; Expire
1D) ; Minimum TTL
NS mail.mydomain.com.
1 PTR localhost. Thanx in advance.