Tutorials/Tips

One reason you may be getting that “Relay access denied” error

Relay access denied is a very common email error, so I wasn’t surprised when I received one while setting up email for a new domain, which I used VestaCP to set up. To improve email delivery, I enabled DKIM.

Unfortunately, I did not complete the process before sending the first test email to an account under the new domain. So right after the email was sent, I received the Undelivered Mail Returned to Sender email, a partial content of which is shown below:

Related Post:  How to configure DKIM in VestaCP for external DNS

A little bit of digging showed that though DKIM was enabled, I forgot to set up a TXT record using the DKIM public key for the domain. So I took care of that, sent another test email, and that was it. A simple error can cause some major headache, so next time you’re setting up DKIM and are unable to send or receive email, check that you’ve created a TXT record for the domain.

Related Post:  Editing php.ini file in VestaCP for upload_max_filesize exceeded error
DKIM TXT record
Creating a DKIM TXT record for a domain on Namecheap

Subscribe to LinuxBSDos.com

Subscribe to receive the latest articles in your Inbox

Trust me, you'll not be spammed...

Please share:

We Recommend These Vendors and Free Offers

Launch an SSD VPS in Europe, USA, Asia & Australia on Vultr's KVM-based Cloud platform starting at $5:00/month (15 GB SSD, 768 MB of RAM).

Deploy an SSD Cloud server in 55 seconds on DigitalOcean. Built for developers and starting at $5:00/month (20 GB SSD, 512 MB of RAM).

Want to become an expert ethical hacker and penetration tester? Request your free video training course of Online Penetration Testing and Ethical Hacking

Whether you're new to Linux or are a Linux guru, you can learn a lot more about the Linux kernel by requesting your free ebook of Linux Kernel In A Nutshell.


Leave a Comment

Your email address will not be published. Required fields are marked *

*