<html><head><style type="text/css">body {word-wrap: break-word; background-color:#ffffff;}</style></head><body><div style="font-family: sans-serif; font-size: 16px">Maiko,<br>Thanks much.  I think this will work for our needs.  We can probably start testing later next week (I'm currently out if town).<br>Michael<br><br><br><font face="sans-serif"><span style="font-size: 14px"><i><font color="#333333">Sent from my Verizon Wireless 4GLTE Phone</font></i></span></font></div><br><br>-----Original message-----<br><blockquote style="; border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><div style="font-family: sans-serif; font-size: 14px"><b>From: </b>Maiko Langelaar <maiko@pcs.mb.ca><b><br>To: </b>TAPR xNOS Mailing List <nos-bbs@tapr.org><b><br>Sent: </b>Thu, Dec 15, 2011 16:44:54 GMT+00:00<b><br>Subject: </b>[nos-bbs] new smtp gateway options<br><br></div><br>I think this will make a few people happy (I hope). In fact what makes<br>this even nicer (for me anyways) is that I have been able to make this<br>work by reusing and reorganizing the SDRE (smtp deny relay exceptions)<br>code. This is available via RSYNC - for those running an older version<br>and refuse to move up, let me know what version you're using. Thanks.<br><br>I've tested this enough to see that it works, this is new code, so test<br>the crap out of it please before you decide to put it into production. I<br>have added a bit of debugging to the main JNOS log file (just so u know).<br><br>Two new subcommands have been added to the smtp gateway syntax :<br><br>    smtp ga mode [original|force|first|last]<br><br>    smtp ga exception add ip mask<br>    smtp ga exception delete ip mask<br>    smtp ga exception  (to list)<br><br>The original way to define the gateway remains the same :<br><br>    smtp ga [A.B.C.D | none]<br><br>If mode is not specified, JNOS will function the old way. Force sends ALL smtp requests to the gateway before anything else. FIRST does the same,<br>but allows for exceptions. Why have a FORCE ? For emergencies perhaps,<br>where you normally want to run FIRST (which implies exceptions). LAST<br>is a mode I have not thought about yet, ideas are welcome.<br><br>Example (this is what I am currently running on my system) :<br><br>     smtp ga A.B.C.D<br><br>     smtp t4 60         # 1 minute timeout<br><br>     smtp ga mode first<br><br>     # send everything to gateway except 44 stations, they go direct<br>     smtp ga exception add <a href="44.0.0.0">44.0.0.0</a> 0xff000000<br><br>     # other exceptions (examples) - you can have as many as you want<br>     smtp ga exception add E.F.G.0  0xffffff00<br>     smtp ga exception add X.Y.Z.Z  0xffffffff<br><br>For those of you that use the SDRE (smtp deny relay exception) code,<br>it's the same syntax. Let me know what you think, what you like, what<br>you don't like, and so on.<br><br>Maiko<br><br>_______________________________________________<br>nos-bbs mailing list<br>nos-bbs@tapr.org<br><a href="https://www.tapr.org/cgi-bin/mailman/listinfo/nos-bbs">https://www.tapr.org/cgi-bin/mailman/listinfo/nos-bbs</a><br></blockquote></body></html>