What I've Done So Far:
Follow these instructions (https://blog.zimbra.com/2018/01/install ... 16-04-lts/) with minor differences
sudo nano /etc/network/interfaces
Code: Select all
auto ens18
iface ens18 inet static
address 101.255.x.x
netmask 255.255.x.x
network 101.255.x.x
broadcast 101.255.x.x
gateway 101.255.x.x
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 173.245.x.x (ping dns from cloudflare)
dns-nameservers 173.245.x.x (ping dns from cloudflare)
Code: Select all
127.0.0.1 localhost
101.255.x.x mail.x.com mail
Code: Select all
mail
Code: Select all
server=8.8.8.8
listen-address=127.0.0.1
domain=x.com
mx-host=x.com,mail.x.com,0
address=/mail.x.com/101.255.x.x
Type, name, value, ttl
Code: Select all
A, @ (written as x.com), 101.255.x.x (written as points to 101.255.x.x), automatic
MX, @ (writen as x.com), server mail.x.com priority 1 (written as mail handled by mail.mysarana.com)
I also use Cloudflare to redirect HTTP to HTTPS
Result
ping 101.255.x.x from different country (ok)
ping x.com (standard issueance, real ip hidden by Cloudflare)
web client 101.255.x.x / 101.255.x.x:7071 (do not respond)
web client x.com / mail.x.com / mail.x.com:7071 (do not respond, if it will be working I wish to remove the port)
Please help me.