ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Dmitry Lebkov <dima@sakhalin.ru>
To: community@altlinux.ru
Subject: Re: [Comm] пересылка почты только в пределах своего домена
Date: Sat, 29 Mar 2003 01:44:41 +1000
Message-ID: <20030329014441.39a665d0.dima@sakhalin.ru> (raw)
In-Reply-To: <200303281449.46146.combr@vesna.ru>

On Fri, 28 Mar 2003 14:49:44 +0400
Mike Lykov <combr@vesna.ru> wrote:

> 
> Хелло всем!
> 
> вот вопрос такой возник:
> 
> есть почтовый сервер (sendmail 8.11.6), который обслуживает некоторый
> домен. возникла необходимость завести несколько пользователей, для
> которых должна быть доступна только локальная доставка в пределах
> этого домена.
> 
> т.е. при попытке таким узером послать почту вовне этого домена -
> запрещение.

Путей много. Вот примерный сценарий одного из. Сделать map (назовем его
restricted), содержащий:

user1@your.domain.tld	LOCAL
user2@your.domain.tld	LOCAL

Определить новый класс (обзовем ldomains), содержащий домены, на которые
можно отправлять почту "урезанным" юзерам (или можно тоже все это в map
засунуть):

your.domain.tld		OK
domain2.tld		OK


и дописать в набор Local_check_rcpt необходимые правила, проверяющие
наличие 'MAIL FROM:' в restricted и наличие доменной части 'MAIL FROM'
в ldomains. Что-то типа:

R$*		$: <$&{mail_addr}>
R<$+ @ $*>	$: <$(restricted $1@$2 $: ? $)> <$(ldomains $2 $: ?)>
R<LOCAL><?>	$#error $@ 5.7.1 $: "550 Relaing denied"
R<LOCAL><OK>	$@ OK
R<$*><$*>	$@ OK


> что-то ничего в голову не идет. может, кто скажет - как?

Или проблема, именно в написании правил?


--
WBR, Dmitry Lebkov


      reply	other threads:[~2003-03-28 15:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-28 10:49 Mike Lykov
2003-03-28 15:44 ` Dmitry Lebkov [this message]

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=20030329014441.39a665d0.dima@sakhalin.ru \
    --to=dima@sakhalin.ru \
    --cc=community@altlinux.ru \
    /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 Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/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 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git