Re: block attachments on per user basis

Nicolas de Bari Embriz Garcia Rojas <[email protected]> Wed, 19 Sep 2012 09:58:13 +0100
Newsgroups gmane.mail.qmail.ldap
Message-ID <CAG+iRUm4nnkNQDB4TZshWCCTJxt3vKxcAwrf3Nr7EnDmcAdt8Q@mail.gmail.com>
To apply it per user try to follow the logic describe here:
http://code.google.com/p/qmail-ldap-smtpauthuser/wiki/HowTo

you can use try to extend this:
http://qmail-ldap-smtpauthuser.googlecode.com/svn/trunk/smtpthrottle.pl
to meat your needs.

regards


On Mon, Sep 17, 2012 at 4:12 PM, Mario Remy Almeida <[email protected]> wrote:
> Hi,
>
> I have the attached patched which works fine, but its per IP base not per
> user. I need to know how can I read an attribute from ldap in qmail-smtpd.c.
>
>
>
> Subject: Re: block attachments on per user basis
> Date: Mon, 17 Sep 2012 15:47:28 +0100
> From: Nicolas de Bari Embriz Garcia Rojas <[email protected]>
> To: Mario Remy Almeida <[email protected]>Cc: [email protected]
>
>
>> attachments + txt build the full email package so for been available
>> to allow user to send only attachments maybe you will need something
>> that could read the full package before releasing the email, maybe is
>> simpler to limit the user via send quota.
>>
>> On Mon, Sep 17, 2012 at 1:03 PM, Mario Remy Almeida <[email protected]>
>> wrote:
>>>
>>> Hi All,
>>>
>>> Dose anyone has a patch for qmail-ldap to block attachments on per user
>>> basis?
>>>
>>> For example:
>>> [email protected] is allowed to send emails but [email protected] is not
>>> allowed to send emails with attachments.
>>
>>
>>
>>
>



-- 
> nbari