From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Tue, 10 Jun 2003 23:02:07 +0700 From: Ilya Palagin To: ALTLinux community Message-ID: <20030610160207.GA1321@tux> Mail-Followup-To: ALTLinux community References: <20030610144330.GE21307@mrkooll.tdr.pibhe.com> <20030610154605.GA1014@tux> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20030610154605.GA1014@tux> User-Agent: Mutt/1.3.28i Subject: [Comm] Re: postfix filtering 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: > # Определяем собственный класс проверки доступа > 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