• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Resolved Blacklist specific domain for Incoming Email

othmaqsa

Regular Pleskian
Server operating system version
20.04.4 LTS
Plesk version and microupdate number
18.0.45 Update #2
Hello,

Is there a way to ban incoming emails for specific domains such as @support.ru , admin.ru etc?

I receive a dozen / days, sent through the contact form on a Wordpress site.

Will setting up a WAF modsecurity solve this problem?

Thank you
 
Hello @Dave W ,

Thank you for your response.

I have already tried to blacklist the whole domain with the method you have mentioned (example: *@inbox.ru), but the email still coming from this domain.
 
I would suggest that you configure your contact form to use an SMTP connection rather than phpmail so that you are sure that mail is being sent through the spam filters. Also..strong captcha.
 
Hello @Dave W ,

I come back to you regarding the configuration of SMTP with Wordpress.

I prefer to implement the code directly in wp-config.php and functions.php instead of using a plugin.

I added this on functions.php:

Code:
// Send email via SMTP
add_action('phpmailer_init', 'send_smtp_email');
function send_smtp_email( $phpmailer ) {
$phpmailer->isSMTP();
$phpmailer->Host = SMTP_HOST;
$phpmailer->SMTPAuth = SMTP_AUTH;
$phpmailer->Port = SMTP_PORT;
$phpmailer->Username = SMTP_USER;
$phpmailer->Password = SMTP_PASS;
$phpmailer->SMTPSecure = SMTP_SECURE;
$phpmailer->From = SMTP_FROM;
$phpmailer->FromName = SMTP_NAME;
}

I then added this to wp-config.php:

Code:
// SMTP email settings
define('SMTP_USER', '[email protected]'); // Username to use for SMTP authentication
define('SMTP_PASS', 'mypassword'); // Password to use for SMTP authentication
define('SMTP_HOST', 'mysmtphost'); // The hostname of the mail server
define('SMTP_FROM', '[email protected]'); // SMTP From email address
define('SMTP_NAME', 'MyWebsite'); // SMTP From name
define('SMTP_PORT', '465'); // SMTP port number - e.g. 25, 465 or 587
define('SMTP_SECURE', 'ssl'); // Encryption system to use - ssl or tls
define( 'SMTP_AUTH', true ); // Use SMTP authentication (true|false)

Question: As you notice, I put as port 465 (which is mentioned in the config on Plesk and I put SSL instead of TLS

Do you have an idea why the config does not work with TLS + port 465?

I did several tests, the TLS works if I replace 465 by 587.

Thank you
 
Back
Top