ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] postfix и рассылки
@ 2005-09-27  6:11 Дворников Михаил
  0 siblings, 0 replies; only message in thread
From: Дворников Михаил @ 2005-09-27  6:11 UTC (permalink / raw)
  To: community

Postfix 2.0.20 из Мастер 2.4.
Есть две категории пользователей:
1) нет ограничений на прием и отправку писем.
Они записаны в /etc/postfix/mynetworks
2) прием и отправление писем только для локального сервера.
Снаружи они не могут принимать почту. Их записал в
/etc/postfix/restricted_senders и protected_destinations.
Для них привожу кусок main.cf.
Сейчас этот вариант работает.

main.cf
-------
smtpd_recipient_restrictions = permit_mynetworks,
    hash:/etc/postfix/protected_destinations,
    check_sender_access hash:/etc/postfix/restricted_senders,
    permit_auth_destination,reject

smtpd_restriction_classes = local_only,insiders_only
local_only = check_recipient_access hash:/etc/postfix/local_domains,reject
insiders_only = check_sender_access hash:/etc/postfix/local_domains,reject


Решил сделать рассылку через /etc/aliases
rass@	:include: /etc/postfix/rass

Пытался сделать:
smtpd_recipient_restrictions = permit_mynetworks,
    hash:/etc/postfix/protected_destinations,
    check_sender_access hash:/etc/postfix/restricted_senders,
    check_recipient_access hash:/etc/postfix/access,
    permit_auth_destination,reject

В /etc/access
rass@	permit_mynetworks,REJECT
   или даже
rass@	reject

Письма на rass@ идут без ограничений!
Наверно влияет, что адреса находятся в файле.
-- 
С уважением, Дворников Михаил.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-09-27  6:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-27  6:11 [Comm] postfix и рассылки Дворников Михаил

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