From: Denis Kuznetsov <kde@kde.kiev.ua>
To: ALT Linux sysadmin discuss <sysadmins@lists.altlinux.org>
Subject: Re: [Sysadmins] postfix header_checks
Date: Fri, 24 Apr 2009 11:56:45 +0300
Message-ID: <200904241156.46042.kde@kde.kiev.ua> (raw)
In-Reply-To: <m3fxfypqzf.fsf@vvk.distance.ru>
Доброго времени суток!
On Friday 24 April 2009 08:20:36 Vladimir V. Kamarzin wrote:
> >>>>> On 23 Apr 2009 at 20:49 "DK" == Denis Kuznetsov writes:
>
> DK> Доброго времени суток!
> DK> в main.cf прописано:
> DK> header_checks = pcre:/etc/postfix/header_checks
> DK> mime_header_checks = pcre:/etc/postfix/header_checks
>
> DK> соответственно в /etc/postfix/header_checks:
> DK> /^Received:.*\.altlinux\.org/ OK
> DK> /^Received:.*\d{1,3}-\d{1,3}[-\.]\d{1,3}-\d{1,3}/ REJECT Please use
> ISP relay DK> /^Received:.*dsl\.dynamic\d{1,}\.ttnet\.net\.tr/ REJECT
> Please use ISP relay
>
> Each message header or message body line is compared against a
> list of patterns. When a match is found the corresponding action is
> executed, and the matching process is repeated for the next message header
> or message body line.
>
> Как уже сказали, используйте check_client_access
Я так понимаю Вы имели ввиду нечто вида:
smtpd_recipient_restrictions =
....
check_client_access pcre:/etc/postfix/access_client_pcre,
....
Попробовал, работает. Посмотрим насколько эффективно это будет работать.
--
Denis Kuznetsov
mailto: kde@kde.kiev.ua
jabber: denis.e.kuznetsov@gmail.com
next prev parent reply other threads:[~2009-04-24 8:56 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-23 14:49 Denis Kuznetsov
2009-04-23 17:07 ` Afanasov Dmitry
2009-04-23 19:43 ` Denis Kuznetsov
2009-04-23 20:10 ` Sergey
2009-04-23 20:44 ` Denis Kuznetsov
2009-04-24 6:57 ` Sergey
2009-04-24 7:50 ` Владимир
2009-04-24 8:09 ` Max Ivanov
2009-04-24 8:53 ` Владимир
2009-04-24 9:18 ` Denis Kuznetsov
2009-04-24 11:05 ` Vladimir V. Kamarzin
2009-04-24 12:38 ` Sergey
2009-04-24 12:46 ` Max Ivanov
2009-04-27 6:36 ` Владимир
2009-04-27 7:29 ` Sergey
2009-04-27 11:05 ` Anton Kvashin
2009-09-24 5:37 ` Roman Savochenko
2009-09-24 10:04 ` Andrii Dobrovol`s`kii
2009-09-24 5:38 ` [Sysadmins] Странные проблемы с сетью Roman Savochenko
2009-04-24 5:20 ` [Sysadmins] postfix header_checks Vladimir V. Kamarzin
2009-04-24 8:56 ` Denis Kuznetsov [this message]
2009-04-24 9:22 ` Владимир
2009-04-24 10:57 ` Vladimir V. Kamarzin
2009-04-24 11:13 ` Denis Kuznetsov
2009-04-24 11:34 ` Владимир
2009-04-24 11:54 ` Denis Kuznetsov
2009-04-24 11:19 ` Denis Kuznetsov
2009-04-24 11:31 ` Denis Kuznetsov
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=200904241156.46042.kde@kde.kiev.ua \
--to=kde@kde.kiev.ua \
--cc=sysadmins@lists.altlinux.org \
/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 sysadmins discussion
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/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 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
public-inbox-index sysadmins
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sysadmins
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git