Exim: автоблокировка спам-хостов

Exim: автоблокировка спам-хостов

Несмотря на то, что моя конфигурация Exim вышла довольно удачной, некоторое количество спама через нее все же проходит. Как правило, сыпется он с одних и тех же спам-серверов, которые можно блокировать. Однако, каждый раз ходить на сервер через некоторое время становится лениво, потому автоматизируем процесс:

#!/bin/sh

for file in `find /var/mail/yourdomain.com/spamreport/new -type f`
do
    cat $file | grep "Subject: block=" | sed 's/Subject: block=//' >> /usr/local/etc/exim/spam-hosts
done

rm -f /var/mail/yourdomain.com/spamreport/new/*

Осталось внести изменения в конфигурацию Exim. Добавляем в /usr/local/etc/exim/100.main.conf:

hostlist bad_hosts = net-iplsearch;/usr/local/etc/exim/spam-hosts

В /usr/local/etc/exim/configure правим ту часть, где описывается acl_check_rcpt:

# Эти правила срабатывают для каждого письма
acl_check_rcpt:

warn set acl_c_lp       = $local_part@$domain

deny   message = Relay not permitted
       hosts = +bad_hosts

Создаем файл и перезапускаем Exim:

# touch /usr/local/etc/exim/spam-hosts
# /usr/local/etc/rc.d/exim restart

Для успешной работы надо создать почтовый ящик [email protected] и вставить вызов скрипта в Cron. Теперь на [email protected] можно отправлять письма с темой «block=123.32.14.56», где 123.32.14.56 — ip спам-сервера.

Рейтинг 3.00/5

154 thoughts on “Exim: автоблокировка спам-хостов

  1. Круто! Еще бы whitelist (но это можно реализовать самим exim-ом) и в репорты добавить причину блокировки.

  2. ทางเข้า GTR365BET หนทางเข้าสู่เว็บเดิมพันออนไลน์ แหล่งเงินมากมายให้คุณหอบกลับบ้าน

  3. I think this is among the most significant info for me. And i
    am glad reading your article. But wanna remark on some general
    things, The web site style is great, the articles
    is really nice : D. Good job, cheers

  4. Simply wish to say your article is as astonishing.
    The clearness in your submit is just great and that i could think you are an expert in this subject.
    Well with your permission allow me to clutch your RSS feed to stay
    updated with coming near near post. Thank you a million and
    please keep up the enjoyable work.

  5. Fantastic beat ! I wish to apprentice whilst yyou amend your site, how can i subscribge for a blog web site?
    The account helped me a appropriate deal. I have
    been a little bit familiar of this your broadcast offered brilliant transparent
    idea
    чем повысить иммунитет homepage купить бады

  6. You always know just what to say and how to say it.
    I love how you can find a silver lining in the darkest clouds.
    Thanks for your own hard work on this web site. My mother takes pleasure in setting aside time for internet research and it’s easy to see why. Most people know all of the powerful tactic you present invaluable thoughts on the blog and as well as inspire contribution from others about this content then our favorite daughter is without a doubt discovering so much. Take advantage of the remaining portion of the year. You’re doing a great job.
    View our blogs to get more info:
    sex toys shop

  7. Your energy is contagious.
    Thank you for embracing the things that make us different.
    My wife and i were very relieved that Emmanuel could finish off his survey from the precious recommendations he gained in your web page. It is now and again perplexing to just continually be freely giving tips and hints that many other folks have been making money from. We acknowledge we have got the writer to be grateful to for that. The main explanations you’ve made, the straightforward site navigation, the relationships your site help promote – it is most wonderful, and it is assisting our son in addition to our family believe that this matter is enjoyable, and that’s rather serious. Thanks for all!

    Check out the New products from this website:
    strap on dildos

  8. Download Music/Labels/FLAC/LIVESETS/Music Videos/Series: http://0daymusic.org

    his is a good source for DJ’s and music lovers that have hectic daily schedules and
    not enough time to spend looking for the daily basic or older releases,
    the FTP is the best tool that will assist them in getting all wanted releases at once with a simple drag and drop feature!

    Make sure your music library is up to date! Select your favourite play and join today.
    Your music library will surely be better than others!

    Available things on the server:

    150 – 200 new albums every day (Including website posts, 0-day
    scene releases, unreleased tracks.)
    Own, fresh BEATPORT section with non-scene, exclusive albums!

    Archives since 2009
    All website posts from: http://www.0daymusic.biz, http://www.htrk.org, http://www.mp3trackz.com
    Section for the best releases (Sorted by months.)
    DJ / Producer applications (For mixing and making music.)
    Full discographies (Huge archive from the
    greatest labels like Cadenza, M-nus, etc.)
    Sample CD’s (Loops, etc.)
    Sorted section (by style and date)
    Request section (If you need something.)
    Etc.. a lot of cool things!
    List of all allowed styles: Deep House, Electronic, House, Minimal, Techno, Tech-house, Trance, etc.

  9. This is the perfect site for everyone who wishes to find
    out about this topic. You understand a whole lot its almost tough to argue with you (not that I really will need to…HaHa).

    You definitely put a brand new spin on a topic that has been written about for ages.
    Excellent stuff, just wonderful!

  10. I believe everything said was very logical.
    However, consider this, suppose you typed a catchier post title?
    I mean, I don’t wish to tell you how to run your blog, however suppose you added a post title to maybe get folk’s attention? I mean Exim:
    автоблокировка спам-хостов « jared.kiev.ua
    is kinda vanilla. You could glance at Yahoo’s front page and see how they write news titles to
    grab people interested. You might add a video or a picture
    or two to grab people excited about everything’ve got to say.
    Just my opinion, it would bring your posts a little livelier.

  11. Superb website you have here but I was curious about if you knew of any forums
    that cover the same topics talked about in this article? I’d really love
    to be a part of online community where I can get feedback from other experienced individuals that share the same interest.
    If you have any recommendations, please let me know. Thank you!

  12. Tarot makes use of a session past the platform also provides one hundred
    assured satisfaction you. For true progress of our souls there is previous life reading aura chakra reading.
    And i be aware there’s a follow which initiated as a type of submit-cognition. These old-fashioned of astrology
    there may be stress on each symbolic and extremely. I woke up on the power of individuals have ascertained their faith in astrology.

    Training your precognitive powers to at least one sort of studying the power of the reader.
    No that is verified tarot reader can provide a relaxed setting where
    they’ve. You will have no more kinds of tarot card readers personally at the moment
    one can get. These readers usually are not being conducted
    with idea artist Sue Nichols about. Firstly studying tarot
    cards and tarot readers for his or her points
    is important to make. She certainly knows the way to carry out
    a psychic reading using established card meanings.

    By using the download a tarot reading app on their site after approval.

  13. When I initially left a comment I seem to have clicked
    the -Notify me when new comments are added- checkbox and now whenever a
    comment is added I recieve 4 emails with the same comment.
    There has to be a way you can remove me from that service?
    Thank you!

Добавить комментарий для sponsorki Отменить ответ

Ваш адрес email не будет опубликован.