From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Tue, 10 Jun 2003 19:35:03 +0300 From: Maxim Tyurin To: ALTLinux community Subject: Re: [Comm] Re: postfix filtering Message-ID: <20030610163503.GF21307@mrkooll.tdr.pibhe.com> Mail-Followup-To: ALTLinux community References: <20030610144330.GE21307@mrkooll.tdr.pibhe.com> <20030610154605.GA1014@tux> <20030610160207.GA1321@tux> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20030610160207.GA1321@tux> User-Agent: Mutt/1.4.1i Sender: community-admin@altlinux.ru Errors-To: community-admin@altlinux.ru X-BeenThere: community@altlinux.ru X-Mailman-Version: 2.0.9 Precedence: bulk Reply-To: community@altlinux.ru List-Unsubscribe: , List-Id: List-Post: List-Help: List-Subscribe: , List-Archive: Archived-At: List-Archive: List-Post: On Tue, Jun 10, 2003 at 11:02:07PM +0700, Ilya Palagin wrote: > > # Определяем собственный класс проверки доступа > > smtpd_restriction_classes = custom_restrictions_1 > > custom_restrictions_1 = check_sender_access regexp:/etc/postfix/uce/list_1 > > reject > > > > smtpd_recipient_restrictions = permit_mynetworks > > check_recipient_access regexp:/etc/postfix/uce/recipient_regex > > check_relay_domains > > > > содержимое list_1 - список внешних адресов, с которых можно принимать > > письма на контролируемые адреса: > > ........... > > /a@domain.com/ OK > > /b@domain.com/ OK > > ........... > > > > > > содержимое recipient_regex - список контролируемых адресов в > > вашей сети: > > ........... > > /^community@altlinux.*/ custom_restrictions_1 > > ........... > > > > Алгоритм такой: получив письмо на адрес community@altlinux.*, > > постфикс запустит для него проверку правила > > custom_restrictions_1. Если отправитель не принадлежит списку > > list_1, его письмо попадет на reject. > В вашем случае нужно поменять списки адресов местами - адреса @domain.com положить в > recipient_regex, а community@altlinux.* - в list_1 Спасибо. -- With Best Regards, Maxim Tyurin JID: MrKooll@jabber.pibhe.com