Несмотря на то, что моя конфигурация 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 = [email protected]$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 спам-сервера.
#1 by 22705 live status on 28.01.2021 - 00:08
Quote
Perhaps, there is something wrong using your resource textbox.
You may also do marketing and advertising through various
video sites to lead people bacdk to your web page.
#2 by 918kiss wukong on 29.01.2021 - 05:28
Quote
This was the Gene Simmons costume for thhe 1st couple of years of his joining KISS.
Used copies flew off thhe shelves make any difference how badly abused had been looking.
It’s about the only thing she isn’t taking part in.
#3 by https://wildriftjp.com on 30.01.2021 - 03:58
Quote
Theyy are in effect my collwagues on internet. You can also pay a visit
to blogs which hsve authority inside your market and make a think.
This is really a traditional obtain little women off alll ages.
#4 by joker casino on 30.01.2021 - 08:25
Quote
The best way to build trust is to continually put out good content.
The more places you are seen, the stronger your message will be.
Thee one underlying factor is «white hat techniques» always do property thing.
#5 by download huuuge casino on 30.01.2021 - 19:51
Quote
You’ll find many respectable poker rooms along with other live dealer casinos offering the Omaua Poker version. The software I reviewed is guaranteed to be Adware and Virus free, and features many great reviews.
#6 by mobile freeroll slot tournaments on 01.02.2021 - 19:12
Quote
A vital point yet often overlooked item that a site owner will usually concentrate on is spelling.
Thiis activity can be challenging, for that reason it might be bes for older kids or even young teenagers.
#7 by سعر جرام الذهب في سوريا اليوم on 01.02.2021 - 21:13
Quote
I believe this is one of the so much significant info for me.
And i am satisfied studying your article. But wanna remark on some general issues, The web site taste is perfect, the articles is in point of fact excellent
: D. Good task, cheers https://about.me/matthew_munoz
#8 by freelance wordpress developer kuala lumpur on 02.02.2021 - 02:46
Quote
First of all I want to say awesome blog! I had a quick question which I’d like to ask
if you do not mind. I was curious to find out how you center yourself and clear your head prior to writing.
I’ve had trouble clearing my thoughts in getting my thoughts out there.
I truly do take pleasure in writing but it just seems
like the first 10 to 15 minutes are generally lost simply just trying to figure out how to begin. Any recommendations or tips?
Appreciate it!
#9 by sky777 on 04.02.2021 - 10:24
Quote
The grain used generating bread and feeding chickens has went up because theree just isn’t as
muxh as there usually is. Consulting several doctirs will help to ensure
the most accurate diagnosis possible.
#10 by 우리카지노 on 05.02.2021 - 01:29
Quote
Thank you for sharing your thoughts. I truly appreciate your efforts and I will be waiting for your further write ups thank you once again.
#11 by live blackjack tournaments on 07.02.2021 - 00:04
Quote
However, at Dublin Bet, can eaasily play your favorite casino games with a
ezugi casinos free-of-charge. You always pay through the house, even if
there are 4 othyer players at the table.
#12 by 100days.us on 07.02.2021 - 21:17
Quote
Manny plaayers tend to scafe oof busting, so simply take a couple
of cards, then stand aand hoping for winning.
Thus it’s almost impossible to predict the changes.
The probability of winning big is low due for the house advantage.
#13 by mega gold casino on 09.02.2021 - 18:18
Quote
You may not realize this, but content on Myyspace is picked upp by ask search very, immediately.
This is incredibly good involving getting initial traffic in your site.
#14 by kat on 13.02.2021 - 22:49
Quote
Hello friends, how is the whole thing, and what you desire to say on the topic of this
post, in my view its really remarkable for me.
#15 by https://bovaruhuset.se on 14.02.2021 - 10:03
Quote
Great information. Lucky me I recently found your website by chance (stumbleupon).
I’ve book marked it for later!
#16 by 먹튀사이트 먹튀검증 on 18.02.2021 - 16:10
Quote
Peculiar article, just what I needed.
Here is my web site — 먹튀사이트 먹튀검증
#17 by Saba on 24.02.2021 - 14:39
Quote
Our Islamabad-based independent escort organization gives VIP escort administrations in Islamabad satisfying global guidelines of escort administrations. Our suggestive and VIP call young ladies will make your evening and outing noteworthy.
Call in Islamabad Escorts Service Islamabad