Why website emails going to spam or not delivered?


There are 2 typical cases of failed email delivery:

1) When emails with Activation code or Password reminder or any other useful or required information going to SPAM or Junk folder or simply not delivered

2) When mail server is not delivering email due to the problem "Relay access denied" in logs


1) There are 2 options to improve email delivery

  1. RECOMMENDED: Improve domain name and network settings to get better delivery from localhost
    1. set up SPF record for your domain name:
      TXT "v=spf1 include:yourdomain.com ~all"
      (replace yourdomain.com with your real domain name)
    2. Setup Reverse DNS
  2. OPTIONAL: Use 3rd party mail delivery service, for example Mailgun.
    1. Setup account with Mailgun service
    2. Use FTP access to open file httpdocs/WEB-INF/conf/webvideo-base.conf
    3. Search for smtp keyword to find lines for SMTP settings
    4. Update value for smtp settings to use mailgun or any other mail service
    5. Re-login as admin to apply changes.

A service to validate the SPF record for a domain name: https://mxtoolbox.com/spf.aspx

2) If you see Relay Access Denied in maillogs and there are no emails delivered make sure to whitelist in mailserver settings at Plesk