ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Алексей Данилович" <mlists@list.ru>
To: community@altlinux.ru
Subject: Re: [Comm] Как сделать почту локальной
Date: Tue, 20 Jul 2004 01:05:40 +0400
Message-ID: <40FC37A4.1010001@list.ru> (raw)
In-Reply-To: <200407190932.13200.combr@vesna.ru>

Mike Lykov пишет:

>В сообщении от Суббота 17 Июль 2004 00:15 Алексей Данилович написал:
>
>  
>
>>Не подскажет ли кто-нибудь, как сделать для какого-либо пользователя,
>>чтобы он мог посылать/получать почту только в/из моего домена, а не во
>>    
>>
>
>
>вот как мне ответили одно время. сразу скажу - в postfix это проще ;)
>
>-----------------
>  
>
>>есть почтовый сервер (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]
>
>---------------------------
>
>  
>
Упс... Сапсибо огромное... Это, как я понимаю, редактировать напрямую 
.cf? Я внем не педрю, нельзя ли чуть подробнее? Или где прочитать?
А в постфиксе это как делается, а то я на него собираюсь перейти...

Спасибо,
Алексей


  reply	other threads:[~2004-07-19 21:05 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-16 19:15 Алексей Данилович
2004-07-19  4:32 ` Mike Lykov
2004-07-19 21:05   ` Алексей Данилович [this message]
2004-07-20  4:07     ` Mike Lykov
2004-07-20 15:51       ` Алексей Данилович

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=40FC37A4.1010001@list.ru \
    --to=mlists@list.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