Web Host Chat - The UK's host forum since 2001!
Colocation Rack Services
UK Web & Reseller Hosting
UK Leased Lines
VMWare Cloud Servers
Advertise here!
Results 1 to 6 of 6
  1. #1
    Registered User Array

    WHM block mail from domain problem

    Hi All,

    I hope i am posting this question in the correct section and if it has been answered in the past please feel free to give me the link as i did a search in the forum and did not find a topic based on my question.

    So here goes, we have a few servers VPS & dedicated servers and they are all running CentOS 7 with WHM / CPanel. What i am looking for is a way that one can blacklist/block a specific domain (not one of our domains on our servers) from sending us mail. I am aware that one could do this in cPanel / Spam Assassin, although this just allows up to five fields for complete domains you want to block. This would be a rather tedious task to perform on every cPanel account on the server, not to mention that the amount of domains we want to block is more than five so makes it pointless.

    I have been reading up on some forums that there is a way to do it in the "EXIM" settings of WHM then creating a text file which you can list all the blacklisted domains in but have not managed to find clear instructions on how it is done/implemented. Any advice would be greatly appreciated while i search for all possible solutions.

    PS! blocking the IP address of the sender is pointless as they sending the same spam mail 5-6 times per day and keep switching IP addresses (the only thing in the mail headers that remain constant is the domain that is sending the mail)

    Thanks in advance,

  2. #2
    623 rating
    1 review
    Posts 11067
    Post rank 2 (1)
    3 obvious ways to do a it. In order of effort involved in the process ...

    #1 - delegate the job to your sysadmin
    #2 - put in specific spam assassin rules for the spammer and report their mails as spam
    #3 - follow the step-by-step instructions that are on the cpanel forum to add blockdomains to exim

  3. #3
    Registered User Array

    Investigate the range of the IPs, if they are not too many you can block them in Main >> Service Configuration >> Exim Configuration Editor, Access Lists or by using CSF. If thats not the case you may need to block the whole range.

    Ensure you also have Ratelimit suspicious SMTP servers on Main >> Service Configuration >> Exim Configuration Editor, ACL Options, enabled.

    Thank you,

  4. #4
    Registered User Array

    If you're so annoyed with spam why don't asking your hosting company ? Sometimes you have cheap solutions like a gateway you just have to add a record in the dns zoones of your domains and the spam is filtered upstream your servers.

  5. #5
    Registered User Array
    You can block the IP range from these SPAM mails are coming and report your Service provider regarding this issue.

  6. #6
    Not sure if you're looking exactly for this solution, but according to cPanel, following SSH commands should suspend / unsuspend email sending function for the account:

    Disable email sending from a cPanel account:

    # whmapi1 suspend_outgoing_email user=cpusername


    # whmapi1 unsuspend_outgoing_email user=cpusername

    cPanel Web Hosting from €2.99 /mo. | Affordable UK Reseller Hosting | Reliable VPS Hosting from €7.99 /mo.

    Check our customer reviews at Trustpilot

    - Reliable Hosting Solutions Since 2007
    support@euro-space.net | +46 8 52 503 785 | Viks Västergård 1, 64393 Vingåker, Sweden


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Content Relevant URLs by vBSEO 3.6.1