<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-845</id>
	<title>Nabble - cr.yp.to</title>
	<updated>2009-11-26T19:46:59Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/cr.yp.to-f845.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/cr.yp.to-f845.html" />
	<subtitle type="html">D. J. Bernstein on math, computer science, internet, cryptography. cr.yp.to home is &lt;a href=&quot;http://cr.yp.to/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;.</subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26537654</id>
	<title>Re: tcpserver, qmail-smtpd, qmail-queue and filter Qs</title>
	<published>2009-11-26T19:46:59Z</published>
	<updated>2009-11-26T19:46:59Z</updated>
	<author>
		<name>Philip Rhoades-2</name>
	</author>
	<content type="html">Jost,
&lt;br&gt;&lt;br&gt;&lt;br&gt;On 2009-11-27 08:01, Jost Krieger wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Thu, Nov 19, 2009 at 10:16:37AM -0600, Kyle Wheeler wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Sorry to comeso late, but this all is a misunderstanding.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; On Thursday, November 19 at 11:48 AM, quoth Philip Rhoades:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; In my setup tcpserver execs greylite which eventually execs
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; qmail-smtpd. Greylite uses the to and from IP addresses of the tcp
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; communication - is any of the message itself (header lines?, body?)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; available at this point or only after qmail-smtpd runs?
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; As other folks have pointed out, the short answer is &amp;quot;no&amp;quot;.
&lt;br&gt;&amp;gt;&amp;gt; ...
&lt;br&gt;&amp;gt;&amp;gt; Before qmail-smtpd runs, you know only the information about the
&lt;br&gt;&amp;gt;&amp;gt; connection itself: the IP address (and hostname) of the connecting
&lt;br&gt;&amp;gt;&amp;gt; client, the port numbers that are being used.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; That's not true (in the case of greylite).
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I used greylite for a while (and gave up for reasons of database
&lt;br&gt;&amp;gt; contention). Now I use a variant of greydaemon (thanks to John Levine),
&lt;br&gt;&amp;gt; but that needs patching qmail-smtpd (which we have been doing for ten
&lt;br&gt;&amp;gt; years anyway ...).
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Greylite is using &amp;quot;command line chainig&amp;quot;, but not simple &amp;quot;exec
&lt;br&gt;&amp;gt; chaining&amp;quot;. &amp;nbsp;It does indeed set up a pair of pipes, then forks and execs.
&lt;br&gt;&amp;gt; After that, it listens into the SMTP stream. It will intercept the SMTP
&lt;br&gt;&amp;gt; dialogue for greylisting, and turn into a passthrough if everything is
&lt;br&gt;&amp;gt; fine. It never cares for anything after DATA, but it sees the MAIL FROM
&lt;br&gt;&amp;gt; and RCPT TO.
&lt;/div&gt;&lt;br&gt;&lt;br&gt;Right - which would allow me to do some more filtering except that as 
&lt;br&gt;someone else pointed out - MAIL FROM and RCPT TO don't necessarily 
&lt;br&gt;correspond to From: and To: - I have checked most of my problem mails 
&lt;br&gt;and they would not be stopped by such filtering unfortunately . .
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt; Qmail-smtpd doen't notice, because it sees the complete SMTP dialogue,
&lt;br&gt;&amp;gt; normally.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; So greylite is like recordio in interface and function.
&lt;br&gt;&lt;br&gt;&lt;br&gt;Thanks for the extra info! - it is appreciated.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;&lt;br&gt;Phil.
&lt;br&gt;-- 
&lt;br&gt;Philip Rhoades
&lt;br&gt;&lt;br&gt;GPO Box 3411
&lt;br&gt;Sydney NSW	2001
&lt;br&gt;Australia
&lt;br&gt;E-mail: &amp;nbsp;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26537654&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;phil@...&lt;/a&gt;
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/cr.yp.to---qmail-f870.html&quot; embed=&quot;fixTarget[870]&quot; target=&quot;_top&quot; &gt;cr.yp.to - qmail&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/tcpserver%2C-qmail-smtpd%2C-qmail-queue-and-filter-Qs-tp26418564p26537654.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26534894</id>
	<title>Re: tcpserver, qmail-smtpd, qmail-queue and filter Qs</title>
	<published>2009-11-26T13:01:10Z</published>
	<updated>2009-11-26T13:01:10Z</updated>
	<author>
		<name>Jost Krieger-6</name>
	</author>
	<content type="html">On Thu, Nov 19, 2009 at 10:16:37AM -0600, Kyle Wheeler wrote:
&lt;br&gt;&lt;br&gt;Sorry to comeso late, but this all is a misunderstanding.
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Thursday, November 19 at 11:48 AM, quoth Philip Rhoades:
&lt;br&gt;&amp;gt; &amp;gt; In my setup tcpserver execs greylite which eventually execs 
&lt;br&gt;&amp;gt; &amp;gt; qmail-smtpd. Greylite uses the to and from IP addresses of the tcp 
&lt;br&gt;&amp;gt; &amp;gt; communication - is any of the message itself (header lines?, body?) 
&lt;br&gt;&amp;gt; &amp;gt; available at this point or only after qmail-smtpd runs?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; As other folks have pointed out, the short answer is &amp;quot;no&amp;quot;.
&lt;br&gt;&amp;gt; ...
&lt;br&gt;&amp;gt; Before qmail-smtpd runs, you know only the information about the 
&lt;br&gt;&amp;gt; connection itself: the IP address (and hostname) of the connecting 
&lt;br&gt;&amp;gt; client, the port numbers that are being used.
&lt;/div&gt;&lt;br&gt;That's not true (in the case of greylite).
&lt;br&gt;&lt;br&gt;I used greylite for a while (and gave up for reasons of database
&lt;br&gt;contention). Now I use a variant of greydaemon (thanks to John Levine),
&lt;br&gt;but that needs patching qmail-smtpd (which we have been doing for ten
&lt;br&gt;years anyway ...).
&lt;br&gt;&lt;br&gt;Greylite is using &amp;quot;command line chainig&amp;quot;, but not simple &amp;quot;exec
&lt;br&gt;chaining&amp;quot;. &amp;nbsp;It does indeed set up a pair of pipes, then forks and execs.
&lt;br&gt;After that, it listens into the SMTP stream. It will intercept the SMTP
&lt;br&gt;dialogue for greylisting, and turn into a passthrough if everything is
&lt;br&gt;fine. It never cares for anything after DATA, but it sees the MAIL FROM
&lt;br&gt;and RCPT TO.
&lt;br&gt;&lt;br&gt;Qmail-smtpd doen't notice, because it sees the complete SMTP dialogue,
&lt;br&gt;normally.
&lt;br&gt;&lt;br&gt;So greylite is like recordio in interface and function.
&lt;br&gt;&lt;br&gt;Jost
&lt;br&gt;-- 
&lt;br&gt;| Helft Spam ausrotten! &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;HTML in Mail ist unhöflich. |
&lt;br&gt;| Postmaster, JAPH, manchmal Wahrsager &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; am RZ der RUB |
&lt;br&gt;| Bitte immer an Funktionsadressen schreiben: &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26534894&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Postmaster@...&lt;/a&gt; |
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/cr.yp.to---qmail-f870.html&quot; embed=&quot;fixTarget[870]&quot; target=&quot;_top&quot; &gt;cr.yp.to - qmail&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/tcpserver%2C-qmail-smtpd%2C-qmail-queue-and-filter-Qs-tp26418564p26534894.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26531235</id>
	<title>Re: limit outgoing email size but not incoming</title>
	<published>2009-11-26T07:39:22Z</published>
	<updated>2009-11-26T07:39:22Z</updated>
	<author>
		<name>Kyle Wheeler-2</name>
	</author>
	<content type="html">-----BEGIN PGP SIGNED MESSAGE-----
&lt;br&gt;Hash: SHA256
&lt;br&gt;&lt;br&gt;On Thursday, November 26 at 09:37 AM, quoth Markus Stumpf:
&lt;br&gt;&amp;gt; Next you have to define what you mean by incoming and outgoing.
&lt;br&gt;&lt;br&gt;This is key (especially since, without something like SMTP-AUTH, it 
&lt;br&gt;could be pretty easy for a spammer to work around).
&lt;br&gt;&lt;br&gt;Another way to do it is to place the restriction in a wrapper around 
&lt;br&gt;qmail-remote, forcing a failure to deliver if the remote message is 
&lt;br&gt;too big. This clearly delineates between &amp;quot;incoming&amp;quot; and &amp;quot;outgoing&amp;quot; 
&lt;br&gt;(because incoming messages never go through qmail-remote), but means 
&lt;br&gt;that the too-large messages get into the queue even though they'll 
&lt;br&gt;never be delivered.
&lt;br&gt;&lt;br&gt;~Kyle
&lt;br&gt;- -- 
&lt;br&gt;Nothing gives one person so great advantage over another as to remain 
&lt;br&gt;always cool and unruffled under all circumstances.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-- Thomas Jefferson to Francis Eppes, 1816
&lt;br&gt;-----BEGIN PGP SIGNATURE-----
&lt;br&gt;Comment: Thank you for using encryption!
&lt;br&gt;&lt;br&gt;iQIcBAEBCAAGBQJLDqEpAAoJECuveozR/AWetY8QAJvOeMqJRp+Azfn58O9e5nEd
&lt;br&gt;ChpD7fR+ZQlHg/Ox+iRjZH2n5Hrb8ZSXY60AivD88TN6JukPVQHTmQjw3Oh3ydzV
&lt;br&gt;BqDciQBt3vCvVLpTOfUT23biwdh2/jNgENK/xjG1VIDofjJHOXXQ19XcOt2u5ReS
&lt;br&gt;Khb9slaIbo2MS0e69FUJxeuI+GpRNd4t0xfWpQ9LdsLno396Yer9MwqREvyZkqmD
&lt;br&gt;BOTElj1+LuWMtO1gD4nqQ/ysOf/NFnapC3NAEvGDKWc5tbvbWVoLE3tAPWnKD9zK
&lt;br&gt;xSlJL1rK9TNBvscwTAUG0+4opHa2dx4Ne0gFI9SFttBZRr9s+leqb21ukE6EFkEm
&lt;br&gt;YY1CVNAurEFq3Gtmf0RtK/sGcTIccR1El1z32v9cFTDWnfjHCyvg4YPOQwIUAzFL
&lt;br&gt;Xc2hoBu18h7QkrG8N0vnF5LwaUtaiyDGc0T2EZ/MCmKobIlXVfzDBSQukc4Oq50B
&lt;br&gt;M+Z2VVsIoGizCqQ43zAUYRdaFLWaS49gepr42MP+Ua+b4Jl2drKIIBR7XLRy4s0u
&lt;br&gt;UTVspP3+Abo06zLmaWstQKqpxr1Pyl7DwSbRFYNzSovbPThIUSRioSWK4165me86
&lt;br&gt;jIA4u2EFk78l2avgiErSVwniUyygt46pW0jV8WNThGynJAFMA+Veym/4h0Y6dSSB
&lt;br&gt;723MCyQJX2AgkZtdEMts
&lt;br&gt;=6kre
&lt;br&gt;-----END PGP SIGNATURE-----
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/cr.yp.to---qmail-f870.html&quot; embed=&quot;fixTarget[870]&quot; target=&quot;_top&quot; &gt;cr.yp.to - qmail&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/limit-outgoing-email-size-but-not-incoming-tp26523563p26531235.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26531250</id>
	<title>Re: limit outgoing email size but not incoming</title>
	<published>2009-11-26T07:36:05Z</published>
	<updated>2009-11-26T07:36:05Z</updated>
	<author>
		<name>Kyle Wheeler-2</name>
	</author>
	<content type="html">-----BEGIN PGP SIGNED MESSAGE-----
&lt;br&gt;Hash: SHA256
&lt;br&gt;&lt;br&gt;On Thursday, November 26 at 08:35 AM, quoth Philipp Kolloczek:
&lt;br&gt;&amp;gt; Well, you can do like Hugo Monteiro suggested. Without patching 
&lt;br&gt;&amp;gt; qmail sources there will be no other way.
&lt;br&gt;&lt;br&gt;Well, now, that's just an open challenge.
&lt;br&gt;&lt;br&gt;You can also do it with a qmail-queue wrapper (a convenient one is 
&lt;br&gt;qmail-qfilter). If you rename qmail-queue and qmail-qfilter 
&lt;br&gt;appropriately, you can make it apply to locally (e.g. 
&lt;br&gt;/usr/sbin/sendmail) produced email as well.
&lt;br&gt;&lt;br&gt;~Kyle
&lt;br&gt;- -- 
&lt;br&gt;It only takes 20 years for a liberal to become a conservative without 
&lt;br&gt;changing a single idea.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-- Robert Anton Wilson
&lt;br&gt;-----BEGIN PGP SIGNATURE-----
&lt;br&gt;Comment: Thank you for using encryption!
&lt;br&gt;&lt;br&gt;iQIbBAEBCAAGBQJLDqBPAAoJECuveozR/AWeD94P9ic2QkO3/wmWI6lGIifEOyl7
&lt;br&gt;OkqDBLj8SXA3qm5KbNCG0lDaw8b5H/xDSjbz3CSh5xyzfh1lGStFRDrfTj5p2xmS
&lt;br&gt;MEXJWEH6HH0wIzjCuev6Zxm8kMOSaCQcxHHN7xTUHQzoay+VZ48E35Z0bB/sXbCe
&lt;br&gt;JNYg8UG9hMvUtk9DqmhDWFFKh0liO/elOHXnnGpFW6eAC8TpuIVRY8uDEym4yLQi
&lt;br&gt;+IP9de9yOshotvolA3aGphrR/KNk1+w3YMDz/uMXql29gve1OdummUf7heYeTiAJ
&lt;br&gt;xi9Ja//9AtYZkCtcMJprGBgPhXsW7AfaCrzm5PQyhQ0PER/ysD6tOGDM4sZEVouT
&lt;br&gt;i6CrNI5Xc6rw78rH4sbcdOzIrLV3f9tWVhTz9HkRCMSGsZYUfIAFRJPG5YS34BbL
&lt;br&gt;uYihGv18A5ez0SnwEcsfRx3AADgsUGODd/JZiRG94w1CJtr5NDJhpL/13Oa3Cmpz
&lt;br&gt;iU/ZzIZmzQjS4USKleACpS0XUl7Z+6/7bGLmIV26W/CByeIENq2ByNFLZWcniLO+
&lt;br&gt;9aXvVC7B4Mm16+YjjdffY/DHPEB8E+UUbFiXvN+l9IXlmlSh3R9pKiIxNsRjVzzz
&lt;br&gt;RYz/AZLMOL7cxNENIG0nhoLn23RyQ3D+oxOyOvly29NZX91wMqcXKxK1PelkWpQW
&lt;br&gt;HdEsxwGFLMterv3RORk=
&lt;br&gt;=f5lG
&lt;br&gt;-----END PGP SIGNATURE-----
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/cr.yp.to---qmail-f870.html&quot; embed=&quot;fixTarget[870]&quot; target=&quot;_top&quot; &gt;cr.yp.to - qmail&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/limit-outgoing-email-size-but-not-incoming-tp26523563p26531250.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26526060</id>
	<title>Re: limit outgoing email size but not incoming</title>
	<published>2009-11-26T00:37:40Z</published>
	<updated>2009-11-26T00:37:40Z</updated>
	<author>
		<name>Markus Stumpf-4</name>
	</author>
	<content type="html">On Thu, Nov 26, 2009 at 10:29:17AM +0800, packets wrote:
&lt;br&gt;&amp;gt; &amp;nbsp;As I know, both incoming and outgoing will reject emails more than 
&lt;br&gt;&amp;gt; &amp;nbsp;3mb and I don't want to do that.
&lt;br&gt;&lt;br&gt;This is not correct.
&lt;br&gt;DATABYTES only affects incoming messages per qmail-smtpd.
&lt;br&gt;Messages created locally or uploaded and sent eg. via a webmail system
&lt;br&gt;are *NOT* affected.
&lt;br&gt;&lt;br&gt;Next you have to define what you mean by incoming and outgoing.
&lt;br&gt;Do you mean by &amp;quot;incoming&amp;quot; *every* message from *every* user that
&lt;br&gt;would be delivered to a local address/mailbox?
&lt;br&gt;And outgoing would be every message for a non-local user/mailbox?
&lt;br&gt;How about messages coming in for a local user that has a forward to an
&lt;br&gt;external address?
&lt;br&gt;Next is error handling.
&lt;br&gt;At what point do you want to reject the message? Somehow the message has
&lt;br&gt;to be uploaded to your server. Do you want to reject it at that point?
&lt;br&gt;If not, how will you handle the already injected message? Bounce it back
&lt;br&gt;to the sender?
&lt;br&gt;&lt;br&gt;I guess to accomplish what you want I'd modify qmail-smtpd.c in
&lt;br&gt;smtp_rcpt().
&lt;br&gt;&lt;br&gt;Change
&lt;br&gt;------------------------------------------------------------------------
&lt;br&gt;&amp;nbsp; if (!stralloc_0(&amp;rcptto)) die_nomem();
&lt;br&gt;&amp;nbsp; out(&amp;quot;250 ok\r\n&amp;quot;);
&lt;br&gt;}
&lt;br&gt;------------------------------------------------------------------------
&lt;br&gt;to
&lt;br&gt;------------------------------------------------------------------------
&lt;br&gt;&amp;nbsp; if (!stralloc_0(&amp;rcptto)) die_nomem();
&lt;br&gt;&amp;nbsp; if (addrallowed()) databytes = 0;
&lt;br&gt;&amp;nbsp; out(&amp;quot;250 ok\r\n&amp;quot;);
&lt;br&gt;}
&lt;br&gt;------------------------------------------------------------------------
&lt;br&gt;&lt;br&gt;What does it do?
&lt;br&gt;For every connection that delivers a message to a local recipient
&lt;br&gt;(addrallowed() results in true) databytes is set to unlimited (aka
&lt;br&gt;turned off).
&lt;br&gt;If you now set DATABYTES to 3MB then every connection that requires a relay
&lt;br&gt;operation will be restricted to 3 MB, every connection with a local
&lt;br&gt;delivery will not.
&lt;br&gt;&lt;br&gt;CAVEAT!!! SMTP allows more than one recipient with one message.
&lt;br&gt;the modification turns off DATABYTES if *ANY ONE* of multiple
&lt;br&gt;recipients of the message is local. So if there is a message
&lt;br&gt;of size 5 MB with 1 local and 1 remote recipient it will be accepted and
&lt;br&gt;delivered remote, even with the 5 MB size.
&lt;br&gt;&lt;br&gt;Hope that helps,
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; \Maex
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/cr.yp.to---qmail-f870.html&quot; embed=&quot;fixTarget[870]&quot; target=&quot;_top&quot; &gt;cr.yp.to - qmail&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/limit-outgoing-email-size-but-not-incoming-tp26523563p26526060.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26525588</id>
	<title>RE: limit outgoing email size but not incoming</title>
	<published>2009-11-25T23:35:21Z</published>
	<updated>2009-11-25T23:35:21Z</updated>
	<author>
		<name>Philipp Kolloczek</name>
	</author>
	<content type="html">Hello.
&lt;br&gt;&lt;br&gt;&amp;gt; &amp;nbsp; 3mb. As I know, both incoming and outgoing will reject emails more
&lt;br&gt;&amp;gt; than 3mb and I don't want to do that. I want to
&lt;br&gt;&amp;gt; accept incoming emails regardless of any size but I want to limit my
&lt;br&gt;&amp;gt; outgoing smtp to 3mb.
&lt;br&gt;&lt;br&gt;Well, you can do like Hugo Monteiro suggested.
&lt;br&gt;Without patching qmail sources there will be no other way.
&lt;br&gt;&lt;br&gt;If your sender do smtp-auth, it may be a way to alter qmails code
&lt;br&gt;to redefine databytes with a given value if the auth request was
&lt;br&gt;successful. Depending of your qmail you have to change more than
&lt;br&gt;one function in different modules. 
&lt;br&gt;&lt;br&gt;Greets
&lt;br&gt;Phil.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/cr.yp.to---qmail-f870.html&quot; embed=&quot;fixTarget[870]&quot; target=&quot;_top&quot; &gt;cr.yp.to - qmail&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/limit-outgoing-email-size-but-not-incoming-tp26523563p26525588.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26523837</id>
	<title>Re: limit outgoing email size but not incoming</title>
	<published>2009-11-25T19:10:36Z</published>
	<updated>2009-11-25T19:10:36Z</updated>
	<author>
		<name>Hugo Monteiro-2</name>
	</author>
	<content type="html">packets wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Is it possible that I impose restriction on senders not to send emails 
&lt;br&gt;&amp;gt; more than 5mb email? I have read databytes and I
&lt;br&gt;&amp;gt; imposed it to one of my server with 15mb. However, I want to implement 
&lt;br&gt;&amp;gt; it to another server but this time it must be
&lt;br&gt;&amp;gt; &amp;nbsp;3mb. As I know, both incoming and outgoing will reject emails more 
&lt;br&gt;&amp;gt; than 3mb and I don't want to do that. I want to
&lt;br&gt;&amp;gt; accept incoming emails regardless of any size but I want to limit my 
&lt;br&gt;&amp;gt; outgoing smtp to 3mb.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;You can specify a different DATABYTES env var for each tcpserver rule 
&lt;br&gt;that you have. The existence of that env variable will overwrite the 
&lt;br&gt;default value set in the databytes file, if any.
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;&lt;br&gt;Hugo Monteiro.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;ci.fct.unl.pt:~# cat .signature
&lt;br&gt;&lt;br&gt;Hugo Monteiro
&lt;br&gt;Email	 : &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26523837&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;hugo.monteiro@...&lt;/a&gt;
&lt;br&gt;Telefone : +351 212948300 Ext.15307
&lt;br&gt;Web &amp;nbsp; &amp;nbsp; &amp;nbsp;: &lt;a href=&quot;http://hmonteiro.net&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://hmonteiro.net&lt;/a&gt;&lt;br&gt;&lt;br&gt;Centro de Informática
&lt;br&gt;Faculdade de Ciências e Tecnologia da
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Universidade Nova de Lisboa
&lt;br&gt;Quinta da Torre &amp;nbsp; 2829-516 Caparica &amp;nbsp; Portugal
&lt;br&gt;Telefone: +351 212948596 &amp;nbsp; Fax: +351 212948548
&lt;br&gt;www.ci.fct.unl.pt	 &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26523837&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;apoio@...&lt;/a&gt;
&lt;br&gt;&lt;br&gt;ci.fct.unl.pt:~# _
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/cr.yp.to---qmail-f870.html&quot; embed=&quot;fixTarget[870]&quot; target=&quot;_top&quot; &gt;cr.yp.to - qmail&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/limit-outgoing-email-size-but-not-incoming-tp26523563p26523837.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26523563</id>
	<title>limit outgoing email size but not incoming</title>
	<published>2009-11-25T18:29:17Z</published>
	<updated>2009-11-25T18:29:17Z</updated>
	<author>
		<name>packets-2</name>
	</author>
	<content type="html">Is it possible that I impose restriction on senders not to send emails more than 5mb email? I have read databytes and I
&lt;br&gt;imposed it to one of my server with 15mb. However, I want to implement it to another server but this time it must be
&lt;br&gt;&amp;nbsp; 3mb. As I know, both incoming and outgoing will reject emails more than 3mb and I don't want to do that. I want to
&lt;br&gt;accept incoming emails regardless of any size but I want to limit my outgoing smtp to 3mb.
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/cr.yp.to---qmail-f870.html&quot; embed=&quot;fixTarget[870]&quot; target=&quot;_top&quot; &gt;cr.yp.to - qmail&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/limit-outgoing-email-size-but-not-incoming-tp26523563p26523563.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26512858</id>
	<title>Re: Removing primes</title>
	<published>2009-11-25T05:37:08Z</published>
	<updated>2009-11-25T05:37:08Z</updated>
	<author>
		<name>Karim Belabas-4</name>
	</author>
	<content type="html">* Jeroen Demeyer [2009-11-24 12:03]:
&lt;br&gt;&amp;gt; I am in particular looking for a way to remove ALL primes from the
&lt;br&gt;&amp;gt; addprimes list, i.e. removeprimes(addprimes()).
&lt;br&gt;&lt;br&gt;This will work, and this particular example is actually suggested in the
&lt;br&gt;extended help :-) &amp;nbsp;[ although in a slightly incorrect way, just fixed that ].
&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; K.B.
&lt;br&gt;--
&lt;br&gt;Karim Belabas, IMB (UMR 5251) &amp;nbsp;Tel: (+33) (0)5 40 00 26 17
&lt;br&gt;Universite Bordeaux 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Fax: (+33) (0)5 40 00 69 50
&lt;br&gt;351, cours de la Liberation &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://www.math.u-bordeaux1.fr/~belabas/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.math.u-bordeaux1.fr/~belabas/&lt;/a&gt;&lt;br&gt;F-33405 Talence (France) &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://pari.math.u-bordeaux1.fr/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://pari.math.u-bordeaux1.fr/&lt;/a&gt;&amp;nbsp; [PARI/GP]
&lt;br&gt;`
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/cr.yp.to---pari-users-f864.html&quot; embed=&quot;fixTarget[864]&quot; target=&quot;_top&quot; &gt;cr.yp.to - pari-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Removing-primes-tp26493995p26512858.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26512794</id>
	<title>Re: Removing primes</title>
	<published>2009-11-25T05:34:09Z</published>
	<updated>2009-11-25T05:34:09Z</updated>
	<author>
		<name>Karim Belabas-4</name>
	</author>
	<content type="html">* Bill Allombert [2009-11-24 23:46]:
&lt;br&gt;&amp;gt; On Tue, Nov 24, 2009 at 12:01:43PM +0100, Jeroen Demeyer wrote:
&lt;br&gt;&amp;gt; &amp;gt; Hello pari-users,
&lt;br&gt;&amp;gt; &amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; In ?removeprimes it is written that the given vector should have at most
&lt;br&gt;&amp;gt; &amp;gt; 100 components. &amp;nbsp;What is the reason for this? &amp;nbsp;In any case, it seems to
&lt;br&gt;&amp;gt; &amp;gt; work even with more than 100 primes.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I supose this is a left over of a previous implementation of addprimes.
&lt;br&gt;&amp;gt; There is no such limitations currently.
&lt;br&gt;&lt;br&gt;Correct, I just fixed the Help string in svn. The authoritative help is
&lt;br&gt;the extended one, i.e. the output of ??, which is also found in the
&lt;br&gt;printed manual. The short help '?' *may* lag behind and correspond to
&lt;br&gt;older, possibly obsolete, versions.
&lt;br&gt;&lt;br&gt;Bill created the function database in 2003; since then, the short and
&lt;br&gt;extended help are in the same place in the sources, and updated together.
&lt;br&gt;At the time the database was created, we fixed or updated a large number
&lt;br&gt;of the Help texts, but never could spare the time to actually go through
&lt;br&gt;every single function one by one and check the short help message.
&lt;br&gt;&lt;br&gt;Please go on reporting any weird discrepancies like this one !
&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; K.B.
&lt;br&gt;--
&lt;br&gt;Karim Belabas, IMB (UMR 5251) &amp;nbsp;Tel: (+33) (0)5 40 00 26 17
&lt;br&gt;Universite Bordeaux 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Fax: (+33) (0)5 40 00 69 50
&lt;br&gt;351, cours de la Liberation &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://www.math.u-bordeaux1.fr/~belabas/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.math.u-bordeaux1.fr/~belabas/&lt;/a&gt;&lt;br&gt;F-33405 Talence (France) &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://pari.math.u-bordeaux1.fr/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://pari.math.u-bordeaux1.fr/&lt;/a&gt;&amp;nbsp; [PARI/GP]
&lt;br&gt;`
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/cr.yp.to---pari-users-f864.html&quot; embed=&quot;fixTarget[864]&quot; target=&quot;_top&quot; &gt;cr.yp.to - pari-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Removing-primes-tp26493995p26512794.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26504622</id>
	<title>Re: Removing primes</title>
	<published>2009-11-24T14:39:37Z</published>
	<updated>2009-11-24T14:39:37Z</updated>
	<author>
		<name>Bill Allombert-3</name>
	</author>
	<content type="html">On Tue, Nov 24, 2009 at 12:01:43PM +0100, Jeroen Demeyer wrote:
&lt;br&gt;&amp;gt; Hello pari-users,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; In ?removeprimes it is written that the given vector should have at most
&lt;br&gt;&amp;gt; 100 components. &amp;nbsp;What is the reason for this? &amp;nbsp;In any case, it seems to
&lt;br&gt;&amp;gt; work even with more than 100 primes.
&lt;br&gt;&lt;br&gt;I supose this is a left over of a previous implementation of addprimes.
&lt;br&gt;There is no such limitations currently.
&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;Bill.
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/cr.yp.to---pari-users-f864.html&quot; embed=&quot;fixTarget[864]&quot; target=&quot;_top&quot; &gt;cr.yp.to - pari-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Removing-primes-tp26493995p26504622.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26493995</id>
	<title>Removing primes</title>
	<published>2009-11-24T03:01:43Z</published>
	<updated>2009-11-24T03:01:43Z</updated>
	<author>
		<name>Jeroen Demeyer-2</name>
	</author>
	<content type="html">Hello pari-users,
&lt;br&gt;&lt;br&gt;In ?removeprimes it is written that the given vector should have at most
&lt;br&gt;100 components. &amp;nbsp;What is the reason for this? &amp;nbsp;In any case, it seems to
&lt;br&gt;work even with more than 100 primes.
&lt;br&gt;&lt;br&gt;I am in particular looking for a way to remove ALL primes from the
&lt;br&gt;addprimes list, i.e. removeprimes(addprimes()).
&lt;br&gt;&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;Jeroen.
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/cr.yp.to---pari-users-f864.html&quot; embed=&quot;fixTarget[864]&quot; target=&quot;_top&quot; &gt;cr.yp.to - pari-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Removing-primes-tp26493995p26493995.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26492127</id>
	<title>Re: change filename</title>
	<published>2009-11-24T00:24:31Z</published>
	<updated>2009-11-24T00:24:31Z</updated>
	<author>
		<name>Markus Stumpf-4</name>
	</author>
	<content type="html">On Tue, Nov 24, 2009 at 03:50:59PM +0800, packets wrote:
&lt;br&gt;&amp;gt; I implement safecat so that I can create another copy of emails outside 
&lt;br&gt;&amp;gt; Maildir directory. I want to create a script wherein it will tar all files 
&lt;br&gt;&amp;gt; if the file was receive lets say November. All emails received last October 
&lt;br&gt;&amp;gt; will not be included on tar.
&lt;br&gt;&lt;br&gt;You may want to look at the GNU tar -N/--newer/--after-date options.
&lt;br&gt;They allow to specify &amp;quot;DATE&amp;quot; as (from &amp;quot;info tar&amp;quot;):
&lt;br&gt;* Calendar date items:: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;19 Dec 1994.
&lt;br&gt;* Time of day items:: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;9:20pm.
&lt;br&gt;* Time zone items:: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;EST, PDT, GMT.
&lt;br&gt;* Day of week items:: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Monday and others.
&lt;br&gt;* Relative items in date strings:: next tuesday, 2 years ago.
&lt;br&gt;* Pure numbers in date strings:: &amp;nbsp; 19931219, 1440.
&lt;br&gt;* Seconds since the Epoch:: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@1078100502.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; \Maex
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/cr.yp.to---qmail-f870.html&quot; embed=&quot;fixTarget[870]&quot; target=&quot;_top&quot; &gt;cr.yp.to - qmail&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Checking-sender-ID-tp26454192p26492127.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26491847</id>
	<title>Re: change filename</title>
	<published>2009-11-23T23:50:59Z</published>
	<updated>2009-11-23T23:50:59Z</updated>
	<author>
		<name>packets-2</name>
	</author>
	<content type="html">I implement safecat so that I can create another copy of emails outside Maildir directory. I want to create a script 
&lt;br&gt;wherein it will tar all files if the file was receive lets say November. All emails received last October will not be 
&lt;br&gt;included on tar. Since this is an old server and there are files wayback last year, its hard to use mtime options of 
&lt;br&gt;find command though still possible by calculating days. If I can append month and date on the filename, it could make my 
&lt;br&gt;life easier.
&lt;br&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; But the main question to me is:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp;What problem are you trying to solve?
&lt;br&gt;&amp;gt; 
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/cr.yp.to---qmail-f870.html&quot; embed=&quot;fixTarget[870]&quot; target=&quot;_top&quot; &gt;cr.yp.to - qmail&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Checking-sender-ID-tp26454192p26491847.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26491298</id>
	<title>Re: change filename</title>
	<published>2009-11-23T23:01:32Z</published>
	<updated>2009-11-23T23:01:32Z</updated>
	<author>
		<name>Markus Stumpf-4</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;the original spec is here:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://cr.yp.to/proto/maildir.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://cr.yp.to/proto/maildir.html&lt;/a&gt;&lt;br&gt;Maildir++ spec is here:
&lt;br&gt;&amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://www.inter7.com/courierimap/README.maildirquota.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.inter7.com/courierimap/README.maildirquota.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;Those define naming rules, which programs should adopt, to guarantee some
&lt;br&gt;interoperability.
&lt;br&gt;&lt;br&gt;On Tue, Nov 24, 2009 at 11:18:26AM +0800, packets wrote:
&lt;br&gt;&amp;gt; Is it possible to change filename of all incoming emails before it will be 
&lt;br&gt;&amp;gt; deliver to Maildir?
&lt;br&gt;&lt;br&gt;Is the question:
&lt;br&gt;&amp;nbsp; - is it possible like in &amp;quot;how can I do it&amp;quot;?
&lt;br&gt;&amp;nbsp; &amp;nbsp; Then you might want to take a look at
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://www.jeenyus.net/linux/software/safecat.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.jeenyus.net/linux/software/safecat.html&lt;/a&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; and modify the source code to produce the new names
&lt;br&gt;&amp;nbsp; &amp;nbsp; Or modify qmail-local.c around line 700 in procedure maildir_child().
&lt;br&gt;or is the question
&lt;br&gt;&amp;nbsp; - is it possible like in &amp;quot;will I break things&amp;quot;?
&lt;br&gt;&amp;nbsp; &amp;nbsp; The you must check with your software accessing the maildirs.
&lt;br&gt;&lt;br&gt;But the main question to me is:
&lt;br&gt;&amp;nbsp; &amp;nbsp;What problem are you trying to solve?
&lt;br&gt;&lt;br&gt;The information you try to add to the name is already stored in the
&lt;br&gt;inode. You can access it with eg. &amp;quot;/bin/ls -l&amp;quot;
&lt;br&gt;If you want a more easy to process list use (GNU) find like:
&lt;br&gt;&amp;nbsp; &amp;nbsp; find /path -type f -printf &amp;quot;%CY%Cm %p\n&amp;quot;
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; \Maex
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/cr.yp.to---qmail-f870.html&quot; embed=&quot;fixTarget[870]&quot; target=&quot;_top&quot; &gt;cr.yp.to - qmail&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Checking-sender-ID-tp26454192p26491298.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26489924</id>
	<title>change filename</title>
	<published>2009-11-23T19:18:26Z</published>
	<updated>2009-11-23T19:18:26Z</updated>
	<author>
		<name>packets-2</name>
	</author>
	<content type="html">Is it possible to change filename of all incoming emails before it will be deliver to Maildir? Let's say I have a 
&lt;br&gt;filename 1258692713.M653901P24650.localhost. Can I change it to 1258692713.M653901P24650-200911.localhost. Can I apply 
&lt;br&gt;the output of the command &amp;quot;date +%F&amp;quot; in each incoming emails to append on the filename before it reach Maildir?
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/cr.yp.to---qmail-f870.html&quot; embed=&quot;fixTarget[870]&quot; target=&quot;_top&quot; &gt;cr.yp.to - qmail&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Checking-sender-ID-tp26454192p26489924.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26462439</id>
	<title>PROMOÇÃO HYSTER</title>
	<published>2009-11-21T18:34:52Z</published>
	<updated>2009-11-21T18:34:52Z</updated>
	<author>
		<name>HAILSON</name>
	</author>
	<content type="html">&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0 Transitional//EN&quot;&gt;
&lt;HTML xmlns:st1=&quot;urn:schemas-microsoft-com:office:smarttags&quot; xmlns:o=&quot;urn:schemas-microsoft-com:office:office&quot;&gt;&lt;HEAD&gt;&lt;TITLE&gt;&lt;/TITLE&gt;
&lt;META http-equiv=Content-Type content=&quot;text/html; charset=windows-1252&quot;&gt;
&lt;META content=&quot;MSHTML 6.00.2800.1106&quot; name=GENERATOR&gt;&lt;/HEAD&gt;
&lt;BODY&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;FONT size=5&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size=7&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;&lt;EM&gt;&lt;SPAN style=&quot;FONT-SIZE: 18pt; COLOR: red&quot;&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;
&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;SPAN style=&quot;FONT-SIZE: 18pt; COLOR: #0080ff&quot;&gt;&lt;STRONG&gt;SOMOS FABRICANTES
DE ROLETES E ROLDANAS PARA TORRES E QUADROS DE ELEVAÇÃO PARA EMPILHADEIRAS DAS
LINHAS:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;SPAN lang=EN-US style=&quot;FONT-SIZE: 18pt; BACKGROUND: white; COLOR: #004000; mso-ansi-language: EN-US&quot;&gt;CLARK,
HYSTER, YALE, &lt;st1:City w:st=&quot;on&quot;&gt;MILAN&lt;/st1:City&gt;, MADAL,&lt;st1:place w:st=&quot;on&quot;&gt;&lt;st1:City w:st=&quot;on&quot;&gt;TOYOTA&lt;/st1:City&gt;&lt;/st1:place&gt;,&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN lang=EN-US style=&quot;mso-ansi-language: EN-US&quot;&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;SPAN lang=EN-US style=&quot;FONT-SIZE: 18pt; BACKGROUND: white; COLOR: #004000; mso-ansi-language: EN-US&quot;&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/EM&gt;&lt;EM&gt;&lt;SPAN style=&quot;FONT-SIZE: 18pt; BACKGROUND: white; COLOR: #004000&quot;&gt;DAE-WOO, LINDE,
MITSUBISHI. E ETC.&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;SPAN style=&quot;FONT-SIZE: 13.5pt; COLOR: navy&quot;&gt;&lt;STRONG&gt;NOSSOS PRODUTOS,
RESPEITAM TODOS OS PADRÕES ORIGINAIS DO FABRICANTE,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;SPAN style=&quot;FONT-SIZE: 13.5pt; COLOR: navy&quot;&gt;&lt;STRONG&gt;E VOCÊ PODERÁ
CONSULTA-LO &lt;st1:PersonName w:st=&quot;on&quot; ProductID=&quot;EM NOSSA EMPRESA COM&quot;&gt;EM NOSSA
EMPRESA COM&lt;/st1:PersonName&gt; O CÓDIGO ORIGINAL DO
FABRICANTE.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;SPAN style=&quot;FONT-SIZE: 24pt; COLOR: navy&quot;&gt;GARANTIA SAVIPEÇAS,
&lt;/SPAN&gt;&lt;/EM&gt;&lt;EM&gt;&lt;SPAN style=&quot;FONT-SIZE: 13.5pt; COLOR: navy&quot;&gt;PARA TODA A LINHA
DE NOSSOS PRODUTOS.&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;SPAN style=&quot;FONT-SIZE: 13.5pt; COLOR: navy&quot;&gt;&lt;STRONG&gt;GARANTIA TOTAL DE 03
MESES .&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;SPAN style=&quot;FONT-SIZE: 13.5pt; COLOR: olive&quot;&gt;&lt;STRONG&gt;PREÇOS E PRAZOS
ESPECIAIS PARA REVENDAS DE PEÇAS E LOCADORES.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;SPAN style=&quot;FONT-SIZE: 13.5pt; COLOR: olive&quot;&gt;&lt;STRONG&gt;VENHA FAZER PARTE
DESTE SELETO GRUPO DE CLIENTES SATISFEITOS.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;SPAN style=&quot;FONT-SIZE: 13.5pt; COLOR: #ff8000&quot;&gt;E
MAIS:&amp;nbsp;&lt;/SPAN&gt;&lt;/EM&gt;&lt;SPAN style=&quot;FONT-SIZE: 13.5pt; COLOR: #ff8000&quot;&gt;&amp;nbsp;
DESENVOLVEMOS QUALQUER ÍTEM SOB DESENHO OU AMOSTRA.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style=&quot;FONT-SIZE: 13.5pt; COLOR: black&quot;&gt;&lt;STRONG&gt;MUITO OBRIGADO POR
VOSSA ATENÇÃO E SE PUDER AJUDAR ME LIGUE.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style=&quot;FONT-SIZE: 13.5pt&quot;&gt;&lt;STRONG&gt;CONTATO&lt;SPAN style=&quot;mso-spacerun: yes&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;0XX13&lt;SPAN style=&quot;mso-spacerun: yes&quot;&gt;&amp;nbsp; &lt;/SPAN&gt;30282634&lt;SPAN style=&quot;mso-spacerun: yes&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/SPAN&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style=&quot;FONT-SIZE: 13.5pt&quot;&gt;&lt;STRONG&gt;&lt;SPAN style=&quot;mso-spacerun: yes&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;/SPAN&gt;&lt;SPAN style=&quot;mso-spacerun: yes&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;0XX13
97323554&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;o:p&gt;&lt;FONT size=3&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style=&quot;FONT-SIZE: 13.5pt&quot;&gt;&lt;STRONG&gt;SDS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; HAILSON
&lt;SPAN style=&quot;mso-spacerun: yes&quot;&gt;&amp;nbsp;&lt;/SPAN&gt;// DEPTO PRODUÇÃO //
VENDAS.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;HR SIZE=1&gt;
&lt;FONT face=&quot;Verdana, Arial&quot; size=1&gt;&lt;FONT color=#808080&gt;&lt;B&gt;OBS:&lt;/B&gt; Você está
recebendo este e-mail porque está cadastrado para tal. Caso você não deseje mais
receber nenhum tipo de contato nosso, &lt;/FONT&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26462439&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;seuemail@...&lt;/a&gt;&lt;FONT color=#808080&gt;, ou envie um e-mail para &lt;B&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26462439&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;seuemail@...&lt;/a&gt;&lt;/B&gt; com o assunto
REMOVER.&lt;/FONT&gt;&lt;/FONT&gt; &lt;/BODY&gt;&lt;/HTML&gt;
&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/cr.yp.to---pari-dev-f863.html&quot; embed=&quot;fixTarget[863]&quot; target=&quot;_top&quot; &gt;cr.yp.to - pari-dev&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/PROMO%C3%87%C3%83O-HYSTER-tp26462439p26462439.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26458417</id>
	<title>Re: Checking sender ID</title>
	<published>2009-11-21T08:57:00Z</published>
	<updated>2009-11-21T08:57:00Z</updated>
	<author>
		<name>Erwin Hoffmann</name>
	</author>
	<content type="html">Hi Wong
&lt;br&gt;&lt;br&gt;&lt;br&gt;--On Samstag, November 21, 2009 14:26:42 +0800 Wong &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26458417&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;wongbali@...&lt;/a&gt;&amp;gt; 
&lt;br&gt;wrote:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Dear All,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; So far, our qmail allow all user sent messages as long as they are in our
&lt;br&gt;&amp;gt; LAN subnet.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; I need advise how to limit qmail to allow users sending out messages
&lt;br&gt;&amp;gt; (only) if they use company domain. By that policy, user only able to send
&lt;br&gt;&amp;gt; out messages with 2 conditions:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 1. In LAN subnet
&lt;br&gt;&amp;gt; 2. Use specific (company) domain
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; All incoming messages should not effected by this setting. Is it possible?
&lt;/div&gt;&lt;br&gt;Plain (= vanilla) qmail does not support this restriction.
&lt;br&gt;&lt;br&gt;However, you can use my 'Mail From: Address Verification' (MAV) patch for 
&lt;br&gt;qmail which allows you to setup those filter mechanisms.
&lt;br&gt;MAV is also part of my SPAMCONTROL.
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://www.fehcom.de/qmail.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.fehcom.de/qmail.html&lt;/a&gt;&lt;br&gt;&lt;br&gt;regards.
&lt;br&gt;--eh.
&lt;br&gt;&lt;br&gt;Dr. Erwin Hoffmann | FEHCom | &lt;a href=&quot;http://www.fehcom.de/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.fehcom.de/&lt;/a&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/cr.yp.to---qmail-f870.html&quot; embed=&quot;fixTarget[870]&quot; target=&quot;_top&quot; &gt;cr.yp.to - qmail&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Checking-sender-ID-tp26454192p26458417.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26454192</id>
	<title>Checking sender ID</title>
	<published>2009-11-20T22:26:42Z</published>
	<updated>2009-11-20T22:26:42Z</updated>
	<author>
		<name>Wong-8</name>
	</author>
	<content type="html">Dear All,
&lt;br&gt;&lt;br&gt;So far, our qmail allow all user sent messages as long as they are in our 
&lt;br&gt;LAN subnet.
&lt;br&gt;&lt;br&gt;I need advise how to limit qmail to allow users sending out messages (only) 
&lt;br&gt;if they use company domain. By that policy, user only able to send out 
&lt;br&gt;messages with 2 conditions:
&lt;br&gt;&lt;br&gt;1. In LAN subnet
&lt;br&gt;2. Use specific (company) domain
&lt;br&gt;&lt;br&gt;All incoming messages should not effected by this setting. Is it possible?
&lt;br&gt;&lt;br&gt;Thank you so much for your help.
&lt;br&gt;&lt;br&gt;Best Rgds,
&lt;br&gt;&lt;br&gt;Wong
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/cr.yp.to---qmail-f870.html&quot; embed=&quot;fixTarget[870]&quot; target=&quot;_top&quot; &gt;cr.yp.to - qmail&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Checking-sender-ID-tp26454192p26454192.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26437528</id>
	<title>Re: tcpserver, qmail-smtpd, qmail-queue and filter Qs</title>
	<published>2009-11-19T18:24:54Z</published>
	<updated>2009-11-19T18:24:54Z</updated>
	<author>
		<name>Markus Stumpf-4</name>
	</author>
	<content type="html">On Fri, Nov 20, 2009 at 10:03:17AM +1100, Philip Rhoades wrote:
&lt;br&gt;&amp;gt; Good question - why is it that the two pairs can have different values?
&lt;br&gt;&lt;br&gt;Just think of this mailing list.
&lt;br&gt;The 2822.From of your message was
&lt;br&gt;&amp;nbsp; &amp;nbsp; Philip Rhoades &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26437528&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;phil@...&lt;/a&gt;&amp;gt;
&lt;br&gt;but the 2821.FROM points to the qmail list manager, as this is where
&lt;br&gt;administrative messages regarding this message should go to (like
&lt;br&gt;recipient does no longer exist).
&lt;br&gt;Also (although I have never seen that) per RFC 2822 a email can have
&lt;br&gt;more than one address in the 2822.From field, but only one 2821.MAILFROM.
&lt;br&gt;&lt;br&gt;Just think of the 2821.MAILFROM as what it is often called: the envelope
&lt;br&gt;sender. As with a lot of snail mail messages the address on the envelope
&lt;br&gt;may be somewhat generic, while the address on the letter in the envelope
&lt;br&gt;is more specific.
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; \Maex
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/cr.yp.to---qmail-f870.html&quot; embed=&quot;fixTarget[870]&quot; target=&quot;_top&quot; &gt;cr.yp.to - qmail&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/tcpserver%2C-qmail-smtpd%2C-qmail-queue-and-filter-Qs-tp26418564p26437528.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26435811</id>
	<title>Re: tcpserver, qmail-smtpd, qmail-queue and filter Qs</title>
	<published>2009-11-19T15:03:17Z</published>
	<updated>2009-11-19T15:03:17Z</updated>
	<author>
		<name>Philip Rhoades-2</name>
	</author>
	<content type="html">Adi,
&lt;br&gt;&lt;br&gt;&lt;br&gt;On 2009-11-19 17:03, Adi Pircalabu wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Thu, 19 Nov 2009 11:48:35 +1100 Philip Rhoades wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; I was thinking if the sender's and recipient's addresses could be
&lt;br&gt;&amp;gt;&amp;gt; available immediately after greylite, I could block black listed
&lt;br&gt;&amp;gt;&amp;gt; senders and recipients before qmail-smtpd execs?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 1. Sender (as specified by MAIL FROM) and recipient (as specified by
&lt;br&gt;&amp;gt; RPCTO TO) email addresses in the message envelope can differ to the ones
&lt;br&gt;&amp;gt; in the email message (specified by From: and To:). Which one is the
&lt;br&gt;&amp;gt; pair of addresses you are referring to?
&lt;/div&gt;&lt;br&gt;&lt;br&gt;Good question - why is it that the two pairs can have different values?
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt; 2. Addresses in the envelope are not available until qmail-smtpd is
&lt;br&gt;&amp;gt; executed, because that's the process that sends &amp;quot;220 hostname ESMTP&amp;quot;.
&lt;br&gt;&amp;gt; Before this message the client won't send any envelope information.
&lt;br&gt;&lt;br&gt;&lt;br&gt;That doesn't seem to be the case - greylite execs before qmail-smtpd and 
&lt;br&gt;in the greylite code there is this:
&lt;br&gt;&lt;br&gt;#define SMTP_ENVELOPE_OK &amp;nbsp;0
&lt;br&gt;/* session OK, envelope data stored correctly */
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;&lt;br&gt;Phil.
&lt;br&gt;-- 
&lt;br&gt;Philip Rhoades
&lt;br&gt;&lt;br&gt;GPO Box 3411
&lt;br&gt;Sydney NSW	2001
&lt;br&gt;Australia
&lt;br&gt;E-mail: &amp;nbsp;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26435811&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;phil@...&lt;/a&gt;
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/cr.yp.to---qmail-f870.html&quot; embed=&quot;fixTarget[870]&quot; target=&quot;_top&quot; &gt;cr.yp.to - qmail&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/tcpserver%2C-qmail-smtpd%2C-qmail-queue-and-filter-Qs-tp26418564p26435811.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26429471</id>
	<title>Re: tcpserver, qmail-smtpd, qmail-queue and filter Qs</title>
	<published>2009-11-19T08:16:37Z</published>
	<updated>2009-11-19T08:16:37Z</updated>
	<author>
		<name>Kyle Wheeler-2</name>
	</author>
	<content type="html">-----BEGIN PGP SIGNED MESSAGE-----
&lt;br&gt;Hash: SHA256
&lt;br&gt;&lt;br&gt;On Thursday, November 19 at 11:48 AM, quoth Philip Rhoades:
&lt;br&gt;&amp;gt; In my setup tcpserver execs greylite which eventually execs 
&lt;br&gt;&amp;gt; qmail-smtpd. Greylite uses the to and from IP addresses of the tcp 
&lt;br&gt;&amp;gt; communication - is any of the message itself (header lines?, body?) 
&lt;br&gt;&amp;gt; available at this point or only after qmail-smtpd runs?
&lt;br&gt;&lt;br&gt;As other folks have pointed out, the short answer is &amp;quot;no&amp;quot;.
&lt;br&gt;&lt;br&gt;But, I think the longer answer is: just precisely what is it that you 
&lt;br&gt;think qmail-smtpd *does*? If the message is available before 
&lt;br&gt;qmail-smtpd runs to communicate with the sender, what's the purpose of &amp;nbsp;
&lt;br&gt;qmail-smtpd?
&lt;br&gt;&lt;br&gt;Qmail-smtpd is there to SPEAK SMTP. That is, it can handle 
&lt;br&gt;authentication, allows the sender to specify recipients and the 
&lt;br&gt;sender, and finally prompts the sender to transmit the message. Before 
&lt;br&gt;that happens, the sender HAS NOT SENT THE MESSAGE. Thus, none of it is 
&lt;br&gt;available. Your question is akin to asking &amp;quot;is it possible to find out 
&lt;br&gt;what the lottery number will be before they draw the numbers from the 
&lt;br&gt;lottery machine?&amp;quot;. The message is transmitted by talking SMTP; 
&lt;br&gt;qmail-smtpd is the program that speaks SMTP; without talking SMTP, no &amp;nbsp;
&lt;br&gt;part of the message has been transmitted (and you have not received 
&lt;br&gt;it). Before qmail-smtpd runs, you know only the information about the 
&lt;br&gt;connection itself: the IP address (and hostname) of the connecting 
&lt;br&gt;client, the port numbers that are being used.
&lt;br&gt;&lt;br&gt;&amp;gt; In the qmail-qfilter setup, the filtering of the message is done 
&lt;br&gt;&amp;gt; after qmail-smtpd processes the message and before it hands it to 
&lt;br&gt;&amp;gt; qmail-queue. &amp;nbsp;So it looks like any filtering on lines from the 
&lt;br&gt;&amp;gt; message itself has to be done at this point.
&lt;br&gt;&lt;br&gt;Indeed - do you understand why that is the case?
&lt;br&gt;&lt;br&gt;&amp;gt; I was thinking if the sender's and recipient's addresses could be 
&lt;br&gt;&amp;gt; available immediately after greylite, I could block black listed 
&lt;br&gt;&amp;gt; senders and recipients before qmail-smtpd execs?
&lt;br&gt;&lt;br&gt;The sender and recipient list is transmitted VIA SMTP. Without 
&lt;br&gt;speaking SMTP (i.e. by using some program (such as qmail-smtpd) to 
&lt;br&gt;speak SMTP), you cannot know that information. Similarly, you cannot 
&lt;br&gt;know the first number that will come out of the lotto machine without 
&lt;br&gt;turning the lotto machine on.
&lt;br&gt;&lt;br&gt;If you want to create a greylisting behavior that includes 
&lt;br&gt;sender/recipient information, you probably want to use something like 
&lt;br&gt;the RCPTCHECK patch to qmail-smtpd, which allows qmail-smtpd to call 
&lt;br&gt;another program to verify recipients AFTER the sender and recipients 
&lt;br&gt;have been specified but BEFORE the message has been sent. I even have 
&lt;br&gt;an example script on my website, here: 
&lt;br&gt;&lt;a href=&quot;http://www.memoryhole.net/qmail/#rcptcheck&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.memoryhole.net/qmail/#rcptcheck&lt;/a&gt;&lt;br&gt;&lt;br&gt;Hope that helps. :)
&lt;br&gt;&lt;br&gt;~Kyle
&lt;br&gt;- -- 
&lt;br&gt;A tyrant must put on the appearance of uncommon devotion to religion. 
&lt;br&gt;Subjects are less apprehensive of illegal treatment from a ruler whom 
&lt;br&gt;they consider God-fearing and pious. On the other hand, they do less 
&lt;br&gt;easily move against him, believing that he has the gods on his side.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-- Aristotle
&lt;br&gt;-----BEGIN PGP SIGNATURE-----
&lt;br&gt;Comment: Thank you for using encryption!
&lt;br&gt;&lt;br&gt;iQIcBAEBCAAGBQJLBW9lAAoJECuveozR/AWeb9AP/jm7pK4bJ69etM3hmuAI35gA
&lt;br&gt;r7Y23GysxE1shpkbsBQIJVVAuroPudjIOeBqQJjcfB+WD7iuPlkjtms1CBvi5yY5
&lt;br&gt;U+53P2mERLB1/tIJQvYMOqoDW+yYRtoLURdkJpNOAu5a7C1rccC4/4cKkpCSeBsq
&lt;br&gt;7egYcRWNMTHbcmeKhuAYF0wr2uek2rGdm794yzzV/OGwMy+vat3CA9vCPE5gCKpX
&lt;br&gt;Exke4aOclQ4nXRCjdD110PGGoTDufasY5/NPiklS2b+dSw6ptKPQk412BzvabL77
&lt;br&gt;EgMQGKMC+ZlW+0mQgjjtKYBwaLk8YLacRjl8HmJCEIe3cRniWT72lUXuhGLhGoXp
&lt;br&gt;yu2JLG9K0kSwQBqAJFWx3RRdbUC6hSJYO2X79bR3JTW0HGwvbB87wHFHFFFg13M8
&lt;br&gt;dA9uLFyyh+gkxsxww05Ro0wyY/ZYY+iDWlfoIUJ0YXeY6CGU2bCTUxAPRHZQEwmT
&lt;br&gt;eN6i4vTCE99la04Ds86lBYuBuOLghdkxAjT2yNPpGJtNKLqbVHhk8XWwfmBkz5hY
&lt;br&gt;shk+CZJswx452WPrHkYKK6stwaaQjPHcTreIX3RNgsRqVN5hPEf471rCrspk2KxW
&lt;br&gt;DNBCt2cHXOHSP27+JRQJz2XwHIYabSVFWHfx++NQ5NOeiFtvgFsFHdPHm2NT7db/
&lt;br&gt;MXG7xdKpbAJtmQ6ahVFv
&lt;br&gt;=nFkg
&lt;br&gt;-----END PGP SIGNATURE-----
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/cr.yp.to---qmail-f870.html&quot; embed=&quot;fixTarget[870]&quot; target=&quot;_top&quot; &gt;cr.yp.to - qmail&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/tcpserver%2C-qmail-smtpd%2C-qmail-queue-and-filter-Qs-tp26418564p26429471.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26425708</id>
	<title>Re: Ideals</title>
	<published>2009-11-19T04:51:50Z</published>
	<updated>2009-11-19T04:51:50Z</updated>
	<author>
		<name>Bill Allombert-3</name>
	</author>
	<content type="html">On Thu, Nov 19, 2009 at 01:21:54PM +0100, Vojtech Brtnik wrote:
&lt;br&gt;&amp;gt; Hello,
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I am trying to figure out how to list all prime ideals and ideals
&lt;br&gt;&amp;gt; (with norm under certain bound) in a field Q(a) where a is a root of
&lt;br&gt;&amp;gt; certain irreducible polynomial... I am relatively newbie to PARI so if
&lt;br&gt;&amp;gt; there is a better place to ask these questions please let me kindly
&lt;br&gt;&amp;gt; know.
&lt;br&gt;&lt;br&gt;Look at the function ideallist:
&lt;br&gt;&lt;br&gt;? ideallist(nfinit(x^3+x+1),10)
&lt;br&gt;%2 = [[[1, 0, 0; 0, 1, 0; 0, 0, 1]], [], [[3, 1, 2; 0, 1, 0; 0, 0, 1]], [], [],
&lt;br&gt;[], [], [[2, 0, 0; 0, 2, 0; 0, 0, 2]], [[9, 4, 2; 0, 1, 0; 0, 0, 1], [3, 0, 1; 0, 3, 1; 0, 0, 1]], []]
&lt;br&gt;&lt;br&gt;Cheers,
&lt;br&gt;Bill.
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/cr.yp.to---pari-users-f864.html&quot; embed=&quot;fixTarget[864]&quot; target=&quot;_top&quot; &gt;cr.yp.to - pari-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Ideals-tp26425375p26425708.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26425375</id>
	<title>Ideals</title>
	<published>2009-11-19T04:21:54Z</published>
	<updated>2009-11-19T04:21:54Z</updated>
	<author>
		<name>Vojtech Brtnik-2</name>
	</author>
	<content type="html">Hello,
&lt;br&gt;&lt;br&gt;I am trying to figure out how to list all prime ideals and ideals
&lt;br&gt;(with norm under certain bound) in a field Q(a) where a is a root of
&lt;br&gt;certain irreducible polynomial... I am relatively newbie to PARI so if
&lt;br&gt;there is a better place to ask these questions please let me kindly
&lt;br&gt;know.
&lt;br&gt;&lt;br&gt;Best regards,
&lt;br&gt;V.
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/cr.yp.to---pari-users-f864.html&quot; embed=&quot;fixTarget[864]&quot; target=&quot;_top&quot; &gt;cr.yp.to - pari-users&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Ideals-tp26425375p26425375.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26420882</id>
	<title>Re: tcpserver, qmail-smtpd, qmail-queue and filter Qs</title>
	<published>2009-11-18T22:03:32Z</published>
	<updated>2009-11-18T22:03:32Z</updated>
	<author>
		<name>Adi Pircalabu</name>
	</author>
	<content type="html">On Thu, 19 Nov 2009 11:48:35 +1100 Philip Rhoades wrote:
&lt;br&gt;&lt;br&gt;&amp;gt; I was thinking if the sender's and recipient's addresses could be
&lt;br&gt;&amp;gt; available immediately after greylite, I could block black listed
&lt;br&gt;&amp;gt; senders and recipients before qmail-smtpd execs?
&lt;br&gt;&lt;br&gt;1. Sender (as specified by MAIL FROM) and recipient (as specified by
&lt;br&gt;RPCTO TO) email addresses in the message envelope can differ to the ones
&lt;br&gt;in the email message (specified by From: and To:). Which one is the
&lt;br&gt;pair of addresses you are referring to?
&lt;br&gt;2. Addresses in the envelope are not available until qmail-smtpd is
&lt;br&gt;executed, because that's the process that sends &amp;quot;220 hostname ESMTP&amp;quot;.
&lt;br&gt;Before this message the client won't send any envelope information.
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Adi Pircalabu
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/cr.yp.to---qmail-f870.html&quot; embed=&quot;fixTarget[870]&quot; target=&quot;_top&quot; &gt;cr.yp.to - qmail&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/tcpserver%2C-qmail-smtpd%2C-qmail-queue-and-filter-Qs-tp26418564p26420882.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26420769</id>
	<title>Re: tcpserver, qmail-smtpd, qmail-queue and filter Qs</title>
	<published>2009-11-18T21:41:18Z</published>
	<updated>2009-11-18T21:41:18Z</updated>
	<author>
		<name>Dhaval Thakar-2</name>
	</author>
	<content type="html">&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Thu, Nov 19, 2009 at 6:18 AM, Philip Rhoades &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26420769&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;phil@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;&quot;&gt;

People,&lt;br&gt;
&lt;br&gt;
Following up the previous question re tcpserver operation:&lt;br&gt;
&lt;br&gt;
In my setup tcpserver execs greylite which eventually execs qmail-smtpd. Greylite uses the to and from IP addresses of the tcp communication - is any of the message itself (header lines?, body?) available at this point or only after qmail-smtpd runs?&lt;br&gt;


&lt;br&gt;
In the qmail-qfilter setup, the filtering of the message is done after qmail-smtpd processes the message and before it hands it to qmail-queue.  So it looks like any filtering on lines from the message itself has to be done at this point.  I was thinking if the sender&amp;#39;s and recipient&amp;#39;s addresses could be available immediately after greylite, I could block black listed senders and recipients before qmail-smtpd execs?&lt;br&gt;


&lt;br&gt;
Thanks,&lt;br&gt;
&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;div&gt;i have blocked blacklisted sender &amp;amp; recipient at smtp using jms patch&lt;br&gt;
all you need to do is to mention email ids in badmailfrom &amp;amp; 
badrcptto of qmail control folder.&lt;br&gt;
&lt;br&gt;
-- &lt;br&gt;
Regards&lt;br&gt;
Dhaval Thakar&lt;br&gt;
&lt;a href=&quot;http://www.linuxreaders.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.linuxreaders.com&lt;/a&gt;&lt;br&gt;
&lt;br&gt; 
&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;br&gt;&lt;br clear=&quot;all&quot;&gt;&lt;br&gt;/&lt;br&gt;&lt;br&gt;
&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/cr.yp.to---qmail-f870.html&quot; embed=&quot;fixTarget[870]&quot; target=&quot;_top&quot; &gt;cr.yp.to - qmail&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/tcpserver%2C-qmail-smtpd%2C-qmail-queue-and-filter-Qs-tp26418564p26420769.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26419576</id>
	<title>Re: duplicate copy</title>
	<published>2009-11-18T18:52:19Z</published>
	<updated>2009-11-18T18:52:19Z</updated>
	<author>
		<name>packets-2</name>
	</author>
	<content type="html">Thanks Andrew! It works
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; If it's not you could use a tool like safecat instead,
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; 	./Maildir/
&lt;br&gt;&amp;gt; 	|safecat Maildir/tmp Maildir/backup
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; 
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/cr.yp.to---qmail-f870.html&quot; embed=&quot;fixTarget[870]&quot; target=&quot;_top&quot; &gt;cr.yp.to - qmail&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/duplicate-copy-tp26404516p26419576.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26418741</id>
	<title>Re: tcpserver, qmail-smtpd, qmail-queue and filter Qs</title>
	<published>2009-11-18T17:07:46Z</published>
	<updated>2009-11-18T17:07:46Z</updated>
	<author>
		<name>Charles Cazabon-17</name>
	</author>
	<content type="html">Philip Rhoades &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26418741&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;phil@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; In my setup tcpserver execs greylite which eventually execs qmail-smtpd. 
&lt;br&gt;&amp;gt; Greylite uses the to and from IP addresses of the tcp communication - is 
&lt;br&gt;&amp;gt; any of the message itself (header lines?, body?) available at this point 
&lt;br&gt;&amp;gt; or only after qmail-smtpd runs?
&lt;br&gt;&lt;br&gt;No, no data has been exchanged with the client before qmail-smtpd runs. &amp;nbsp;The
&lt;br&gt;only information that is available is that which tcpserver makes available to
&lt;br&gt;the program it runs through the various environment variables it sets.
&lt;br&gt;&lt;br&gt;&amp;gt; In the qmail-qfilter setup, the filtering of the message is done after
&lt;br&gt;&amp;gt; qmail-smtpd processes the message and before it hands it to qmail-queue. &amp;nbsp;So
&lt;br&gt;&amp;gt; it looks like any filtering on lines from the message itself has to be done
&lt;br&gt;&amp;gt; at this point. 
&lt;br&gt;&lt;br&gt;Yes, exactly.
&lt;br&gt;&lt;br&gt;&amp;gt; I was thinking if the sender's and recipient's addresses could be available
&lt;br&gt;&amp;gt; immediately after greylite, I could block black listed senders and
&lt;br&gt;&amp;gt; recipients before qmail-smtpd execs?
&lt;br&gt;&lt;br&gt;Not without a magic wand ;)
&lt;br&gt;&lt;br&gt;Charles
&lt;br&gt;-- 
&lt;br&gt;--------------------------------------------------------------------------
&lt;br&gt;Charles Cazabon
&lt;br&gt;GPL'ed software available at: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://pyropus.ca/software/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://pyropus.ca/software/&lt;/a&gt;&lt;br&gt;Read &lt;a href=&quot;http://pyropus.ca/personal/writings/12-steps-to-qmail-list-bliss.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://pyropus.ca/personal/writings/12-steps-to-qmail-list-bliss.html&lt;/a&gt;&lt;br&gt;--------------------------------------------------------------------------
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/cr.yp.to---qmail-f870.html&quot; embed=&quot;fixTarget[870]&quot; target=&quot;_top&quot; &gt;cr.yp.to - qmail&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/tcpserver%2C-qmail-smtpd%2C-qmail-queue-and-filter-Qs-tp26418564p26418741.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26418564</id>
	<title>tcpserver, qmail-smtpd, qmail-queue and filter Qs</title>
	<published>2009-11-18T16:48:35Z</published>
	<updated>2009-11-18T16:48:35Z</updated>
	<author>
		<name>Philip Rhoades-2</name>
	</author>
	<content type="html">People,
&lt;br&gt;&lt;br&gt;Following up the previous question re tcpserver operation:
&lt;br&gt;&lt;br&gt;In my setup tcpserver execs greylite which eventually execs qmail-smtpd. 
&lt;br&gt;Greylite uses the to and from IP addresses of the tcp communication - is 
&lt;br&gt;any of the message itself (header lines?, body?) available at this point 
&lt;br&gt;or only after qmail-smtpd runs?
&lt;br&gt;&lt;br&gt;In the qmail-qfilter setup, the filtering of the message is done after 
&lt;br&gt;qmail-smtpd processes the message and before it hands it to qmail-queue. 
&lt;br&gt;&amp;nbsp; So it looks like any filtering on lines from the message itself has to 
&lt;br&gt;be done at this point. &amp;nbsp;I was thinking if the sender's and recipient's 
&lt;br&gt;addresses could be available immediately after greylite, I could block 
&lt;br&gt;black listed senders and recipients before qmail-smtpd execs?
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;&lt;br&gt;Phil.
&lt;br&gt;-- 
&lt;br&gt;Philip Rhoades
&lt;br&gt;&lt;br&gt;GPO Box 3411
&lt;br&gt;Sydney NSW	2001
&lt;br&gt;Australia
&lt;br&gt;E-mail: &amp;nbsp;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26418564&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;phil@...&lt;/a&gt;
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/cr.yp.to---qmail-f870.html&quot; embed=&quot;fixTarget[870]&quot; target=&quot;_top&quot; &gt;cr.yp.to - qmail&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/tcpserver%2C-qmail-smtpd%2C-qmail-queue-and-filter-Qs-tp26418564p26418564.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26411566</id>
	<title>Re: tcpserver help</title>
	<published>2009-11-18T08:58:09Z</published>
	<updated>2009-11-18T08:58:09Z</updated>
	<author>
		<name>Philip Rhoades-2</name>
	</author>
	<content type="html">Markus, Kyle, Otavio,
&lt;br&gt;&lt;br&gt;&lt;br&gt;On 2009-11-19 03:05, Kyle Wheeler wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Wednesday, November 18 at 03:47 PM, quoth Philip Rhoades:
&lt;br&gt;&amp;gt;&amp;gt; Yes, I understand and it is more or less what I thought - so if
&lt;br&gt;&amp;gt;&amp;gt; greylite (or any other prog in the chain) exits with the
&lt;br&gt;&amp;gt;&amp;gt; appropriate return value, the rest of the chain is not executed?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; If you're worried about the return value, then you're not
&lt;br&gt;&amp;gt; understanding what I wrote.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; The process is called &amp;quot;exec chaining&amp;quot; because the fundamental aspect
&lt;br&gt;&amp;gt; &amp;nbsp;of it is the &amp;quot;exec&amp;quot; system call, which (on Unix machines) fully and
&lt;br&gt;&amp;gt; &amp;nbsp;completely replaces the application that makes the call with the
&lt;br&gt;&amp;gt; program it specifies. For example, if I have a program (let's call it
&lt;br&gt;&amp;gt; &amp;quot;tcpserver&amp;quot;) that calls &amp;quot;exec(/usr/bin/greylite)&amp;quot;, then the program
&lt;br&gt;&amp;gt; is no longer tcpserver, it is now greylite. Tcpserver is gone and
&lt;br&gt;&amp;gt; cannot come back, it cannot control what greylite does, and when
&lt;br&gt;&amp;gt; greylite exits the program simply ends (tcpserver does not restart
&lt;br&gt;&amp;gt; or come back or anything even remotely similar). An &amp;quot;exec chain&amp;quot; is
&lt;br&gt;&amp;gt; when several programs exec each other one after the next: first
&lt;br&gt;&amp;gt; tcpserver execs greylite, then greylite execs qmail-smtpd, then
&lt;br&gt;&amp;gt; qmail-smtpd exits, the end. (OR, alternately, first tcpserver execs
&lt;br&gt;&amp;gt; greylite, then greylite exits, the end.) You see? The &amp;quot;return code&amp;quot;
&lt;br&gt;&amp;gt; has no impact on the chain. In fact, when a program calls &amp;quot;exec&amp;quot;, it
&lt;br&gt;&amp;gt; does not have an opportunity to return any code of any sort: it is
&lt;br&gt;&amp;gt; now a completely different program.
&lt;/div&gt;&lt;br&gt;&lt;br&gt;Right.
&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Now, things are actually slightly more complicated. The &amp;quot;exec&amp;quot; call
&lt;br&gt;&amp;gt; is normally (i.e. when not doing &amp;quot;exec chaining&amp;quot;) paired with a
&lt;br&gt;&amp;gt; &amp;quot;fork&amp;quot; call. &amp;quot;Fork&amp;quot;, on Unix machines, creates a duplicate of a
&lt;br&gt;&amp;gt; program. So, if tcpserver calls &amp;quot;fork&amp;quot;, suddenly I have *TWO*
&lt;br&gt;&amp;gt; instances of tcpserver. This is how tcpserver can behave as a
&lt;br&gt;&amp;gt; server. For every new connection, it duplicates itself. The original
&lt;br&gt;&amp;gt; goes back to listening for new connections, while the duplicate
&lt;br&gt;&amp;gt; calls &amp;quot;exec&amp;quot; to replace itself with some program (e.g. greylite).
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Thus, tcpserver runs one program, and only one program, and only ever
&lt;br&gt;&amp;gt; one program.
&lt;/div&gt;&lt;br&gt;&lt;br&gt;Right.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt; That program may do whatever it likes. It can exec another program
&lt;br&gt;&amp;gt; (and thus cease to exist), OR it may return whatever return code it
&lt;br&gt;&amp;gt; likes. Tcpserver (the original) does nothing more than record that
&lt;br&gt;&amp;gt; return value in the log file.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Does that clear things up somewhat?
&lt;br&gt;&lt;br&gt;&lt;br&gt;Very well thanks!
&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;&amp;gt; So if I construct a script that does the filtering that I want then
&lt;br&gt;&amp;gt;&amp;gt; I just need it to be able to exec the rest of the chain if
&lt;br&gt;&amp;gt;&amp;gt; necessary?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Exactly.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; For example, if you wanted to create a script that would only allow
&lt;br&gt;&amp;gt; connections from the IP address 1.2.3.4, what would that mean? (Yes,
&lt;br&gt;&amp;gt; &amp;nbsp;there are simpler ways of doing this than with a wrapper script, but
&lt;br&gt;&amp;gt; &amp;nbsp;I'm using this as an informative example.) In an exec-chain like
&lt;br&gt;&amp;gt; this, &amp;quot;allowing the connection&amp;quot; means &amp;quot;continuing the chain&amp;quot;, which
&lt;br&gt;&amp;gt; really means &amp;quot;exec-ing the next program in the chain (and passing
&lt;br&gt;&amp;gt; along the arguments to define the rest of the chain)&amp;quot;. &amp;quot;Denying the
&lt;br&gt;&amp;gt; connection&amp;quot; means simply exiting.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; So, here's an example simple script that demonstrates (more verbosely
&lt;br&gt;&amp;gt; than necessary) the idea:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; #!/bin/bash if [ $TCPREMOTEIP == 1.2.3.4 ] ; then exec &amp;quot;$@&amp;quot; else
&lt;br&gt;&amp;gt; exit $RANDOM fi
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; You'll notice that the exit code is random. That's to emphasize that
&lt;br&gt;&amp;gt; &amp;nbsp;it is irrelevant. You may be wondering &amp;quot;what does this &amp;quot;$@&amp;quot; mean?&amp;quot;.
&lt;br&gt;&amp;gt; In bash, the $@ variable is a reference to the arguments that have
&lt;br&gt;&amp;gt; been passed to the program. Putting the $@ variable in quotes tells
&lt;br&gt;&amp;gt; bash to expand the variable to its component pieces as if each
&lt;br&gt;&amp;gt; component (each argument) was in quotes (if that makes no sense to
&lt;br&gt;&amp;gt; you, ignore it for the moment and just take on faith that the quotes
&lt;br&gt;&amp;gt; are important to use).
&lt;/div&gt;&lt;br&gt;&lt;br&gt;OK.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt; So, now you have to ask yourself: how does this fit into the chain?
&lt;br&gt;&amp;gt; You'll note that it doesn't check the return value of whatever it
&lt;br&gt;&amp;gt; exec's, and yet the exec chain after this program can be long and
&lt;br&gt;&amp;gt; complicated.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; If you already know all this, I apologize for flogging a dead horse.
&lt;br&gt;&amp;gt; &amp;nbsp;But by talking about the return code, it sounded like you didn't
&lt;br&gt;&amp;gt; quite understand the concept.
&lt;br&gt;&lt;br&gt;&lt;br&gt;No, I was probably still a bit confused and I didn't explain myself
&lt;br&gt;clearly enough - I guess I was thinking of the qmail-qfilter situation
&lt;br&gt;and the return codes from the filter programs returned to the
&lt;br&gt;qmail-qfilter program.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt; It's worth pointing out: this is VERY different from how
&lt;br&gt;&amp;gt; qmail-qfilter works, because qmail-qfilter doesn't use exec
&lt;br&gt;&amp;gt; chaining. Qmail-qfilter runs each program (read: &amp;quot;filter&amp;quot;), captures
&lt;br&gt;&amp;gt; its output and its return code, and decides whether to run the next
&lt;br&gt;&amp;gt; program.
&lt;br&gt;&lt;br&gt;&lt;br&gt;Understood clearly now.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt; ~Kyle
&lt;br&gt;&lt;br&gt;&lt;br&gt;Many thanks for the in-depth responses! &amp;nbsp;I have learnt a lot with this 
&lt;br&gt;exercise!
&lt;br&gt;&lt;br&gt;Appreciatively,
&lt;br&gt;&lt;br&gt;Phil.
&lt;br&gt;-- 
&lt;br&gt;Philip Rhoades
&lt;br&gt;&lt;br&gt;GPO Box 3411
&lt;br&gt;Sydney NSW	2001
&lt;br&gt;Australia
&lt;br&gt;E-mail: &amp;nbsp;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26411566&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;phil@...&lt;/a&gt;
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/cr.yp.to---qmail-f870.html&quot; embed=&quot;fixTarget[870]&quot; target=&quot;_top&quot; &gt;cr.yp.to - qmail&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/tcpserver-help-tp26394463p26411566.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26410722</id>
	<title>Re: tcpserver help</title>
	<published>2009-11-18T08:05:22Z</published>
	<updated>2009-11-18T08:05:22Z</updated>
	<author>
		<name>Kyle Wheeler-2</name>
	</author>
	<content type="html">-----BEGIN PGP SIGNED MESSAGE-----
&lt;br&gt;Hash: SHA256
&lt;br&gt;&lt;br&gt;On Wednesday, November 18 at 03:47 PM, quoth Philip Rhoades:
&lt;br&gt;&amp;gt; Yes, I understand and it is more or less what I thought - so if 
&lt;br&gt;&amp;gt; greylite (or any other prog in the chain) exits with the appropriate 
&lt;br&gt;&amp;gt; return value, the rest of the chain is not executed?
&lt;br&gt;&lt;br&gt;If you're worried about the return value, then you're not 
&lt;br&gt;understanding what I wrote.
&lt;br&gt;&lt;br&gt;The process is called &amp;quot;exec chaining&amp;quot; because the fundamental aspect 
&lt;br&gt;of it is the &amp;quot;exec&amp;quot; system call, which (on Unix machines) fully and 
&lt;br&gt;completely replaces the application that makes the call with the 
&lt;br&gt;program it specifies. For example, if I have a program (let's call it 
&lt;br&gt;&amp;quot;tcpserver&amp;quot;) that calls &amp;quot;exec(/usr/bin/greylite)&amp;quot;, then the program is 
&lt;br&gt;no longer tcpserver, it is now greylite. Tcpserver is gone and cannot 
&lt;br&gt;come back, it cannot control what greylite does, and when greylite 
&lt;br&gt;exits the program simply ends (tcpserver does not restart or come back 
&lt;br&gt;or anything even remotely similar). An &amp;quot;exec chain&amp;quot; is when several 
&lt;br&gt;programs exec each other one after the next: first tcpserver execs 
&lt;br&gt;greylite, then greylite execs qmail-smtpd, then qmail-smtpd exits, the 
&lt;br&gt;end. (OR, alternately, first tcpserver execs greylite, then greylite 
&lt;br&gt;exits, the end.) You see? The &amp;quot;return code&amp;quot; has no impact on the 
&lt;br&gt;chain. In fact, when a program calls &amp;quot;exec&amp;quot;, it does not have an 
&lt;br&gt;opportunity to return any code of any sort: it is now a completely 
&lt;br&gt;different program.
&lt;br&gt;&lt;br&gt;Now, things are actually slightly more complicated. The &amp;quot;exec&amp;quot; call is &amp;nbsp;
&lt;br&gt;normally (i.e. when not doing &amp;quot;exec chaining&amp;quot;) paired with a &amp;quot;fork&amp;quot; 
&lt;br&gt;call. &amp;quot;Fork&amp;quot;, on Unix machines, creates a duplicate of a program. So, 
&lt;br&gt;if tcpserver calls &amp;quot;fork&amp;quot;, suddenly I have *TWO* instances of 
&lt;br&gt;tcpserver. This is how tcpserver can behave as a server. For every new 
&lt;br&gt;connection, it duplicates itself. The original goes back to listening 
&lt;br&gt;for new connections, while the duplicate calls &amp;quot;exec&amp;quot; to replace 
&lt;br&gt;itself with some program (e.g. greylite).
&lt;br&gt;&lt;br&gt;Thus, tcpserver runs one program, and only one program, and only ever 
&lt;br&gt;one program.
&lt;br&gt;&lt;br&gt;That program may do whatever it likes. It can exec another program 
&lt;br&gt;(and thus cease to exist), OR it may return whatever return code it 
&lt;br&gt;likes. Tcpserver (the original) does nothing more than record that 
&lt;br&gt;return value in the log file.
&lt;br&gt;&lt;br&gt;Does that clear things up somewhat?
&lt;br&gt;&lt;br&gt;&amp;gt; So if I construct a script that does the filtering that I want then 
&lt;br&gt;&amp;gt; I just need it to be able to exec the rest of the chain if 
&lt;br&gt;&amp;gt; necessary?
&lt;br&gt;&lt;br&gt;Exactly.
&lt;br&gt;&lt;br&gt;For example, if you wanted to create a script that would only allow 
&lt;br&gt;connections from the IP address 1.2.3.4, what would that mean? (Yes, 
&lt;br&gt;there are simpler ways of doing this than with a wrapper script, but 
&lt;br&gt;I'm using this as an informative example.) In an exec-chain like this, 
&lt;br&gt;&amp;quot;allowing the connection&amp;quot; means &amp;quot;continuing the chain&amp;quot;, which really 
&lt;br&gt;means &amp;quot;exec-ing the next program in the chain (and passing along the 
&lt;br&gt;arguments to define the rest of the chain)&amp;quot;. &amp;quot;Denying the connection&amp;quot; 
&lt;br&gt;means simply exiting.
&lt;br&gt;&lt;br&gt;So, here's an example simple script that demonstrates (more verbosely 
&lt;br&gt;than necessary) the idea:
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;#!/bin/bash
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;if [ $TCPREMOTEIP == 1.2.3.4 ] ; then
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;exec &amp;quot;$@&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;else
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;exit $RANDOM
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;fi
&lt;br&gt;&lt;br&gt;You'll notice that the exit code is random. That's to emphasize that 
&lt;br&gt;it is irrelevant. You may be wondering &amp;quot;what does this &amp;quot;$@&amp;quot; mean?&amp;quot;. In 
&lt;br&gt;bash, the $@ variable is a reference to the arguments that have been 
&lt;br&gt;passed to the program. Putting the $@ variable in quotes tells bash to 
&lt;br&gt;expand the variable to its component pieces as if each component (each 
&lt;br&gt;argument) was in quotes (if that makes no sense to you, ignore it for 
&lt;br&gt;the moment and just take on faith that the quotes are important to 
&lt;br&gt;use).
&lt;br&gt;&lt;br&gt;So, now you have to ask yourself: how does this fit into the chain? 
&lt;br&gt;You'll note that it doesn't check the return value of whatever it 
&lt;br&gt;exec's, and yet the exec chain after this program can be long and 
&lt;br&gt;complicated.
&lt;br&gt;&lt;br&gt;If you already know all this, I apologize for flogging a dead horse. 
&lt;br&gt;But by talking about the return code, it sounded like you didn't quite 
&lt;br&gt;understand the concept.
&lt;br&gt;&lt;br&gt;It's worth pointing out: this is VERY different from how qmail-qfilter 
&lt;br&gt;works, because qmail-qfilter doesn't use exec chaining. Qmail-qfilter 
&lt;br&gt;runs each program (read: &amp;quot;filter&amp;quot;), captures its output and its return 
&lt;br&gt;code, and decides whether to run the next program.
&lt;br&gt;&lt;br&gt;~Kyle
&lt;br&gt;- -- 
&lt;br&gt;I see the pain on your face when you say the word intellectual, 
&lt;br&gt;because it has so many syllables in it.
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-- Clive James
&lt;br&gt;-----BEGIN PGP SIGNATURE-----
&lt;br&gt;Comment: Thank you for using encryption!
&lt;br&gt;&lt;br&gt;iQIcBAEBCAAGBQJLBBs7AAoJECuveozR/AWelJYP/2PQ678WDRIqUxom+WJ3XpR4
&lt;br&gt;aSEUnMUP8knuJHX+2nCJs/Lm3GayaJ4XpfQZe+qJpIUAj1WzrBafCyvZz4WQwfF6
&lt;br&gt;vrYGFzSeTpiF1WFSA1WXVzul+TOj5lZ/7tunw1SJCdujufkYuZD0aIsHcoeA2FDh
&lt;br&gt;WXyC3zRW2zcsOkVG9vfjc4U+x2av/C/lXW5dNFo4gp5omr4jRchfjbdA4SKW9asx
&lt;br&gt;vgmeY4nN0DkHwzUL63uhkKNgfxzht1+ps6ta7CG4Ot6Qv+DjJE1ApWWKMpBtECVB
&lt;br&gt;mT+lUEBQ8h6x2wDAv775BMsc+AETtVBKccwbUyI/JxXctlcCpZkYb67hStjoT3f4
&lt;br&gt;W/Edg5BkyoBkA4IliNuU/OfhHe9WjmzXRsGuiuFzgQLCm7usJPX095JJoO6P1MN+
&lt;br&gt;FseHAuCWLkZRVGlWA/t4KR1TCydn6zq5iZy3Wf/8SI2Y2DjckINBe+vTkq+dk39Y
&lt;br&gt;c9HaiY1ZY+aHyLT8fYZRZdHAhE1hv5FopquC/Zc3i84smvR7Z6o/WuDVYvmkGJqs
&lt;br&gt;h4GwOYQXeckJ7HuWx66eQ0hbRpr5jvW/Cmd2aqcrHlO5CSLoa14+Mso9NQef1LGO
&lt;br&gt;ZXSAM4vfvMRIfu3wGUHvNL5H55WobH4gecXh5NO6UN+g5z+6Gc4syf2Fv9AKp0lL
&lt;br&gt;ZIStwlnowKc5Fk6JkdC2
&lt;br&gt;=E+Ja
&lt;br&gt;-----END PGP SIGNATURE-----
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/cr.yp.to---qmail-f870.html&quot; embed=&quot;fixTarget[870]&quot; target=&quot;_top&quot; &gt;cr.yp.to - qmail&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/tcpserver-help-tp26394463p26410722.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26406149</id>
	<title>Re: duplicate copy (corrected)</title>
	<published>2009-11-18T03:21:29Z</published>
	<updated>2009-11-18T03:21:29Z</updated>
	<author>
		<name>Andrew Richards-3</name>
	</author>
	<content type="html">On Wednesday 18 November 2009 09:04:03 nelsonts wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Anyone can give me a hint or advise how can I duplicate all emails
&lt;br&gt;&amp;gt; coming on a user to a have a copy to another folder inside his Maildir
&lt;br&gt;&amp;gt; directory.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Example.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; There's a directory called backup inside the Maildir other than new, cur
&lt;br&gt;&amp;gt; and tmp. Of course if someone email to a user, the email will go to new
&lt;br&gt;&amp;gt; directory under Maildir. I want also to have a copy of that every new
&lt;br&gt;&amp;gt; email to the backup folder inside the Maildir. I believe I can do this
&lt;br&gt;&amp;gt; in .qmail inside the user's home directory. I just don't know where to
&lt;br&gt;&amp;gt; start. Can anyone give me a url or suggestion how to do this. Can I
&lt;br&gt;&amp;gt; create a simple bash script to put on .qmail to make this thing run?
&lt;/div&gt;&lt;br&gt;If Maildir/backup is also a Maildir, (so you have backup/cur, backup/new, 
&lt;br&gt;backup/tmp) then you can just have your .qmail with,
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ./Maildir/
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ./Maildir/backup/
&lt;br&gt;&lt;br&gt;If it's not you could use a tool like safecat instead,
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ./Maildir/
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |safecat Maildir/tmp Maildir/backup
&lt;br&gt;&lt;br&gt;cheers,
&lt;br&gt;&lt;br&gt;Andrew.
&lt;br&gt;-- 
&lt;br&gt;====================================================================
&lt;br&gt;&amp;nbsp; &amp;nbsp;* Custom email solutions * Systems Administration * Networking
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://www.acrconsulting.co.uk/email/qmail.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.acrconsulting.co.uk/email/qmail.html&lt;/a&gt;&lt;br&gt;====================================================================
&lt;br&gt;&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/cr.yp.to---qmail-f870.html&quot; embed=&quot;fixTarget[870]&quot; target=&quot;_top&quot; &gt;cr.yp.to - qmail&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-duplicate-copy-%28corrected%29-tp26406149p26406149.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26405330</id>
	<title>Re: tcpserver help</title>
	<published>2009-11-18T02:12:48Z</published>
	<updated>2009-11-18T02:12:48Z</updated>
	<author>
		<name>Otavio Exel</name>
	</author>
	<content type="html">&amp;gt; On Wed, Nov 18, 2009 at 03:47:30PM +1100, Philip Rhoades wrote:
&lt;br&gt;&amp;gt; &amp;gt; Yes, I understand and it is more or less what I thought - so if
&lt;br&gt;&amp;gt; &amp;gt; greylite (or any other prog in the chain) exits with the appropriate
&lt;br&gt;&amp;gt; &amp;gt; return value, the rest of the chain is not executed?
&lt;br&gt;&lt;br&gt;Markus Stumpf wrote:
&lt;br&gt;&amp;gt; Yes. But the return code is kinda irrelevant.
&lt;br&gt;&lt;br&gt;Markus,
&lt;br&gt;&lt;br&gt;looks like there's some misunderstanding going on;
&lt;br&gt;&lt;br&gt;I guess Philip thinks there is an other shell-like program that:
&lt;br&gt;- execs progA
&lt;br&gt;- checks progA's exit code
&lt;br&gt;- depending on it's value execs progB
&lt;br&gt;&lt;br&gt;I could be wrong (happens all the time);
&lt;br&gt;&lt;br&gt;[]s,
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;Otavio Exel /&amp;lt;\oo/&amp;gt;\ &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26405330&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;oexel@...&lt;/a&gt;
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/cr.yp.to---qmail-f870.html&quot; embed=&quot;fixTarget[870]&quot; target=&quot;_top&quot; &gt;cr.yp.to - qmail&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/tcpserver-help-tp26394463p26405330.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26404716</id>
	<title>Re: duplicate copy</title>
	<published>2009-11-18T01:22:32Z</published>
	<updated>2009-11-18T01:22:32Z</updated>
	<author>
		<name>Andrew Richards-3</name>
	</author>
	<content type="html">On Wednesday 18 November 2009 09:04:03 nelsonts wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Anyone can give me a hint or advise how can I duplicate all emails
&lt;br&gt;&amp;gt; coming on a user to a have a copy to another folder inside his Maildir
&lt;br&gt;&amp;gt; directory.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Example.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; There's a directory called backup inside the Maildir other than new, cur
&lt;br&gt;&amp;gt; and tmp. Of course if someone email to a user, the email will go to new
&lt;br&gt;&amp;gt; directory under Maildir. I want also to have a copy of that every new
&lt;br&gt;&amp;gt; email to the backup folder inside the Maildir. I believe I can do this
&lt;br&gt;&amp;gt; in .qmail inside the user's home directory. I just don't know where to
&lt;br&gt;&amp;gt; start. Can anyone give me a url or suggestion how to do this. Can I
&lt;br&gt;&amp;gt; create a simple bash script to put on .qmail to make this thing run?
&lt;/div&gt;&lt;br&gt;If Maildir/backup is also a Maildir, (so you have backup/cur, backup/new, 
&lt;br&gt;backup/tmp) then you can just have your .qmail with,
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ./Maildir/
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ./backup/Maildir/
&lt;br&gt;&lt;br&gt;If it's not you could use a tool like safecat instead,
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ./Maildir/
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |safecat Maildir/tmp Maildir/backup
&lt;br&gt;&lt;br&gt;cheers,
&lt;br&gt;&lt;br&gt;Andrew.
&lt;br&gt;-- 
&lt;br&gt;====================================================================
&lt;br&gt;&amp;nbsp; &amp;nbsp;* Custom email solutions * Systems Administration * Networking
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a href=&quot;http://www.acrconsulting.co.uk/email/qmail.html&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.acrconsulting.co.uk/email/qmail.html&lt;/a&gt;&lt;br&gt;====================================================================
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/cr.yp.to---qmail-f870.html&quot; embed=&quot;fixTarget[870]&quot; target=&quot;_top&quot; &gt;cr.yp.to - qmail&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/duplicate-copy-tp26404516p26404716.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26404516</id>
	<title>duplicate copy</title>
	<published>2009-11-18T01:04:03Z</published>
	<updated>2009-11-18T01:04:03Z</updated>
	<author>
		<name>packets-2</name>
	</author>
	<content type="html">Anyone can give me a hint or advise how can I duplicate all emails 
&lt;br&gt;coming on a user to a have a copy to another folder inside his Maildir 
&lt;br&gt;directory.
&lt;br&gt;&lt;br&gt;Example.
&lt;br&gt;&lt;br&gt;There's a directory called backup inside the Maildir other than new, cur 
&lt;br&gt;and tmp. Of course if someone email to a user, the email will go to new 
&lt;br&gt;directory under Maildir. I want also to have a copy of that every new 
&lt;br&gt;email to the backup folder inside the Maildir. I believe I can do this 
&lt;br&gt;in .qmail inside the user's home directory. I just don't know where to 
&lt;br&gt;start. Can anyone give me a url or suggestion how to do this. Can I 
&lt;br&gt;create a simple bash script to put on .qmail to make this thing run?
&lt;br&gt;&lt;p&gt;From forum: &lt;a href=&quot;http://old.nabble.com/cr.yp.to---qmail-f870.html&quot; embed=&quot;fixTarget[870]&quot; target=&quot;_top&quot; &gt;cr.yp.to - qmail&lt;/a&gt;&lt;/p&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/duplicate-copy-tp26404516p26404516.html" />
</entry>

</feed>
