Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

SOLVED Message was blocked because its content presents a potential security issue

Discussion in 'E-mail Discussions' started by Nile Youth, Dec 21, 2017.

  1. Nile Youth

    Nile Youth Member

    Joined:
    Apr 2, 2015
    Messages:
    17
    Likes Received:
    5
    Trophy Points:
    3
    Location:
    Egypt
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello Everyone I have issue with my server Gmail block some of may mails on the server & got this massage back

    Code:
    This message was created automatically by mail delivery software.
    
    A message that you sent could not be delivered to one or more of its
    recipients. This is a permanent error. The following address(es) failed:
    
      name@gmail.com
        host gmail-smtp-in.l.google.com [64.233.166.27]
        SMTP error from remote mail server after end of data:
        552-5.7.0 This message was blocked because its content presents a potential
        552-5.7.0 security issue. Please visit
        552-5.7.0  File types blocked in Gmail - Gmail Help to review our
        552 5.7.0 message content and attachment content guidelines. 5si14971345wrg.124 - gsmtp
    Reporting-MTA: dns; main.example.com
    
    Action: failed
    Final-Recipient: rfc822;name@gmail.com
    Status: 5.0.0
    Remote-MTA: dns; gmail-smtp-in.l.google.com
    Diagnostic-Code: smtp; 552-5.7.0 This message was blocked because its content presents a potential
     552-5.7.0 security issue. Please visit
     552-5.7.0  File types blocked in Gmail - Gmail Help to review our
     552 5.7.0 message content and attachment content guidelines. 5si14971345wrg.124 - gsmtp
    Return-path: <user@main.example.com>
    Received: from nileeg by main.example.com with local (Exim 4.89_1)
        (envelope-from <user@main.example..com>)
        id 1eRyFK-0003NL-GK; Thu, 21 Dec 2017 12:38:38 +0200
    To: Name <Name@gmail.com>
    Subject: Invoice Owing: 171220A
    Date: Thu, 21 Dec 2017 12:38:38 +0200
    From: someusr <info@example.com>
    Message-ID: <a42aacab561b128e61f89a69f22b2f96@www.example.com>
    X-Mailer: PHPMailer 5.2.21 (GitHub - PHPMailer/PHPMailer: The classic email sending library for PHP)
    MIME-Version: 1.0
    Content-Type: multipart/mixed;
        boundary="b1_a42aacab561b128e61f89a69f22b2f96"
    Content-Transfer-Encoding: 8bit
    X-Exim-DSN-Information: Due to administrative limits only headers are returned
    
    can any one help me in this please

    Note: All Emails going will only Gmail Block it

    Thanks a lot for you all
     
    #1 Nile Youth, Dec 21, 2017
    Last edited by a moderator: Dec 21, 2017
  2. rpvw

    rpvw Well-Known Member

    Joined:
    Jul 18, 2013
    Messages:
    618
    Likes Received:
    192
    Trophy Points:
    43
    Location:
    Spain
    cPanel Access Level:
    Root Administrator
  3. Nile Youth

    Nile Youth Member

    Joined:
    Apr 2, 2015
    Messages:
    17
    Likes Received:
    5
    Trophy Points:
    3
    Location:
    Egypt
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello Sir,
    Thank you for answer, The massage attached with PDF File and the same massage when I try to send it manually over SMTP it's arrive but only the php-mailler on the server Gmail make block for it

    Note: I make the SMTP Remote not on the server Our mail hosted on Godaddy Mail & put the MX on the server to use
     
  4. rpvw

    rpvw Well-Known Member

    Joined:
    Jul 18, 2013
    Messages:
    618
    Likes Received:
    192
    Trophy Points:
    43
    Location:
    Spain
    cPanel Access Level:
    Root Administrator
    If the problem is being caused by an email generated using the PHP mail() command, I would recommend you configure your PHP mail to use an authenticated SMTP session, or you could try adding the fifth parameter ( the -f parameter) to your PHP code to set the envelope sender.
     
  5. Nile Youth

    Nile Youth Member

    Joined:
    Apr 2, 2015
    Messages:
    17
    Likes Received:
    5
    Trophy Points:
    3
    Location:
    Egypt
    cPanel Access Level:
    Root Administrator
    Twitter:
    The Script is working fine this issue just appear from a weak, the email report attached
     

    Attached Files:

    #5 Nile Youth, Dec 21, 2017
    Last edited: Dec 21, 2017
  6. Eminds

    Eminds Well-Known Member

    Joined:
    Nov 10, 2016
    Messages:
    259
    Likes Received:
    19
    Trophy Points:
    18
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Make sure your server IP is not in SBL and that you have DKIM , SPF records enabled and configured for the domains having the issues.
     
  7. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    42,721
    Likes Received:
    1,705
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    It looks like the email is sent through the cPanel server as opposed to a remote SMTP server because the message rejection was sent to your cPanel server. Are you sure the script is configured to send through SMTP authentication as opposed to the PHP mail function?

    Thank you.
     
  8. Nile Youth

    Nile Youth Member

    Joined:
    Apr 2, 2015
    Messages:
    17
    Likes Received:
    5
    Trophy Points:
    3
    Location:
    Egypt
    cPanel Access Level:
    Root Administrator
    Twitter:
    I already didn't in SBL & enabled DKIM & SPF for all domains on the server.

    This script send over PHP Mail & it's work normally with me before this weak I didn't try the SMTP config on the script but there is another domain over word press make the same issue on anther domain

    I attached the other domain report from Email Delivery Event Details
    Note: This domain is fully hosted on the server
     

    Attached Files:

    #8 Nile Youth, Dec 23, 2017
    Last edited: Dec 23, 2017
  9. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    42,721
    Likes Received:
    1,705
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    The bounce message shows the remote mail server is rejecting the message because of the reputation of your mail server. The first step is to try using SMTP authentication in the script that's sending the email to see if that helps. Otherwise, remote mail servers such as Google might not accept messages from the $username@hostname email address that's used with the PHP mail function. Additionally, make sure you are following the guidelines we document at:

    How to Keep your Email Out of the Spam Folder - cPanel Knowledge Base - cPanel Documentation

    Thank you.
     
  10. Nile Youth

    Nile Youth Member

    Joined:
    Apr 2, 2015
    Messages:
    17
    Likes Received:
    5
    Trophy Points:
    3
    Location:
    Egypt
    cPanel Access Level:
    Root Administrator
    Twitter:
    Thank you every body I found the issue and work on it to solve the problem

    Gmail Make Block to my Massages with PDF Attache that generated by our CRM system

    When I make close for the attache all massage arrive to Gmail normal

    Thanks a lot for your time
     
    Manu Vasy and cPanelMichael like this.
  11. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    42,721
    Likes Received:
    1,705
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    I'm glad to see the issue is now solved. Thank you for updating us with the outcome.
     
    Nile Youth likes this.
  12. Manu Vasy

    Manu Vasy Registered

    Joined:
    Jan 9, 2016
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Romania
    cPanel Access Level:
    Root Administrator
    Hello Nile Youth,
    by the way, i have the same problem concerning the email, google (gmail) they are blocking all messages that i sent to my customers, so, i will be glad to fix that too..
    Tell me please, what do you do fpr that?
     
  13. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    42,721
    Likes Received:
    1,705
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Do you receive a specific error message from Google when sending the message? The original poster you replied to solved the issue by adjusting their website's script so that it did not utilize PDF attachments when sending out emails.

    Thank you.
     
Loading...

Share This Page