> Hi everyone! > > I want to limit a group of users of my qmail-ldap > servers. This users can only send/receive messages > from one country only (Example of valid domains: @*.uk > [EMAIL PROTECTED], [EMAIL PROTECTED] etc). > > How can i do this without intervention of C++ > (Modifying the source)? > > PD: It would be great if qmail drops the conecction > when detects an invalid RCPT TO: or MAIL FROM: to save > bandwidth. > > Please Help! > > Thanks.
Hi. Well, if you do not want to change the code, just write a new one! That kind of feature is not available directly to qmail-ldap. You may write down a script and put it in the qmail-queue management chain. In other words, qmail-queue is the executable responsible for a number of services. qmail-smtp allways pass the email to qmail-queue, but you can replace qmail-queue by another script/executable that filters out what you want, and if the email is OK, it is passed through to the qmail-queue. Easy enough, and also tricky. I use postfix AND qmail-ldap in a mail server chain, because postfix is full of anti-spam features. I also use postfix to block out users that are not authorized to send email into the wild. -- Bye, Fernando Maciel Souto Maior LPIC/1(31908) LinuxCounter(391325) 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 email was sent using SquirrelMail - http://squirrelmail.org