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 <malme...@isa.ae> 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 <nb...@unixmexico.org> > To: Mario Remy Almeida <malme...@isa.ae>Cc: qmail-ldap@qmail-ldap.org > > >> 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 <malme...@isa.ae> >> wrote: >>> >>> Hi All, >>> >>> Dose anyone has a patch for qmail-ldap to block attachments on per user >>> basis? >>> >>> For example: >>> us...@example.com is allowed to send emails but us...@example.com is not >>> allowed to send emails with attachments. >> >> >> >> > -- > nbari