Block domain from mailing cpanel

To block a domain from sending emails through cPanel, you can follow these steps:

Method 1: Using the Email Accounts section

  1. Log in to your cPanel account.
  2. Click on the "Email Accounts" icon.
  3. Click on the "Edit" button next to the email account you want to block.
  4. Scroll down to the "Access Control" section.
  5. Click on the "Block" button next to "Outgoing Mail".
  6. Enter the domain name you want to block in the "Block outgoing mail from" field.
  7. Click "Save" to save the changes.

Method 2: Using the DNS Editor

  1. Log in to your cPanel account.
  2. Click on the "DNS Editor" icon.
  3. Click on the "Add a New DNS Record" button.
  4. Select "MX Record" as the record type.
  5. Enter the domain name you want to block in the "Host" field.
  6. Set the "Priority" to 0 and the "Target" to an IP address that is not valid (e.g. 0.0.0.0).
  7. Click "Add" to add the record.

Method 3: Using the Exim Configuration Editor

  1. Log in to your cPanel account.
  2. Click on the "Exim Configuration Editor" icon.
  3. Click on the "Advanced" tab.
  4. Scroll down to the "Access Lists" section.
  5. Click on the "Add" button next to "Sender Access".
  6. Enter the domain name you want to block in the "Domain" field.
  7. Set the "Access" to "Deny".
  8. Click "Save" to save the changes.

After blocking the domain, you can verify that the emails are no longer being sent by checking the email logs or by trying to send an email from the blocked domain.

Note: Blocking a domain from sending emails through cPanel may not be effective if the domain is using a third-party email service or if the emails are being sent through a different mail server.