michaeljoseph01
New Pleskian
- Server operating system version
- Ubuntu 20.04
- Plesk version and microupdate number
- 18.0.51
So I'm trying to determine the most secure and simple way to set up a single server that hosts a single domain with website + postfix/dovecot mail service. I'm proxying the web traffic through cloudflare. I don't see any way around not exposing the mail server IP, so I'm using a mail.domain mx record with accompanying A record pointing to a 2nd un-proxied IP for the mail service.
This seems logical to me, but only if I can then lock down all non-mail traffic coming into the exposed email IP
So
1. Is there a way to configure the firewall to block traffic by destination/local IP? Or do I need other software for this?
2. Is there any way to secure the mail.domain email server on this setup with lets encrypt? Or does it only work if you run mail through domain.com? I could do that but it would defeat the purpose of hiding my apache IP through cloudflare.
Is there a different setup I should be using?
Thanks
This seems logical to me, but only if I can then lock down all non-mail traffic coming into the exposed email IP
So
1. Is there a way to configure the firewall to block traffic by destination/local IP? Or do I need other software for this?
2. Is there any way to secure the mail.domain email server on this setup with lets encrypt? Or does it only work if you run mail through domain.com? I could do that but it would defeat the purpose of hiding my apache IP through cloudflare.
Is there a different setup I should be using?
Thanks