From linux-bounces@lug.lk Tue Aug 18 17:02:11 2009
Return-path: <linux-bounces@lug.lk>
Envelope-to: lurker@linux.lk
Delivery-date: Tue, 18 Aug 2009 17:02:11 +0530
Received: from localhost.pdn.ac.lk ([127.0.0.1] helo=penguin.lug.lk)
	by penguin.lug.lk with esmtp (Exim 4.63)
	(envelope-from <linux-bounces@lug.lk>)
	id 1MdMvC-0005WB-T7; Tue, 18 Aug 2009 17:02:10 +0530
Received: from localhost.pdn.ac.lk ([127.0.0.1] helo=penguin.lug.lk)
	by penguin.lug.lk with esmtp (Exim 4.63)
	(envelope-from <linux-umbrella-bounces@lug.lk>)
	id 1MdHJZ-00035C-2b; Tue, 18 Aug 2009 11:02:57 +0530
Received: from [192.248.40.1] (helo=hantana.pdn.ac.lk)
	by penguin.lug.lk with esmtp (Exim 4.63)
	(envelope-from <mihiratheace@gmail.com>) id 1MdHJW-000351-9R
	for linux@lug.lk; Tue, 18 Aug 2009 11:02:54 +0530
Received: from localhost (localhost.pdn.ac.lk [127.0.0.1])
	by hantana.pdn.ac.lk (Postfix) with ESMTP id 22C125C045
	for <linux@lug.lk>; Tue, 18 Aug 2009 11:04:09 +0530 (LKT)
X-Virus-Scanned: amavisd-new at pdn.ac.lk
Received: from hantana.pdn.ac.lk ([127.0.0.1])
	by localhost (hantana.pdn.ac.lk [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id M9fEYB3FZWit for <linux@lug.lk>;
	Tue, 18 Aug 2009 11:04:08 +0530 (LKT)
Received: from kitul.learn.ac.lk (kitul.learn.ac.lk [192.248.1.163])
	by hantana.pdn.ac.lk (Postfix) with ESMTP id 17CEA5C04E
	for <linux@lug.lk>; Tue, 18 Aug 2009 11:04:08 +0530 (LKT)
Received: from localhost (localhost [127.0.0.1])
	by kitul.learn.ac.lk (Postfix) with ESMTP id 110BB17B9F0
	for <linux@lug.lk>; Tue, 18 Aug 2009 11:04:08 +0530 (IST)
X-Virus-Scanned: amavisd-new at learn.ac.lk
Received: from kitul.learn.ac.lk ([127.0.0.1])
	by localhost (kitul.learn.ac.lk [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id zpeIsXnsH7jO for <linux@lug.lk>;
	Tue, 18 Aug 2009 11:03:57 +0530 (IST)
Received: from rv-out-0708.google.com (rv-out-0708.google.com [209.85.198.246])
	by kitul.learn.ac.lk (Postfix) with ESMTP id A4F8517B9D2
	for <linux@lug.lk>; Tue, 18 Aug 2009 11:03:33 +0530 (IST)
Received: by rv-out-0708.google.com with SMTP id k29so854610rvb.36
	for <linux@lug.lk>; Mon, 17 Aug 2009 22:33:32 -0700 (PDT)
Received: by 10.140.161.10 with SMTP id j10mr1000533rve.137.1250573612136;
	Mon, 17 Aug 2009 22:33:32 -0700 (PDT)
Received: from ace-laptop.localnet ([123.231.110.57])
	by mx.google.com with ESMTPS id l31sm20942204rvb.34.2009.08.17.22.33.31
	(version=SSLv3 cipher=RC4-MD5); Mon, 17 Aug 2009 22:33:31 -0700 (PDT)
From: Mihira Fernando <mihiratheace@gmail.com>
To: linux@lug.lk
Date: Tue, 18 Aug 2009 11:03:28 +0530
User-Agent: KMail/1.12.0 (Linux/2.6.31-5-generic; KDE/4.3.0; x86_64; ; )
References: <970752.32629.qm@web110501.mail.gq1.yahoo.com>
In-Reply-To: <970752.32629.qm@web110501.mail.gq1.yahoo.com>
MIME-Version: 1.0
Message-Id: <200908181103.28538.mihiratheace@gmail.com>
X-BeenThere: linux-umbrella@lug.lk
X-Mailman-Version: 2.1.9
Precedence: list
X-Mailman-Approved-At: Tue, 18 Aug 2009 17:02:09 +0530
Subject: Re: [linux] User List based restrictions - Postfix
X-BeenThere: linux@lug.lk
Reply-To: linux@lug.lk
List-Id: <linux.lug.lk>
List-Unsubscribe: <https://secure.lug.lk/mailman/listinfo/linux>,
	<mailto:linux-request@lug.lk?subject=unsubscribe>
List-Archive: <http://secure.lug.lk/pipermail/linux>
List-Post: <mailto:linux@lug.lk>
List-Help: <mailto:linux-request@lug.lk?subject=help>
List-Subscribe: <https://secure.lug.lk/mailman/listinfo/linux>,
	<mailto:linux-request@lug.lk?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: linux-bounces@lug.lk
Errors-To: linux-bounces@lug.lk

On Tuesday 18 August 2009 10:27:26 am Yasantha Uggallage wrote:
> Hai all,
>  
> It is possible to block attachments by file extensions using
> "mime_header_checks" in postfix. But this setting applies to all users. Is
> it possible to exempt some users from the above restriction or to put that
> restriction to a list of users? 
> At the same time I want to use "message_size_limit" also based on user list
> or group of users. If "message_size_limit" is put to main.cf, it applies to
> all users. If there are any howtos or tutorials, pls let us have the links.
> I googled and found nothing relating to this. Thank you, 

you need a policy server for this.  Try with policyd - http://www.policyd.org

Mihira


_______________________________________________
linux mailing list
linux@lug.lk
https://secure.lug.lk/mailman/listinfo/linux

