Problems with mail server

Have you used letsencrypt ? If yes there is already a redirection in /etc/nginx/conf.d/forcessl-yourdomain.tld without www. Just add the www and remove your other redirection

You’re a life savior. Everything works

However should I keep my two A records ? (One just the domain pointing to server IP and pointing to the same server IP)

And any idea for my mail server problem ?

yes keep your two records.

No idea for the mail server

I’m 100% sure I forgot a step or there is more things to configure to get the mail server working.

Can you give me a detailed step by step installation process ? With the dns configurations ?

If you don’t have time it’s fine but I would be infinitely grateful.

Thanks in advance