<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"Préformaté HTML Car";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.PrformatHTMLCar
        {mso-style-name:"Préformaté HTML Car";
        mso-style-priority:99;
        mso-style-link:"Préformaté HTML";
        font-family:Consolas;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=FR link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Have you got desc of mysql table, please ?<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>De :</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Francis Brosnan Blázquez [mailto:francis@aspl.es] <br><b>Envoyé :</b> lundi 23 février 2015 15:22<br><b>À :</b> Laurent RAYSSIGUIER<br><b>Cc :</b> valvula@lists.aspl.es<br><b>Objet :</b> Re: [Valvula] MOD-TICKET -- some notes about configuring it<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>El lun, 23-02-2015 a las 14:49 +0100, Laurent RAYSSIGUIER escribió: <o:p></o:p></p><p class=MsoNormal>Hello,<o:p></o:p></p><p class=MsoNormal><br>Hi Laurent,<br><br><br><o:p></o:p></p><p class=MsoNormal>I’m a brand new valvula user.<br><br> <br><br>I’m interessed by mod_tucket module that I found here : <a href="http://www.aspl.es/valvula/html/valvulad_mod_ticket.html">http://www.aspl.es/valvula/html/valvulad_mod_ticket.html</a><o:p></o:p></p><p class=MsoNormal><br>Ok,<br><br><br><o:p></o:p></p><p class=MsoNormal>I’ve installed valvula, and I think it works J<br><br> <br><br>root@smtpmailing1:~# valvulad-mgr.py -o<br><br>Module: mod-ticket<br><br>root@smtpmailing1:~# valvulad-mgr.py -l<br><br>Listen: 127.0.0.1:3579<br><br>  Mod: mod-ticket<br><br> <br><br>I have added valvula to postfix with this command line :<br><br>valvulad-mgr.py -c smtpd_data_restrictions 3579 first<br><br> <br><br>I’ve restarted postfix ….. and now ??<o:p></o:p></p><p class=MsoNormal><br>Ok,<br><br><br><o:p></o:p></p><p class=MsoNormal>How can I tell parameters to valvula ?<br><br>I can’t find doc about it.<o:p></o:p></p><p class=MsoNormal><br>Uhmn..I'll update documentation to fix this. For now, use the following notes:<br><br>1) First, you'll have to create the set of plans to apply to your sending users. For that,<br>connect to the valvula database and insert them like:<br><br>mysql> INSERT INTO ticket_plan (name, description, total_limit, day_limit, month_limit) VALUES ('You plan name', 'description', 100000, 3000, 10000)<br><br>2) Now, with that plan created, create a rule that binds this plan to a sending sasl user<br>like this:<br><br>mysql> INSERT INTO domain_ticket (sasl_user, valid_until, ticket_plan_id) VALUES (<a href="mailto:'test@limited.com">'test@limited.com</a>', -1, plan_id)<br><br>...where plan_id is the id inside ticket_plan table and -1 is that you are making this rule to have no limit in<br>time, allowing the user to consume without time ilmit. Otherwise, place there an unix stamp epoch indicating when<br>that user should be blocked even through there's still quota available.<br><br>...and that's all. <br><br>You don't have to restart valvula after including modifications or updates into the MySQL database. Valvula<br>will notice that this is available on the next incoming request to be checked.<br><br><br><o:p></o:p></p><p class=MsoNormal>Have you a web site explaining parametrers or database structure for this module ?<o:p></o:p></p><p class=MsoNormal><br>Not for now. I'll update the module with these notes. <br><br>Best Regards,<br><br><br><o:p></o:p></p><p class=MsoNormal style='margin-bottom:12.0pt'>Thanks.<br><br> <br><br>Best regards<br><br>Laurent<br><br><o:p></o:p></p><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><pre><o:p> </o:p></pre><pre>_______________________________________________<o:p></o:p></pre><pre>Valvula mailing list<o:p></o:p></pre><pre><a href="mailto:Valvula@lists.aspl.es">Valvula@lists.aspl.es</a><o:p></o:p></pre><pre><a href="http://lists.aspl.es/cgi-bin/mailman/listinfo/valvula">http://lists.aspl.es/cgi-bin/mailman/listinfo/valvula</a><o:p></o:p></pre></blockquote><p class=MsoNormal><o:p> </o:p></p></div></body></html>