ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
From: "Vladimir V. Kamarzin" <vvk@vvk.pp.ru>
To: ALT Linux sysadmin discuss <sysadmins@lists.altlinux.org>
Subject: Re: [Sysadmins] Postfix content_filter
Date: Tue, 30 Dec 2008 17:36:38 +0500
Message-ID: <m3fxk5suuh.fsf@vvk.distance.ru> (raw)
In-Reply-To: <200812301421.00074.sn_kirovograd_sub@rambler.ru> (Nikolay's message of "Tue, 30 Dec 2008 14:20:59 +0200")

>>>>> On 30 Dec 2008 at 17:20 "N" == Nikolay  writes:

N> Доброго дня всем.
N> Подскажите пожалуйста в postfix есть такая чудесная опция 
N> content_filter = smtp-amavis:[amavis.myhost.com]:10024
N> Можно ли сделать так чтобы письма приходящие из  адресов прописаных в 
N> переменной mynetworks не попадали в этот фильтр ?

Можно повесить на левый порт на внешнем интерфейсе smtpd с отключенным
фильтром, типа
xxxx:2525 inet  n       -       n       -       -       smtpd
    -o content_filter =

тогда юзерам придётся перенастроить клиенты.

Можно повесить такой smtpd на localhost
127.0.0.1:2525 inet  n       -       n       -       -       smtpd
    -o content_filter =

и попробовать завернуть туда мыло из mynetworks с помощью check_client_address

smtpd_client_restriction = ...
    check_client_address cidr:/etc/postfix/filter_exclude
    ...

/etc/postfix/filter_exclude:
192.168.0.0/24 FILTER 127.0.0.1:2525

-- 
vvk

Postfix page on f.i: http://freesource.info/wiki/Dokumentacija/Postfix

Russian Postfix irc: irc.freenode.net #postfix-ru

  reply	other threads:[~2008-12-30 12:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-30 12:20 Nikolay
2008-12-30 12:36 ` Vladimir V. Kamarzin [this message]
2008-12-30 12:48   ` Nikolay
2008-12-30 13:09 ` Алексей Шенцев

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=m3fxk5suuh.fsf@vvk.distance.ru \
    --to=vvk@vvk.pp.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