<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
<br>
On 21/07/2010 22:09, Gavin Silver wrote:
<blockquote
 cite="mid:AF3B610E0140EA4C9D8C9D50ECF75D9201BFD4D4964C@galvatron"
 type="cite">
  <meta http-equiv="Content-Type"
 content="text/html; charset=ISO-8859-1">
  <meta name="Generator" content="Microsoft Word 12 (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:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        color:black;}
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:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
span.EmailStyle17
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        color:black;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
  </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]-->
  <div class="Section1">
  <p class="MsoNormal"><span style="color: rgb(31, 73, 125);">do you
think its possible to get
this to check against LDAP? im running an exchange server with many
domains.<o:p></o:p></span></p>
  <p class="MsoNormal"><span style="color: rgb(31, 73, 125);"><o:p>&nbsp;</o:p></span></p>
  <p class="MsoNormal"><span style="color: rgb(31, 73, 125);">possibly
a rule set to build the
regexp string from a file with a list of domains would be less
complicated.</span></p>
  </div>
</blockquote>
Yes, I could do that. Do you want to match *.domain.com and domain.com
for any domain in the file list?<br>
<br>
That would work with any authenticator, which would be better.<br>
<br>
I would have to check the datestamp on the file, then re-read the list
if the datestamp on the file changes. Then you can modify the file
whenever you like and ZendTo would instantly rebuild its list of
domains (and hence its regexp). There may be limits on the maximum size
of a regexp, which would limit the number of domains possible. But I
may be able to implement that in a way that wouldn't hit a limit, it's
just something I need to consider.<br>
<br>
Let me work on it, I'll get back to you.<br>
<br>
Jules.<br>
<br>
<blockquote
 cite="mid:AF3B610E0140EA4C9D8C9D50ECF75D9201BFD4D4964C@galvatron"
 type="cite">
  <div class="Section1">
  <p class="MsoNormal"><span style="color: rgb(31, 73, 125);"><o:p></o:p></span></p>
  <p class="MsoNormal"><span style="color: rgb(31, 73, 125);"><o:p>&nbsp;</o:p></span></p>
  <div>
  <p class="MsoNormal"><span style="color: rgb(31, 73, 125);"><o:p>&nbsp;</o:p></span></p>
  <p class="MsoNormal"><span
 style="font-size: 10pt; color: rgb(31, 73, 125);"><o:p>&nbsp;</o:p></span></p>
  <p class="MsoNormal"><span
 style="font-size: 10pt; color: rgb(31, 73, 125);"><o:p>&nbsp;</o:p></span></p>
  <p class="MsoNormal"><span
 style="font-size: 10pt; color: rgb(31, 73, 125);"><o:p>&nbsp;</o:p></span></p>
  <p class="MsoNormal"><span
 style="font-size: 10pt; color: rgb(31, 73, 125);"><o:p>&nbsp;</o:p></span></p>
  <p class="MsoNormal"><span
 style="font-size: 10pt; color: rgb(31, 73, 125);">----------------------------------<br>
Gavin Silver<br>
  <br>
  </span><span style="color: rgb(31, 73, 125);"><o:p></o:p></span></p>
  </div>
  <p class="MsoNormal"><span style="color: rgb(31, 73, 125);"><o:p>&nbsp;</o:p></span></p>
  <div>
  <div
 style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0in 0in;">
  <p class="MsoNormal"><b><span
 style="font-size: 10pt; font-family: &quot;Tahoma&quot;,&quot;sans-serif&quot;; color: windowtext;">From:</span></b><span
 style="font-size: 10pt; font-family: &quot;Tahoma&quot;,&quot;sans-serif&quot;; color: windowtext;">
<a class="moz-txt-link-abbreviated" href="mailto:zendto-bounces@zendto.com">zendto-bounces@zendto.com</a>
[<a class="moz-txt-link-freetext" href="mailto:zendto-bounces@zendto.com">mailto:zendto-bounces@zendto.com</a>] <b>On Behalf Of </b>Jules<br>
  <b>Sent:</b> Wednesday, July 21, 2010 5:02 PM<br>
  <b>To:</b> ZendTo Users<br>
  <b>Subject:</b> [ZendTo] Re: emailDomainRegexp clarification<o:p></o:p></span></p>
  </div>
  </div>
  <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
  <p class="MsoNormal"><br>
  <br>
On 21/07/2010 21:43, Gavin Silver wrote: <o:p></o:p></p>
  <p class="MsoNormal">&nbsp;<o:p></o:p></p>
  <p class="MsoNormal">what exactly is this regexp for?<o:p></o:p></p>
  <p class="MsoNormal">&nbsp;<o:p></o:p></p>
  <p class="MsoNormal">is this only to check whether or not the system
will drop
off files for this match _<i>from non internal users</i>_? <o:p></o:p></p>
  <p class="MsoNormal"><span
 style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;">If
the user is not logged in, then the recipient's email domain must match
emailDomainRegexp or else it will not allow the user to send files to
them. So
unauthenticated users can only send files to addresses which match
emailDomainRegexp.<br>
  <br>
So yes, you can make the setting look something like this if you want
to:<br>
'emailDomainRegexp' =&gt;
'^([a-zA-Z]+\.)?(soton\.ac\.uk$|domain1\.com$|domain2\.com$)',<br>
  <br>
which will match *.soton.ac.uk, *.domain1.com and *.domain2.com (and of
course
soton.ac.uk, domain1.com and domain2.com).<br>
  <br>
  <o:p></o:p></span></p>
  <p class="MsoNormal">if so, can I add more than one domain?<o:p></o:p></p>
  <p class="MsoNormal"><span
 style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;">Yes,
you can.<br>
  <br>
  <o:p></o:p></span></p>
  <p class="MsoNormal"><span style="color: rgb(31, 73, 125);">&nbsp;</span><o:p></o:p></p>
  <p class="MsoNormal"><span
 style="font-size: 10pt; color: rgb(31, 73, 125);">&nbsp;</span><o:p></o:p></p>
  <p class="MsoNormal"><span
 style="font-size: 10pt; color: rgb(31, 73, 125);">&nbsp;</span><o:p></o:p></p>
  <p class="MsoNormal"><span
 style="font-size: 10pt; color: rgb(31, 73, 125);">&nbsp;</span><o:p></o:p></p>
  <p class="MsoNormal"><span
 style="font-size: 10pt; color: rgb(31, 73, 125);">&nbsp;</span><o:p></o:p></p>
  <p class="MsoNormal"><span
 style="font-size: 10pt; color: rgb(31, 73, 125);">----------------------------------<br>
Gavin Silver<br>
Ramp Up Technology<br>
  <a moz-do-not-send="true" href="mailto:gsilver@rampuptech.com"><span
 style="font-size: 11pt;">gsilver@rampuptech.com</span></a></span><span
 style="color: blue;"><br>
----------------------------------<br>
  <br>
Please remember to send all issues to:<br>
  <a moz-do-not-send="true" href="mailto:support@rampuptech.com">support@rampuptech.com</a>.<br>
  <br>
The information contained in this message may be privileged and
confidential
and protected from disclosure. If the reader of this message is not the
intended recipient, or an employee or agent responsible for delivering
this
message to the intended recipient, you are hereby notified that any
dissemination, distribution or copying of this communication is
strictly
prohibited. If you have received this communication in error, please
notify us
immediately by replying to the message and deleting it from your
computer.</span><o:p></o:p></p>
  <p class="MsoNormal">&nbsp;<o:p></o:p></p>
  <pre><o:p>&nbsp;</o:p></pre>
  <pre><o:p>&nbsp;</o:p></pre>
  <pre>_______________________________________________<o:p></o:p></pre>
  <pre>ZendTo mailing list<o:p></o:p></pre>
  <pre><a moz-do-not-send="true" href="mailto:ZendTo@zendto.com">ZendTo@zendto.com</a><o:p></o:p></pre>
  <pre><a moz-do-not-send="true"
 href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto">http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto</a><o:p></o:p></pre>
  <pre>&nbsp; <o:p></o:p></pre>
  <p class="MsoNormal"><span
 style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;;"><br>
  <br>
  <o:p></o:p></span></p>
  <pre>Jules<o:p></o:p></pre>
  <pre><o:p>&nbsp;</o:p></pre>
  <pre>-- <o:p></o:p></pre>
  <pre>Julian Field MEng CITP CEng<o:p></o:p></pre>
  <pre><a moz-do-not-send="true" href="http://www.ZendTo.com">www.ZendTo.com</a><o:p></o:p></pre>
  <pre><o:p>&nbsp;</o:p></pre>
  <pre>Need help fixing or optimising your systems?<o:p></o:p></pre>
  <pre>Contact me!<o:p></o:p></pre>
  <pre>Need help getting you started solving new requirements from your boss?<o:p></o:p></pre>
  <pre>Contact me!<o:p></o:p></pre>
  <pre><o:p>&nbsp;</o:p></pre>
  <pre>PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654<o:p></o:p></pre>
  <pre>Follow me at twitter.com/JulesFM<o:p></o:p></pre>
  <p class="MsoNormal"><span
 style="font-size: 12pt; font-family: &quot;Times New Roman&quot;,&quot;serif&quot;; color: windowtext;">--
  <o:p></o:p></span></p>
  </div>
  <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
ZendTo mailing list
<a class="moz-txt-link-abbreviated" href="mailto:ZendTo@zendto.com">ZendTo@zendto.com</a>
<a class="moz-txt-link-freetext" href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto">http://mailman.ecs.soton.ac.uk/mailman/listinfo/zendto</a>
  </pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">Jules

-- 
Julian Field MEng CITP CEng
<a class="moz-txt-link-abbreviated" href="http://www.ZendTo.com">www.ZendTo.com</a>

Need help fixing or optimising your systems?
Contact me!
Need help getting you started solving new requirements from your boss?
Contact me!

PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
Follow me at twitter.com/JulesFM
</pre>
</body>
</html>