<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Using Procmail with Plesk</title>
	<atom:link href="http://www.natecarlson.com/2009/01/06/using-procmail-with-plesk/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.natecarlson.com/2009/01/06/using-procmail-with-plesk/</link>
	<description>All geek, most of the time</description>
	<lastBuildDate>Wed, 01 Feb 2012 17:59:40 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Joerg</title>
		<link>http://www.natecarlson.com/2009/01/06/using-procmail-with-plesk/comment-page-1/#comment-311715</link>
		<dc:creator>Joerg</dc:creator>
		<pubDate>Mon, 05 Apr 2010 18:58:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.natecarlson.com/?p=133#comment-311715</guid>
		<description>Hi,
currently setting up my new PLESK server (upgrading from v8) and found this very nice script! I´m not familar to Plesk&#039;s eventhandler so it would be perfect if someone could tell me how to register this script with plesk?

Thanks in advance!

Regards,

Joerg</description>
		<content:encoded><![CDATA[<p>Hi,<br />
currently setting up my new PLESK server (upgrading from v8) and found this very nice script! I´m not familar to Plesk&#8217;s eventhandler so it would be perfect if someone could tell me how to register this script with plesk?</p>
<p>Thanks in advance!</p>
<p>Regards,</p>
<p>Joerg</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: using procmail with plesk: rules via ingo</title>
		<link>http://www.natecarlson.com/2009/01/06/using-procmail-with-plesk/comment-page-1/#comment-308687</link>
		<dc:creator>using procmail with plesk: rules via ingo</dc:creator>
		<pubDate>Sat, 05 Dec 2009 01:42:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.natecarlson.com/?p=133#comment-308687</guid>
		<description>[...] my previous post, I discussed how to get automatic procmail integration working with Plesk, to let you set up [...]</description>
		<content:encoded><![CDATA[<p>[...] my previous post, I discussed how to get automatic procmail integration working with Plesk, to let you set up [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lukas</title>
		<link>http://www.natecarlson.com/2009/01/06/using-procmail-with-plesk/comment-page-1/#comment-271735</link>
		<dc:creator>lukas</dc:creator>
		<pubDate>Fri, 19 Jun 2009 13:50:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.natecarlson.com/?p=133#comment-271735</guid>
		<description>Now it works as it should. It additionally checks if the Mailbox got disabled. And I replaced the default .procmailrc entry with one that reflects the quota system:

&lt;code&gt;
[...]
# Write out our custom .qmail file, only changing the deliverquota line
# to procmail.
open(QMAILCFG, &quot;&gt;$userdir/$qmailcfg&quot;);
my($newmailbox) = $ENV{&#039;NEW_MAILBOX&#039;};
my($oldline);
foreach $oldline (@oldqmailcfg) {
chomp($oldline);
if (($oldline =~ /procmail/) &amp;&amp; ($newmailbox eq &quot;false&quot;)) {
### purge this line
} elsif ($oldline =~ /deliverquota/) {
print QMAILCFG &quot;&#124; /usr/bin/procmail -m -o .procmailrc\n&quot;;
} else {
print QMAILCFG &quot;$oldline\n&quot;;
}
}
close(QMAILCFG);

# If the procmail file does not already exist, write out a totally base
# config file. If you want to move tagged spam to a different folder,
# you will need to update this. If it already exists, leave it alone.
if (! -f &quot;$userdir/$procmailcfg&quot;) {
open(PROCMAILCFG, &quot;&gt;$userdir/$procmailcfg&quot;);
print PROCMAILCFG &quot;MAILDIR=$userdir/$maildir\n&quot;;
print PROCMAILCFG &quot;\n&quot;;
print PROCMAILCFG &#039;:0 E&#039; . &quot;\n&quot;;
print PROCMAILCFG &#039;&#124; /usr/bin/deliverquota $MAILDIR&#039; . &quot;\n&quot;;
close(PROCMAILCFG);
}

[...]
&lt;/code&gt;

regards
Lukas.</description>
		<content:encoded><![CDATA[<p>Now it works as it should. It additionally checks if the Mailbox got disabled. And I replaced the default .procmailrc entry with one that reflects the quota system:</p>
<p><code><br />
[...]<br />
# Write out our custom .qmail file, only changing the deliverquota line<br />
# to procmail.<br />
open(QMAILCFG, "&gt;$userdir/$qmailcfg");<br />
my($newmailbox) = $ENV{'NEW_MAILBOX'};<br />
my($oldline);<br />
foreach $oldline (@oldqmailcfg) {<br />
chomp($oldline);<br />
if (($oldline =~ /procmail/) &amp;&amp; ($newmailbox eq "false")) {<br />
### purge this line<br />
} elsif ($oldline =~ /deliverquota/) {<br />
print QMAILCFG "| /usr/bin/procmail -m -o .procmailrc\n";<br />
} else {<br />
print QMAILCFG "$oldline\n";<br />
}<br />
}<br />
close(QMAILCFG);</p>
<p># If the procmail file does not already exist, write out a totally base<br />
# config file. If you want to move tagged spam to a different folder,<br />
# you will need to update this. If it already exists, leave it alone.<br />
if (! -f "$userdir/$procmailcfg") {<br />
open(PROCMAILCFG, "&gt;$userdir/$procmailcfg");<br />
print PROCMAILCFG "MAILDIR=$userdir/$maildir\n";<br />
print PROCMAILCFG "\n";<br />
print PROCMAILCFG ':0 E' . "\n";<br />
print PROCMAILCFG '| /usr/bin/deliverquota $MAILDIR' . "\n";<br />
close(PROCMAILCFG);<br />
}</p>
<p>[...]<br />
</code></p>
<p>regards<br />
Lukas.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lukas</title>
		<link>http://www.natecarlson.com/2009/01/06/using-procmail-with-plesk/comment-page-1/#comment-271727</link>
		<dc:creator>lukas</dc:creator>
		<pubDate>Fri, 19 Jun 2009 12:41:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.natecarlson.com/?p=133#comment-271727</guid>
		<description>hmm... 
the above script is not better. it deletes the procmail entry of .qmail when changing aliases. sorry.</description>
		<content:encoded><![CDATA[<p>hmm&#8230;<br />
the above script is not better. it deletes the procmail entry of .qmail when changing aliases. sorry.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lukas</title>
		<link>http://www.natecarlson.com/2009/01/06/using-procmail-with-plesk/comment-page-1/#comment-271722</link>
		<dc:creator>lukas</dc:creator>
		<pubDate>Fri, 19 Jun 2009 11:33:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.natecarlson.com/?p=133#comment-271722</guid>
		<description>That&#039;s a great script, thanks!

What it&#039;s missing is the removal of the procmail line in .qmail if the Mailbox gets disabled (forward only).

I changed the appropriate part of the script to the following:

[...]
my($oldline);
foreach $oldline (@oldqmailcfg) {
chomp($oldline);
if ($oldline =~ /procmail/) {
# Do nothing
} elsif ($oldline =~ /deliverquota/) {
print QMAILCFG &quot;&#124; /usr/bin/procmail -m -o .procmailrc\n&quot;;
} else {
print QMAILCFG &quot;$oldline\n&quot;;
}
}
[...]</description>
		<content:encoded><![CDATA[<p>That&#8217;s a great script, thanks!</p>
<p>What it&#8217;s missing is the removal of the procmail line in .qmail if the Mailbox gets disabled (forward only).</p>
<p>I changed the appropriate part of the script to the following:</p>
<p>[...]<br />
my($oldline);<br />
foreach $oldline (@oldqmailcfg) {<br />
chomp($oldline);<br />
if ($oldline =~ /procmail/) {<br />
# Do nothing<br />
} elsif ($oldline =~ /deliverquota/) {<br />
print QMAILCFG &#8220;| /usr/bin/procmail -m -o .procmailrc\n&#8221;;<br />
} else {<br />
print QMAILCFG &#8220;$oldline\n&#8221;;<br />
}<br />
}<br />
[...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nc</title>
		<link>http://www.natecarlson.com/2009/01/06/using-procmail-with-plesk/comment-page-1/#comment-253311</link>
		<dc:creator>nc</dc:creator>
		<pubDate>Wed, 15 Apr 2009 02:48:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.natecarlson.com/?p=133#comment-253311</guid>
		<description>Glad to hear you got it working!  ;)

I will add a note to self to post the code as actual downloadable files versus cut/paste in Wordpress, which should resolve this issue - I always forget how badly Wordpress munges up code.  ;(</description>
		<content:encoded><![CDATA[<p>Glad to hear you got it working!  ;)</p>
<p>I will add a note to self to post the code as actual downloadable files versus cut/paste in WordPress, which should resolve this issue &#8211; I always forget how badly WordPress munges up code.  ;(</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jens Jacobsen</title>
		<link>http://www.natecarlson.com/2009/01/06/using-procmail-with-plesk/comment-page-1/#comment-253155</link>
		<dc:creator>Jens Jacobsen</dc:creator>
		<pubDate>Tue, 14 Apr 2009 18:43:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.natecarlson.com/?p=133#comment-253155</guid>
		<description>Nevermind, found the missing &lt;OLDQMAILCFG&gt; in the html code :)</description>
		<content:encoded><![CDATA[<p>Nevermind, found the missing &lt;OLDQMAILCFG&gt; in the html code :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jens Jacobsen</title>
		<link>http://www.natecarlson.com/2009/01/06/using-procmail-with-plesk/comment-page-1/#comment-252747</link>
		<dc:creator>Jens Jacobsen</dc:creator>
		<pubDate>Mon, 13 Apr 2009 22:21:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.natecarlson.com/?p=133#comment-252747</guid>
		<description>I just tried to get the automatic .procmailrc creation up and running. I added the Evenhandlers for E-Mail account creation and update but it seems I can&#039;t get it to work. If I run the perl script directly from the commandline I get the following error:

syntax error at /usr/local/sbin/add-procmail-rules.pl line 56, near &quot;= ;&quot;
Execution of /usr/local/sbin/add-procmail-rules.pl aborted due to compilation errors.

I&#039;ve already fixed several bugs with the “, ”, ‘ and ’ signs which actually should be &quot; and &#039;, but I can&#039;t get the perl file to just run. Is there a way to find out wether plesk is running the handlers by adding a log entry to /var/log/messages?

I&#039;m hoping for some help, as I&#039;m not familiar with perl :)</description>
		<content:encoded><![CDATA[<p>I just tried to get the automatic .procmailrc creation up and running. I added the Evenhandlers for E-Mail account creation and update but it seems I can&#8217;t get it to work. If I run the perl script directly from the commandline I get the following error:</p>
<p>syntax error at /usr/local/sbin/add-procmail-rules.pl line 56, near &#8220;= ;&#8221;<br />
Execution of /usr/local/sbin/add-procmail-rules.pl aborted due to compilation errors.</p>
<p>I&#8217;ve already fixed several bugs with the “, ”, ‘ and ’ signs which actually should be &#8221; and &#8216;, but I can&#8217;t get the perl file to just run. Is there a way to find out wether plesk is running the handlers by adding a log entry to /var/log/messages?</p>
<p>I&#8217;m hoping for some help, as I&#8217;m not familiar with perl :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jens Jacobsen</title>
		<link>http://www.natecarlson.com/2009/01/06/using-procmail-with-plesk/comment-page-1/#comment-252727</link>
		<dc:creator>Jens Jacobsen</dc:creator>
		<pubDate>Mon, 13 Apr 2009 19:16:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.natecarlson.com/?p=133#comment-252727</guid>
		<description>So I am curious about your Maia Mailguard setup in front of your plesk system. I&#039;m using Plesk 9 on Ubuntu 8.04 LTS.</description>
		<content:encoded><![CDATA[<p>So I am curious about your Maia Mailguard setup in front of your plesk system. I&#8217;m using Plesk 9 on Ubuntu 8.04 LTS.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

