0

I installed a web server using Postfix, Dovecot, Roundcube Apache2 and Ubuntu 20. I created spf record (v=spf1 mx ~all), default._domainkey record and a _dmarc record in my all domains' DNS panels.

When I send an email from one of these accounts to GMail, it appears in spam folder. I clicked "show original" and got my primary email address, not the address which I'd sent from:

Received: from mail.myprimarydomain ([IP])

Roundcube displays correct user name and default identity but it displays my primary hostname for the host.

Do I have to set rDNS? If so do I have to run two machines? (I have only one right now)

How can I use own host name for each mail servers?

5
  • It is going to the spam folder because you don't have ptr record(reverse dns). Call you internet provider and ask them to set it to your domain. Commented Mar 26 at 6:09
  • Thanks for the hint. I'll ask them. Commented Mar 26 at 6:10
  • Also, no, you definitely don't have to run two servers, one is enough for email service. If you don't actually own the public ip subnet, you can't set ptrs. They are registered in a different way. Commented Mar 26 at 6:13
  • I have no idea what you mean by "my primary email address, not the address which I'd sent from" - and you've shown us none of the configuration. Commented Mar 26 at 12:37
  • (and a custom PTR record is of very limited value) Commented Mar 26 at 12:38

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.