From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Message-ID: <4462C090.1020305@junior.esoo.ru> Date: Thu, 11 May 2006 10:41:52 +0600 From: Anton Kvashin User-Agent: Thunderbird 1.5.0.2 (X11/20060502) MIME-Version: 1.0 To: ALT Linux sysadmin discuss References: <701716ab0605100548x5d807d1bu162111b6a0fae6c5@mail.gmail.com> In-Reply-To: <701716ab0605100548x5d807d1bu162111b6a0fae6c5@mail.gmail.com> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 8bit X-Spam-Score: -2.8 (--) X-Spam-Report: Spam detection software, running on the system "smtp.esoo.ru", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Andrei Osipov wrote: > Интересует такой вопрос - можно ли средствами exim и dovecot > органичить доступ из-вне по SMTP и POP3 для определенного домена? В exim можно так, в acl_smtp_rcpt: deny message = RCPT domain $domain is closed for you. set acl_m0 = ${if eq{$domain}{mydomain.com} {yes}{no} } set acl_m1 = ${lookup{$sender_host_address}\ lsearch{/path/to/file/deny}{yes}{no}} condition = ${if and { {eq{$acl_m0}{yes}}\ {eq{$acl_m1}{yes}} } } [...] Content analysis details: (-2.8 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -2.8 ALL_TRUSTED Passed through trusted hosts only via SMTP Subject: Re: [Sysadmins] =?koi8-r?b?78fSwc7J3sXOycUgxM/T1NXQwSDLINDP3tTF?= X-BeenThere: sysadmins@lists.altlinux.org X-Mailman-Version: 2.1.7 Precedence: list Reply-To: ALT Linux sysadmin discuss List-Id: ALT Linux sysadmin discuss List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 May 2006 04:41:52 -0000 Archived-At: List-Archive: Andrei Osipov wrote: > Интересует такой вопрос - можно ли средствами exim и dovecot > органичить доступ из-вне по SMTP и POP3 для определенного домена? В exim можно так, в acl_smtp_rcpt: deny message = RCPT domain $domain is closed for you. set acl_m0 = ${if eq{$domain}{mydomain.com} {yes}{no} } set acl_m1 = ${lookup{$sender_host_address}\ lsearch{/path/to/file/deny}{yes}{no}} condition = ${if and { {eq{$acl_m0}{yes}}\ {eq{$acl_m1}{yes}} } } Файл deny содержит "из вне": 192.168.1.1 172.16.0.1 .. -- Anton Kvashin