<?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: Sort e-mail in Plesk with procmail</title> <atom:link href="http://rackerhacker.com/2007/11/27/sort-e-mail-in-plesk-with-procmail/feed/" rel="self" type="application/rss+xml" /><link>http://rackerhacker.com/2007/11/27/sort-e-mail-in-plesk-with-procmail/</link> <description>Words of wisdom from a server administrator</description> <lastBuildDate>Sun, 14 Mar 2010 07:09:36 +0000</lastBuildDate> <generator>http://wordpress.org/?v=2.9.2</generator> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <item><title>By: Akos B.</title><link>http://rackerhacker.com/2007/11/27/sort-e-mail-in-plesk-with-procmail/#comment-15419</link> <dc:creator>Akos B.</dc:creator> <pubDate>Thu, 06 Aug 2009 09:46:15 +0000</pubDate> <guid isPermaLink="false">http://rackerhacker.com/2007/11/27/sort-e-mail-in-plesk-with-procmail/#comment-15419</guid> <description>For me the solution above doesn&#039;t work. Firstly, preline was not present at all - I switched from postfix to qmail. From a backup I copied preline, but still no luck - the mail doesn&#039;t get delivered at all, just remains in the queue.I tried Anoop Alias&#039; solution which works nicely (changing the transporter from plesk&#039;s to procmail) but that way the .qmail file doesn&#039;t get processed at all, which means forwardings and quotas are broken.Does anyone have any more ideas how to make both procmail filtering work and keeping the .qmail files and those rules as well?Regards, Akos</description> <content:encoded><![CDATA[<p>For me the solution above doesn't work. Firstly, preline was not present at all - I switched from postfix to qmail. From a backup I copied preline, but still no luck - the mail doesn't get delivered at all, just remains in the queue.</p><p>I tried Anoop Alias' solution which works nicely (changing the transporter from plesk's to procmail) but that way the .qmail file doesn't get processed at all, which means forwardings and quotas are broken.</p><p>Does anyone have any more ideas how to make both procmail filtering work and keeping the .qmail files and those rules as well?</p><p>Regards,<br /> Akos</p> ]]></content:encoded> </item> <item><title>By: peterweir</title><link>http://rackerhacker.com/2007/11/27/sort-e-mail-in-plesk-with-procmail/#comment-14174</link> <dc:creator>peterweir</dc:creator> <pubDate>Mon, 27 Apr 2009 13:57:51 +0000</pubDate> <guid isPermaLink="false">http://rackerhacker.com/2007/11/27/sort-e-mail-in-plesk-with-procmail/#comment-14174</guid> <description>under my plesk9-system this doesnt work anymore - the file psa-spamc, thats been called on is missing ... anyone have an idea?thx in advance pw</description> <content:encoded><![CDATA[<p>under my plesk9-system this doesnt work anymore - the file psa-spamc, thats been called on is missing ... anyone have an idea?</p><p>thx in advance<br /> pw</p> ]]></content:encoded> </item> <item><title>By: ramblings of the village idiot &#187; Blog Archive &#187; using procmail with plesk</title><link>http://rackerhacker.com/2007/11/27/sort-e-mail-in-plesk-with-procmail/#comment-7508</link> <dc:creator>ramblings of the village idiot &#187; Blog Archive &#187; using procmail with plesk</dc:creator> <pubDate>Tue, 06 Jan 2009 23:52:37 +0000</pubDate> <guid isPermaLink="false">http://rackerhacker.com/2007/11/27/sort-e-mail-in-plesk-with-procmail/#comment-7508</guid> <description>[...] http://www.russwittmann.com/2007/07/14/server-side-mail-filtering-using-qmailprocmail-under-plesk/ http://rackerhacker.com/2007/11/27/sort-e-mail-in-plesk-with-procmail/ [...]</description> <content:encoded><![CDATA[<p>[...] <a href="http://www.russwittmann.com/2007/07/14/server-side-mail-filtering-using-qmailprocmail-under-plesk/" rel="nofollow">http://www.russwittmann.com/2007/07/14/server-side-mail-filtering-using-qmailprocmail-under-plesk/</a> <a href="http://rackerhacker.com/2007/11/27/sort-e-mail-in-plesk-with-procmail/" rel="nofollow">http://rackerhacker.com/2007/11/27/sort-e-mail-in-plesk-with-procmail/</a> [...]</p> ]]></content:encoded> </item> <item><title>By: Anoop Alias</title><link>http://rackerhacker.com/2007/11/27/sort-e-mail-in-plesk-with-procmail/#comment-7047</link> <dc:creator>Anoop Alias</dc:creator> <pubDate>Fri, 02 Jan 2009 03:24:31 +0000</pubDate> <guid isPermaLink="false">http://rackerhacker.com/2007/11/27/sort-e-mail-in-plesk-with-procmail/#comment-7047</guid> <description>I had implemented procmail filtering for all accounts in plesk9 with postfix as the MTA.Here is the link to the implementationhttp://gnusys.net/custom-mail-filtering-in-plesk9-postfix/</description> <content:encoded><![CDATA[<p>I had implemented procmail filtering for all accounts in plesk9 with postfix as the MTA.Here is the link to the implementation</p><p><a href="http://gnusys.net/custom-mail-filtering-in-plesk9-postfix/" rel="nofollow">http://gnusys.net/custom-mail-filtering-in-plesk9-postfix/</a></p> ]]></content:encoded> </item> <item><title>By: Kim</title><link>http://rackerhacker.com/2007/11/27/sort-e-mail-in-plesk-with-procmail/#comment-5094</link> <dc:creator>Kim</dc:creator> <pubDate>Fri, 28 Nov 2008 15:52:49 +0000</pubDate> <guid isPermaLink="false">http://rackerhacker.com/2007/11/27/sort-e-mail-in-plesk-with-procmail/#comment-5094</guid> <description>One other question, my original .qmail file looked like this:&#124; /usr/local/psa/bin/psa-spamc accept &#124; true &#124; /usr/bin/ deliverquota ./Maildir &amp;megan@mydomain.comI&#039;ve replaced it with:&#124; /urs/local/psa/bin/psa-spamc accept &#124;preline /usr/bin/procmail -m -o .procmailrcWhere does the forward to my other e-mail go in this replaced .qmail file?Thank you. These tutorials and help are so much appreciated!</description> <content:encoded><![CDATA[<p>One other question, my original .qmail file looked like this:</p><p>| /usr/local/psa/bin/psa-spamc accept<br /> | true<br /> | /usr/bin/ deliverquota ./Maildir<br /> &amp;megan@mydomain.com</p><p>I've replaced it with:</p><p>| /urs/local/psa/bin/psa-spamc accept<br /> |preline /usr/bin/procmail -m -o .procmailrc</p><p>Where does the forward to my other e-mail go in this replaced .qmail file?</p><p>Thank you. These tutorials and help are so much appreciated!</p> ]]></content:encoded> </item> <item><title>By: major</title><link>http://rackerhacker.com/2007/11/27/sort-e-mail-in-plesk-with-procmail/#comment-5092</link> <dc:creator>major</dc:creator> <pubDate>Fri, 28 Nov 2008 14:33:21 +0000</pubDate> <guid isPermaLink="false">http://rackerhacker.com/2007/11/27/sort-e-mail-in-plesk-with-procmail/#comment-5092</guid> <description>Kim - you are correct.  The new file should be called &quot;.qmail&quot;, just like the original one that Plesk created.</description> <content:encoded><![CDATA[<p>Kim - you are correct.  The new file should be called ".qmail", just like the original one that Plesk created.</p> ]]></content:encoded> </item> <item><title>By: Kim</title><link>http://rackerhacker.com/2007/11/27/sort-e-mail-in-plesk-with-procmail/#comment-5091</link> <dc:creator>Kim</dc:creator> <pubDate>Fri, 28 Nov 2008 14:28:46 +0000</pubDate> <guid isPermaLink="false">http://rackerhacker.com/2007/11/27/sort-e-mail-in-plesk-with-procmail/#comment-5091</guid> <description>The instructions say &quot;move the .qmail file out of the way, and replace it with this....&quot;I am fairly new to this - what do I call the new file?  Should it be called .qmail and include the new contents?Thank you.</description> <content:encoded><![CDATA[<p>The instructions say "move the .qmail file out of the way, and replace it with this...."</p><p>I am fairly new to this - what do I call the new file?  Should it be called .qmail and include the new contents?</p><p>Thank you.</p> ]]></content:encoded> </item> <item><title>By: Posy</title><link>http://rackerhacker.com/2007/11/27/sort-e-mail-in-plesk-with-procmail/#comment-2685</link> <dc:creator>Posy</dc:creator> <pubDate>Sat, 13 Sep 2008 17:33:16 +0000</pubDate> <guid isPermaLink="false">http://rackerhacker.com/2007/11/27/sort-e-mail-in-plesk-with-procmail/#comment-2685</guid> <description>This is great..  I have been trying to do this for ages and have never managed to figure it out.  Why does plesk not do this out of the box????thanks again</description> <content:encoded><![CDATA[<p>This is great..  I have been trying to do this for ages and have never managed to figure it out.  Why does plesk not do this out of the box????</p><p>thanks again</p> ]]></content:encoded> </item> <item><title>By: profsmith</title><link>http://rackerhacker.com/2007/11/27/sort-e-mail-in-plesk-with-procmail/#comment-2152</link> <dc:creator>profsmith</dc:creator> <pubDate>Tue, 08 Jul 2008 01:03:58 +0000</pubDate> <guid isPermaLink="false">http://rackerhacker.com/2007/11/27/sort-e-mail-in-plesk-with-procmail/#comment-2152</guid> <description>Thanks for this article.I&#039;m trying to sort mail into a server-side mailbox coming from my company&#039;s domain. Would this method work for sorting mail from a given domain?</description> <content:encoded><![CDATA[<p>Thanks for this article.</p><p>I'm trying to sort mail into a server-side mailbox coming from my company's domain. Would this method work for sorting mail from a given domain?</p> ]]></content:encoded> </item> <item><title>By: major</title><link>http://rackerhacker.com/2007/11/27/sort-e-mail-in-plesk-with-procmail/#comment-1742</link> <dc:creator>major</dc:creator> <pubDate>Thu, 19 Jun 2008 01:24:07 +0000</pubDate> <guid isPermaLink="false">http://rackerhacker.com/2007/11/27/sort-e-mail-in-plesk-with-procmail/#comment-1742</guid> <description>@sublime - You&#039;re right. Unfortunately, you have to remove the immutable flag from the file before performing an upgrade.  Then you have to put it back once the upgrade is finished.</description> <content:encoded><![CDATA[<p>@sublime - You're right. Unfortunately, you have to remove the immutable flag from the file before performing an upgrade.  Then you have to put it back once the upgrade is finished.</p> ]]></content:encoded> </item> <item><title>By: sublime</title><link>http://rackerhacker.com/2007/11/27/sort-e-mail-in-plesk-with-procmail/#comment-1741</link> <dc:creator>sublime</dc:creator> <pubDate>Thu, 19 Jun 2008 01:22:06 +0000</pubDate> <guid isPermaLink="false">http://rackerhacker.com/2007/11/27/sort-e-mail-in-plesk-with-procmail/#comment-1741</guid> <description>What about when mchk runs? That rebuilds all the .qmail files, and either will drop the changes, or fail if the file is immutable: “/usr/local/psa/admin/sbin/mchk –with-spam mchk: Unable to truncate or create file .qmail: Permission denied System error 13: Permission denied mchk: Unable to truncate or create file .qmail: Permission denied System error 13: Permission denied mchk: Unable to create .qmail fileSystem error 13: Permission denied mchk: Unable to create .qmail fileSystem error 13: Permission denied”That will leave the qmail system in an inconsistent state, and bork any upgrades.I find with Plesk it is best to color within the lines.</description> <content:encoded><![CDATA[<p>What about when mchk runs? That rebuilds all the .qmail files, and either will drop the changes, or fail if the file is immutable:<br /> “/usr/local/psa/admin/sbin/mchk –with-spam<br /> mchk: Unable to truncate or create file .qmail: Permission denied<br /> System error 13: Permission denied<br /> mchk: Unable to truncate or create file .qmail: Permission denied<br /> System error 13: Permission denied<br /> mchk: Unable to create .qmail file</p><p>System error 13: Permission denied<br /> mchk: Unable to create .qmail file</p><p>System error 13: Permission denied”</p><p>That will leave the qmail system in an inconsistent state, and bork any upgrades.</p><p>I find with Plesk it is best to color within the lines.</p> ]]></content:encoded> </item> <item><title>By: major</title><link>http://rackerhacker.com/2007/11/27/sort-e-mail-in-plesk-with-procmail/#comment-507</link> <dc:creator>major</dc:creator> <pubDate>Wed, 09 Apr 2008 13:14:50 +0000</pubDate> <guid isPermaLink="false">http://rackerhacker.com/2007/11/27/sort-e-mail-in-plesk-with-procmail/#comment-507</guid> <description>@Khadgar: With Plesk, I&#039;m not sure that this is possible.  It sounds like you want your users to be able to mark e-mails as &quot;ham&quot; and &quot;spam&quot;, but Plesk&#039;s SpamAssassin configuration probably won&#039;t allow for it.  I&#039;ve seen some other control panels implement SpamAssassin in this way (like DirectAdmin), but you would have to custom-roll something for your Plesk installation.@tim.howe: You&#039;re welcome!  That is a good point - by making .qmail immutable, users in Plesk may try to change settings, but they won&#039;t ever take effect.  In fact, Plesk won&#039;t even throw an error when they attempt to make a change!  I suggested it in the original post just in case someone might change a setting that would throw out all of your custom changes.</description> <content:encoded><![CDATA[<p>@Khadgar: With Plesk, I'm not sure that this is possible.  It sounds like you want your users to be able to mark e-mails as "ham" and "spam", but Plesk's SpamAssassin configuration probably won't allow for it.  I've seen some other control panels implement SpamAssassin in this way (like DirectAdmin), but you would have to custom-roll something for your Plesk installation.</p><p>@tim.howe: You're welcome!  That is a good point - by making .qmail immutable, users in Plesk may try to change settings, but they won't ever take effect.  In fact, Plesk won't even throw an error when they attempt to make a change!  I suggested it in the original post just in case someone might change a setting that would throw out all of your custom changes.</p> ]]></content:encoded> </item> <item><title>By: tim.howe</title><link>http://rackerhacker.com/2007/11/27/sort-e-mail-in-plesk-with-procmail/#comment-506</link> <dc:creator>tim.howe</dc:creator> <pubDate>Wed, 09 Apr 2008 07:58:51 +0000</pubDate> <guid isPermaLink="false">http://rackerhacker.com/2007/11/27/sort-e-mail-in-plesk-with-procmail/#comment-506</guid> <description>Many thanks for the article, to which I was referred by rackspace support - exactly what I needed! Just wanted to add a quick observation, which was that my plesk install (psa v8.2.1_build82070919.15 os_RedHat el4) seems to be quite well-behaved with regard to the .qmail file if you leave it chattr -i. If you *do* make .qmail immutable, this will prevent users switching autoresponders, redirects (etc) on/off via plesk, but if you leave as it is, plesk seems to simply add/remove the necessary lines from the  end of the file, leaving the references to .procmailrc intact at the top.Thanks again, Tim.</description> <content:encoded><![CDATA[<p>Many thanks for the article, to which I was referred by rackspace support - exactly what I needed! Just wanted to add a quick observation, which was that my plesk install (psa v8.2.1_build82070919.15 os_RedHat el4) seems to be quite well-behaved with regard to the .qmail file if you leave it chattr -i. If you *do* make .qmail immutable, this will prevent users switching autoresponders, redirects (etc) on/off via plesk, but if you leave as it is, plesk seems to simply add/remove the necessary lines from the  end of the file, leaving the references to .procmailrc intact at the top.</p><p>Thanks again, Tim.</p> ]]></content:encoded> </item> <item><title>By: Khadgar</title><link>http://rackerhacker.com/2007/11/27/sort-e-mail-in-plesk-with-procmail/#comment-162</link> <dc:creator>Khadgar</dc:creator> <pubDate>Wed, 05 Dec 2007 07:09:39 +0000</pubDate> <guid isPermaLink="false">http://rackerhacker.com/2007/11/27/sort-e-mail-in-plesk-with-procmail/#comment-162</guid> <description>Thanks for this help. I&#039;ve been trying to figure this out for ages, but it&#039;s just one part of a long slew of things I&#039;m wanting to do, but cannot figure out because Plesk has it running differently than what Spamassassin&#039;s docs show. I&#039;ve looked the net over for documentation on the way Plesk does things only to get mile long rants in forums with no help at all. I manage a small dedicated virtual server hosted at Media Temple with just a few websites and will probably have at the most about a dozen emails between the three domains. At the moment most are forwarding mail only to another address.What I&#039;m wanting to do is setup spamassassin system wide and have a single bayes folder for everything to go into on my server. What I&#039;d like to do is add IMAP folders on every account where there&#039;s a spam folder, mark as spam folder, and a mark as not spam folder.My idea is to make mail that is marked as spam to be delivered to each of their spam folders just as you have outlined here. If they get a false positive they can drag the mail to the mark as not spam folder. If they get spam in their inbox they can drag those to the mark as spam folder. Daily a cronjob would update the system&#039;s bayes with every mail account&#039;s new spam rules, delete the contents of the mark as spam folder, and move the mail from the mark as not spam folder to their inbox.Is this even possible to your knowledge? I just need a nudge in the right direction or something. A couple of days of hunting this information down has gotten me burnt out. Thanks in advance and thanks for the help you&#039;ve given me in this post already.</description> <content:encoded><![CDATA[<p>Thanks for this help. I've been trying to figure this out for ages, but it's just one part of a long slew of things I'm wanting to do, but cannot figure out because Plesk has it running differently than what Spamassassin's docs show. I've looked the net over for documentation on the way Plesk does things only to get mile long rants in forums with no help at all. I manage a small dedicated virtual server hosted at Media Temple with just a few websites and will probably have at the most about a dozen emails between the three domains. At the moment most are forwarding mail only to another address.</p><p>What I'm wanting to do is setup spamassassin system wide and have a single bayes folder for everything to go into on my server. What I'd like to do is add IMAP folders on every account where there's a spam folder, mark as spam folder, and a mark as not spam folder.</p><p>My idea is to make mail that is marked as spam to be delivered to each of their spam folders just as you have outlined here. If they get a false positive they can drag the mail to the mark as not spam folder. If they get spam in their inbox they can drag those to the mark as spam folder. Daily a cronjob would update the system's bayes with every mail account's new spam rules, delete the contents of the mark as spam folder, and move the mail from the mark as not spam folder to their inbox.</p><p>Is this even possible to your knowledge? I just need a nudge in the right direction or something. A couple of days of hunting this information down has gotten me burnt out. Thanks in advance and thanks for the help you've given me in this post already.</p> ]]></content:encoded> </item> </channel> </rss>
<!-- This site's performance optimized by W3 Total Cache. Dramatically improve the speed and reliability of your blog!

Learn more about our WordPress Plugins: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced) (user agent is rejected)
Database Caching 3/11 queries in 0.000 seconds using disk
Content Delivery Network via cdn.rackerhacker.com

Served from: dfw.mhtx.net @ 2010-03-14 19:36:09 -->