From: Ilya Palagin <tux@fioc.kz>
To: community@altlinux.ru
Subject: Re: [Comm] postfix - запрет на посылку почты с определенных адресов.
Date: Thu, 26 Sep 2002 00:46:56 +0700
Message-ID: <3D91F690.4030006@fioc.kz> (raw)
In-Reply-To: <20020925132051.77658cca.avl@l14.ru>
Alexey V. Lubimov wrote:
> Хочется простого.
> Поместить в файл адреса, с которых мне не хочется получать почту и чтоб
> постфик с этих адресов эту самую почту и не брал.
>
> Прмерно так:
>
> Out: 220 l14.ru ESMTP Postfix
> In: EHLO 62.5.1.1
> Out: 250-server.my.ru
> Out: 250-PIPELINING
> Out: 250-SIZE 10240000
> Out: 250-ETRN
> Out: 250-XVERP
> Out: 250 8BITMIME
> In: MAIL From: <testing@cytron.com>
> Out: 554 <testing@cytron.com>: spamers must die!!!
> In: QUIT
> Out: 221 Bye
>
> Нашел две потенциальные возможности:
>
> /etc/postfix/access
>
> /^user@my.domain/ REJECT
>
> Но по моему, это селекция поля MAIL To:, а не MAIL From:
>
> Еще нашел вот что:
>
> $man 5 pcre_table
> ...
> EXAMPLE HEADER FILTER MAP
> /^Subject: make money fast/ REJECT
> /^To: friend@public\.com/ REJECT
> ...
> Но в каком это файле и какой командой обновляется?
> Или это просто пример фильтра для почты сделанный аналогично тому, как
> это делают антивирусы?
>
>
У меня адреса блокируются так:
файл main.cf:
smtpd_sender_restrictions = check_sender_access hash:/etc/postfix/uce/block
содержимое /etc/postfix/uce/block:
spammer@narod.ru REJECT
spammer@hotmail.com REJECT
после удаления\добавления нужно делать postmap block
если хотите использовать regexp:
smtpd_sender_restrictions = check_sender_access
regexp:/etc/postfix/uce/block
Вообще есть очень хороший документ, дающий исчерпывающую
информацию по UCE в postfix:
http://www.mengwong.com/misc/postfix-uce-guide.txt
next prev parent reply other threads:[~2002-09-25 17:46 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-09-25 9:20 Alexey V. Lubimov
2002-09-25 14:07 ` [Comm] " Vitaly Ostanin
2002-09-25 16:37 ` "Алексей Любимов"
2002-09-25 16:52 ` Artem K. Jouravsky
2002-09-25 17:33 ` "Алексей Любимов"
2002-09-26 7:54 ` Artem K. Jouravsky
2002-09-26 8:24 ` Alexey V. Lubimov
2002-09-26 9:14 ` [Comm] fighting with... antispammers (Re: postfix - запрет на посылку почты с определенных адресов.) Artem K. Jouravsky
2002-09-25 17:46 ` Ilya Palagin [this message]
2002-09-25 18:12 ` [Comm] postfix - запрет на посылку почты с определенных адресов "Алексей Любимов"
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3D91F690.4030006@fioc.kz \
--to=tux@fioc.kz \
--cc=community@altlinux.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git