ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: Anton Kvashin <foo@junior.esoo.ru>
To: ALT Linux sysadmin discuss <sysadmins@lists.altlinux.org>
Subject: Re: [Sysadmins] Ограничение доступа к почте
Date: Thu, 11 May 2006 10:41:52 +0600
Message-ID: <4462C090.1020305@junior.esoo.ru> (raw)
In-Reply-To: <701716ab0605100548x5d807d1bu162111b6a0fae6c5@mail.gmail.com>

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


  parent reply	other threads:[~2006-05-11  4:41 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-10 12:48 Andrei Osipov
2006-05-10 13:50 ` Anatol B. Bazjukin
2006-05-10 14:31   ` Andrei Osipov
2006-05-11  4:41 ` Anton Kvashin [this message]
2006-05-11  5:21   ` Andrei Osipov

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=4462C090.1020305@junior.esoo.ru \
    --to=foo@junior.esoo.ru \
    --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