From: Noel Jones on
On 7/23/2010 6:42 PM, Andrés Gattinoni wrote:
> On Fri, Jul 23, 2010 at 8:31 PM, Jeroen Geilman<jeroen(a)adaptr.nl> wrote:
>> On 07/24/2010 12:44 AM, Andrés Gattinoni wrote:
>>>
>>> Hi guys, I have the following question:
>>>
>>> Is it possible to restrict some virtual accounts from sending emails
>>> through my Postfix?
>>>
>>
>> What does "through" mean ?
>> If you mean FROM an address that is in your virtual_*_maps, then no, not
>> trivially.
>
> I mean clients connecting to my Postfix to send emails to external MTAs.
> Currently only authenticated users relay emails through my MTA. What I
> want to do is that only SOME of them can do so.

Enable SASL and only give passwords to the folks authorized to
send mail and remove your local network from the mynetworks
setting.
http://www.postfix.org/SASL_README.html

-- Noel Jones