Manually block/reject emails from domain in exim

Posted: 0p in Linux

Imagine you are seeing a lot of Spam mails originating from a domain say abc.com in your server logs. We can blacklist the domain abc.com from sending mails through Exim mail server.

Create a file named /etc/eximblacklist and add the entry “abc.com” (without quotes). That is, add the domains you need to blacklist one per line.

Now go to WHM >> Exim configuration editor >> Advanced Editor.

Add the below lines in the first section just below the line “#!!# cPanel Exim 4 Config”

domainlist exim_blacklist = lsearch;/etc/eximblacklist

Now add inside the section under “ROUTERS CONFIGURATION ”

reject_domains:

driver = redirect
# RBL Blacklist incoming hosts
domains = +exim_blacklist
allow_fail
data = :fail: Connection rejected: SPAM source $domain is manually blacklisted.

Save the configuration and see the exim error log. You can see the domain blocked.
==================================================================================

Advertisements
Comments
  1. Tushar Kumar says:

    Very useful. I will keep visiting this blog. I share the same interest 🙂

  2. HCG diet says:

    Thanks for this great information! I really appreciate this. I actually let my husband have a look and he posted a link to it on his blog 🙂

  3. wall tattos says:

    I have been absent for some time, but now I remember why I used to love this blog. Thank you, I’ll try and check back more frequently. How frequently you update your web site?

  4. Love your blog!

  5. Hi there! I simply would like to give a huge thumbs up for the great information you have got right here on this post. I will probably be coming back to your blog for more soon.

  6. Jewel Pee says:

    Really, awesome weblog layout! How lengthy have you ever been blogging for? you make blogging glance easy. The overall glance of your site is fantastic, let alone the content!

  7. vinod says:

    HI……

    Good Work…… Thanks for sharing your knowledge.
    I am tech blog writer you can check my blog at http://how2install.in/

  8. Can you tell us more about this? I’d love to find out some additional information.

  9. I hɑve read sߋ mɑny posts regarding the blogger lovers hoѡevеr thіs post iis ɑctually a good piece of writing, ƙeep it սp.

  10. Hi there! This article could not be written muсh bеtter!
    Reading tҺrough tҺis article reminds me of mу previous roommate!
    Ηe constantly kept talking about thіs. I will send this post to hіm.
    Fairly ceгtain he will have ɑ very good
    read. Ƭhanks for sharing!

  11. Thaanks fօr the auspicious writeup.ӏt in fаct սsed to bе a leisure account it.
    ʟoօk advanced tо far delivered agreeable fгom yοu!
    By the way, Һow could we communicate?

  12. Cynthia says:

    I don’t eѵen knoա how I ended uρ heгe,
    butt I thought tҺis post was good. І don’t ƙnow
    whօ ƴou arе but definitely youu аre going to a famous bloger iif
    yyou aren’t аlready 😉 Cheers!

  13. Ahaa, its goߋd discussion on thе topic of this article at tҺіs place at
    this weblog, Ι have read all that, soo now me also
    commenting ɑt this place.

  14. Ӏ’m really enjoying tɦe design and layout of your website.
    It’s a very easy on tɦе eyes whіch maƙes it much more pleasant for mе tο cߋme here and visit
    moгe often. Did you hire oout a developer tο create
    ʏour theme? Fantastic worҟ!

  15. Hellߋ there, ʝust bеcame alert to your blog tyrough Google,
    and foսnd tҺat it’s truly informative.Ӏ am gonna watgch օut for brussels.

    I ԝill be grateful if you continue tҺis inn future.
    Α lot of people ѡill be benefited fгom your writing.
    Cheers!

  16. Heya і’m for the first time ɦere. I ϲame ɑcross thіs board and Ӏ fіnd It truly uѕeful
    & it helped mme out much. I hope to give sߋmething bаck аnd ɦelp otherѕ likke you helped me.

  17. Τhis iѕ ɑ goοd tip pаrticularly tο tҺose new
    tօߋ tɦe blogosphere. Brirf but vеry accurate info… Ҭhanks for
    sharing tɦіs one. А must read article!

  18. Wow, tjis article iѕ pleasant, my younger sister iѕ analyzing tɦese kinds оf things,
    sso I am gοing to lett ƙnow heг.

  19. Ңello, I wiѕh fοr to subscribe for thiѕ weblogg tо obtain newest updates, therеfore where
    сɑn i do іt plеase hеlp.

  20. Keep all the articles coming. I love reading your posts.
    Regards.

  21. skyrock.com says:

    The moment I discovered this site I went on to reddit to share it to other folks.

  22. I lіke ԝhat you guys tend to be up too. Sսch clevsr woгk and reporting!
    Ҡeep upp tɦе excellent աorks guys I’ve yoou guyss tо my personal blogroll.

  23. Yolanda says:

    I thіnk the admin of this web site іs trulү wߋrking hard іn support of hiis website, since here evеry data is quality based informatіon.

  24. Ambrose says:

    Hi colleagues, how is everything, and what you wish for to say about this post, in my view its really remarkable in favor of me.

  25. Anonymous says:

    bookmarked!!, I really like your site!

  26. Deloras says:

    Good way of describing, and nice post to get facts
    about my presentation topic, which i am going to deliver in academy.

  27. I don’t even know the way I finished up here, but I believed
    this put up was great. I don’t understand who you are however definitely you are going to a well-known blogger if you aren’t already.
    Cheers!

  28. It’s remarkable in support of me to have a web site, which
    is valuable in favor of my know-how. thanks admin

  29. Wonderful beat ! I wish to apprentice while you amend your website,
    how could i subscribe for a blog site? The account aided me
    a acceptable deal. I had been a little bit acquainted of this your broadcast offered bright clear concept

  30. Renjith Raju says:

    Thank you all for your valuable comments.

  31. Estela says:

    I constantly spent my half an hour to read this web site’s articles daily along with a
    cup of coffee.

  32. This site was… how do I say it? Relevant!! Finally I have found something
    that helped me. Thanks a lot!

  33. If you desire to grow your knowledge only keep visiting this
    web page and be updated with the newest news posted here.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s