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

Nile Youth

Active Member
Apr 2, 2015
25
7
53
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:

  [email protected]
    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;[email protected]
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: <[email protected]>
Received: from nileeg by main.example.com with local (Exim 4.89_1)
    (envelope-from <[email protected]>)
    id 1eRyFK-0003NL-GK; Thu, 21 Dec 2017 12:38:38 +0200
To: Name <[email protected]>
Subject: Invoice Owing: 171220A
Date: Thu, 21 Dec 2017 12:38:38 +0200
From: someusr <[email protected]>
Message-ID: <[email protected]>
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
 
Last edited by a moderator:

rpvw

Well-Known Member
Jul 18, 2013
1,101
462
113
UK
cPanel Access Level
Root Administrator

Nile Youth

Active Member
Apr 2, 2015
25
7
53
Egypt
cPanel Access Level
Root Administrator
Twitter
Check the message, and especially any attachments it may have, with the File types blocked in Gmail - Gmail Help page.
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
 

rpvw

Well-Known Member
Jul 18, 2013
1,101
462
113
UK
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.
 

Nile Youth

Active Member
Apr 2, 2015
25
7
53
Egypt
cPanel Access Level
Root Administrator
Twitter
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.
The Script is working fine this issue just appear from a weak, the email report attached
 

Attachments

Last edited:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,227
463
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
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.
 

Nile Youth

Active Member
Apr 2, 2015
25
7
53
Egypt
cPanel Access Level
Root Administrator
Twitter
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.
I already didn't in SBL & enabled DKIM & SPF for all domains on the server.

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.
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
 

Attachments

Last edited:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,227
463
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 [email protected] 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.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,227
463
Hello,

I'm glad to see the issue is now solved. Thank you for updating us with the outcome.
 
  • Like
Reactions: Nile Youth

Manu Vasy

Registered
Jan 9, 2016
1
0
1
Romania
cPanel Access Level
Root Administrator
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
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?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,227
463
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..
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.