Hello All,  
  
I am implementing a qmail-ldap in a company that uses   
groupwise. For groupwise, they have control over who  
can send email to internet or not, as well as the size  
of maximum outgoing mails by user.  
  
They are asking me to adapt qmail-ldap so it behave  
the same way as groupwise.  
  
I created a local schema called dasa.schema, and there  
I have two attributes and one object class, as below:  
  
objectClass = dasaUser (  
  internetAccess = {enable|disable}  
  mailClass = {intranet|internet|all}  
)  
  
I simplified the way schemas are wrote, the file itself  
is using the correct syntax. The attribute internetAccess  
is for authorization on Squid, and will not be used for  
qmail-ldap. The other one means:  
-intranet= can send/receive from intranet  
-internet= can send/receive from internet  
-all= can send/receive from both intra & internet  
  
I would like to use the already there attribute  
mailSizeMax for control of size of outgoing   
mail for each user. Something like:  
  
1) Mail comes to the server for relaying  
2) Server checks if the user is authorized to  
   receive mail from the source (inter/intra),  
   if not sends a return mail to the user and  
   stops processing that request  
3) Else, server checks if the mail is over  
   size limit (mailSizeMax), if yes sends a  
   return mail to the user and stops processing  
   that request.  
4) Otherwise, server sends the email to destination  
  
My questions are:  
  
1) is there any patch or product for qmail-ldap  
   to help me solve this without hacking?  
  
2) if not, can you provide me with directions on  
   where/what to change the code in order to have 
   qmail-ldap behaving that way? 
 
3) if not, I already have a C code that gets the 
   information from LDAP and prepares everything 
   but I am not good enough on C that I know how 
   to receive the email from STDIN, process it 
   and send it to STDOUT, as it seem some plugins 
   for qmail (viruscan et al) do. In this case, 
   may be someone can guide me to another C code 
   that I can use for learning the ways to process 
   STDIN/STDOUT and the contents. 
  
Wow, too much words! 
But I believe they are needed in order to make  
things easier to understand. Thanks for the  
patience and answers. 
 
Bye,  
Fernando Maciel Souto Maior  
[EMAIL PROTECTED]  
http://www.araujo.com.br  
+55+31 3270-5886  

AVISO--------------------------------------------
Esta mensagem pode conter informacao confidencial ou privilegiada.
Se voce nao for o destinatario ou a pessoa autorizada a receber 
esta mensagem, nao pode usar, copiar ou divulgar as informacoes 
nela contidas ou tomar qualquer acao baseada nessas informacoes.
Se voce recebeu esta mensagem por engano, favor avisar o remetente
imediatamente, respondendo o e-mail e em seguida apagando-o.
Obrigado pela cooperacao.

DISCLAIMER---------------------------------------
This message may contain confidential and/or privileged information.
If you are not the addressee or authorized to receive this for the
addressee, you must not use, copy, disclose or take any action based
on any information herein. If you have received this message in 
error, please advise the sender immediately by replying to this 
e-mail and delete this message. Thank you for your cooperation.

-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/

Reply via email to