Search code examples
mail-serverpostfix-mta

Setting up Send only mail server


I am setting a mail server for one of my website for which I am using external ZOHO mail server. But for sending mails through the website I am using postfix mail server. Now the issue I am facing is when I send mail through my website to some other mail eg. tushar@gmail.com it send the mail with no issue but if I send mail to one of my own domain email e.g. care@example.com the mail is not received.

I have follows this tutorial to setup send the only postfix: and followed SPF record and DKIM setup using this and this.


Solution

  • I resolved the problem by removing $myhostname variable from mydestination, which probably changed the way mail was sent. Earlier it was through local and now it is being sent through smtp