<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Ionut's WebSpace &#187; Plesk</title>
	<atom:link href="http://www.vioan.ro/wp/category/plesk/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.vioan.ro/wp</link>
	<description>Exploring Creativity Is My Passion</description>
	<lastBuildDate>Sun, 08 Aug 2010 21:09:58 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>OpenSUSE 11.1 and Plesk 9.2.1 update</title>
		<link>http://www.vioan.ro/wp/2009/07/10/opensuse-111-and-plesk-921-update/</link>
		<comments>http://www.vioan.ro/wp/2009/07/10/opensuse-111-and-plesk-921-update/#comments</comments>
		<pubDate>Fri, 10 Jul 2009 09:47:10 +0000</pubDate>
		<dc:creator>ionut</dc:creator>
				<category><![CDATA[*BSD]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Plesk]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.vioan.ro/wp/?p=392</guid>
		<description><![CDATA[


After more than three years of using Suse 9.3 with Plesk 8.1 on one of my VPS, I decided that it is time to update to OpenSUSE 11.1 with Plesk 9.2.1 control panel. The update process went very well, here are the steps involved:
1. create a full backup of your vps (databases, websites, accounts, emails, [...]]]></description>
			<content:encoded><![CDATA[<p>After more than three years of using Suse 9.3 with Plesk 8.1 on one of my VPS, I decided that it is time to update to OpenSUSE 11.1 with Plesk 9.2.1 control panel. The update process went very well, here are the steps involved:</p>
<p>1. create a full backup of your vps (databases, websites, accounts, emails, &#8230;). I have used <strong>&#8220;tar&#8221;</strong> command for that.<br />
2. in plesk 8.1 control panel, do a complete backup (you need plesk backup module to be installed), or if you prefer the command line you can use the following command:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># /usr/local/psa/bin/pleskbackup all &lt;backup-file&gt;</span></pre></td></tr></table></div>

<p>Since version 9.x, the structure of Parallels Plesk Panel backup has been changed. Plesk backup created with Plesk Backup Manager is not just one file but a number of files and directories under backups directory /var/lib/psa/dumps. So, you will need to convert your backup file created in plesk 8.1 to be compatible with plesk 9.x. It&#8217;s a very simple process, see step 3.</p>
<p>3. convert the created backup file to be compatible with plesk 9.x</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># /usr/local/psa/bin/pre9-backup-convert -v convert -d /var/lib/psa/dumps/ &lt;backup-file&gt;</span></pre></td></tr></table></div>

<p>where <strong>/var/lib/psa/dumps/</strong> is backups directory on the server with Parallels Plesk Panel 9</p>
<p>4. restore the backup files to use them with plesk 9.x. It can be done using the web interface, <strong>Home -> Backup Manager -> Server Repository</strong>, click the backup name to enter the backup details page and select the required restoration options and click Restore to start the restoration process.</p>
<p>If you would like to use command line to restore your domains, clients, server configuration, &#8230; then you can use the following command:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># /usr/local/psa/bin/pleskrestore --restore /var/lib/psa/dumps/&lt;your backup xml file&gt; -level server -verbose -debug</span></pre></td></tr></table></div>

<p>You can restore only clients or domains, for more options see:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># /usr/local/psa/bin/pleskrestore --help</span></pre></td></tr></table></div>

<p>Note: I had a small problem and I found that it is not possible to have a client with the same name as your name in Plesk Admin Profile. Maybe it is stupid, but I had some errors and only after I changed the name in Admin Profile (in Plesk control panel) to be different, I could restore without any problem everything.</p>
<p>I think that&#8217;s all what I did, from what I remember. If something is missing I am sure you can find a lot of useful stuff using our friend google.</p>
<p><strong>Other useful stuff:</strong></p>
<p>1. Plesk 9.x support as well postfix, so if you want to change from qmail to postfix, try that:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># /usr/local/psa/bin/autoinstaller --select-release-current --install-component postfix</span></pre></td></tr></table></div>

<p>if you are not happy, you can switch back to qmail:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># /usr/local/psa/bin/autoinstaller --select-release-current --install-component qmail.</span></pre></td></tr></table></div>

<p>If you are not sure if you are using qmail or postfix there are many ways to find that, one is to look in Plesk Control Panel  on the Services management page  {<strong>Home -> Services Management</strong>} if you have <strong>SMTP Server (Postfix)</strong> or <strong>SMTP Server (QMail)</strong></p>
<p>If you decide you want to switch back, simply, do it, the emails are not lost, don&#8217;t worry.</p>
<p>2. Replace Horde webmail with AtMail</p>
<p>One of the many new features of Plesk 9, is the option to choose a different webmail client. The default webmail client  Horde can be replaced if you are looking for something a bit lighter, AtMail. You need to install from Plesk Control Panel, both webmail clients, and to switch between them:</p>
<ul>
<li>Log into Plesk.</li>
<li>Chose the domain which you want to use another webmail, enter on “Mail Accounts” page</li>
<li>Click the “Mail Settings” icon</li>
<li>Switch the “WebMail” to “AtMail (default is Horde)</li>
<li>Click “OK”</li>
</ul>
<p>If you decide you want to switch back, simply reverse the procedure, the emails are not lost, don&#8217;t worry.</p>
<p>That&#8217;s all.</p>
<p>References:</p>
<p><a href="http://kb.parallels.com/en/5819">http://kb.parallels.com/en/5819</a><br />
<a href="http://kb.parallels.com/en/5801">http://kb.parallels.com/en/5801</a><br />
<a href="http://kb.parallels.com/en/952">http://kb.parallels.com/en/952</a><br />
<a href="http://kb.parallels.com/en/5969">http://kb.parallels.com/en/5969</a><br />
<a href="http://kb.parallels.com/en/5864">http://kb.parallels.com/en/5864</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.vioan.ro/wp/2009/07/10/opensuse-111-and-plesk-921-update/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to check that RoR is working in Plesk 8.1.1</title>
		<link>http://www.vioan.ro/wp/2007/07/31/how-to-check-that-ror-is-working-in-plesk-811/</link>
		<comments>http://www.vioan.ro/wp/2007/07/31/how-to-check-that-ror-is-working-in-plesk-811/#comments</comments>
		<pubDate>Tue, 31 Jul 2007 10:10:45 +0000</pubDate>
		<dc:creator>ionut</dc:creator>
				<category><![CDATA[Plesk]]></category>

		<guid isPermaLink="false">http://www.vioan.ro/wp/?p=27</guid>
		<description><![CDATA[ I had the possibility to upgrade my Plesk instalation from 8.0.1 to 8.1.1 without to pay additional money . In the new release notes they mentioned that Ruby on Rails is supported, so I tried it to see. The upgrade was fine, and now I have RoR installed.
To activate it you have to add [...]]]></description>
			<content:encoded><![CDATA[<p class="level1"> I had the possibility to upgrade my Plesk instalation from 8.0.1 to 8.1.1 without to pay additional money . In the new release notes they mentioned that Ruby on Rails is supported, so I tried it to see. The upgrade was fine, and now I have RoR installed.</p>
<p>To activate it you have to add <em>fast_cgi</em> support for your site. This option is in the same place like the others options (perl/php/python/cgi support).</p>
<p>To check that RoR is installed and it is working:</p>
<p>1. go into the document root folder for that domain.com:</p>
<pre class="code"># cd /srv/www/vhosts/domain.com/httpdocs/</pre>
<p>2. create a simple RoR application:</p>
<pre class="code"># rails myapp</pre>
<p>3. go into application directory:</p>
<pre class="code"># cd myapp</pre>
<p>4. start WEBrick server on 9999 port:</p>
<pre class="code"># ruby script/server -p 9999</pre>
<p>If you don’t specify a port, default is 3000 but in my case this port was already used.</p>
<p>For more options use the –help option:</p>
<pre class="code">[root@bijoux]# ruby script/server --help
=&gt; Booting WEBrick...
Usage: ruby server [options]

    -p, --port=port                  Runs Rails on the specified port.
                                     Default: 3000
    -b, --binding=ip                 Binds Rails to the specified ip.
                                     Default: 0.0.0.0
    -e, --environment=name           Specifies the environment to run this server under (test/development/production).
                                     Default: development
    -m, --mime-types=filename        Specifies an Apache style mime.types configuration file to be used for mime types
                                     Default: none
    -d, --daemon                     Make Rails run as a Daemon (only works if fork is available -- meaning on *nix).
    -c, --charset=charset            Set default charset for output.
                                     Default: UTF-8

    -h, --help                       Show this help message.</pre>
<p>5. check your application in browser:</p>
<pre class="code">http://www.domain.com:9999</pre>
<p>Now, you can see: <strong>Welcome aboard</strong> so, it is working.</p>
<p>That’s all, bye!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vioan.ro/wp/2007/07/31/how-to-check-that-ror-is-working-in-plesk-811/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to install Subversion on Plesk 8.1</title>
		<link>http://www.vioan.ro/wp/2007/07/31/how-to-install-subversion-on-plesk-81/</link>
		<comments>http://www.vioan.ro/wp/2007/07/31/how-to-install-subversion-on-plesk-81/#comments</comments>
		<pubDate>Tue, 31 Jul 2007 10:05:04 +0000</pubDate>
		<dc:creator>ionut</dc:creator>
				<category><![CDATA[Plesk]]></category>

		<guid isPermaLink="false">http://www.vioan.ro/wp/?p=25</guid>
		<description><![CDATA[ I will try to explain step by step how I installed Subversion on a Virtual Private Server wich runs Plesk 8.1.1 as control panel and Suse Linux 9.3 as operating system:
First step is to download subversion package, now the latest version is 1.4.4. It is very nice that they offer also a package with [...]]]></description>
			<content:encoded><![CDATA[<p class="level1"> I will try to explain step by step how I installed Subversion on a Virtual Private Server wich runs Plesk 8.1.1 as control panel and Suse Linux 9.3 as operating system:</p>
<p>First step is to download subversion package, now the latest version is 1.4.4. It is very nice that they offer also a package with dependencies. So, we download:</p>
<p><a href="http://subversion.tigris.org/downloads/subversion-1.4.4.tar.gz" class="urlextern" title="http://subversion.tigris.org/downloads/subversion-1.4.4.tar.gz" rel="nofollow">subversion-1.4.4.tar.gz</a></p>
<p><a href="http://subversion.tigris.org/downloads/subversion-deps-1.4.4.tar.gz" class="urlextern" title="http://subversion.tigris.org/downloads/subversion-deps-1.4.4.tar.gz" rel="nofollow">subversion-deps-1.4.4.tar.gz</a></p>
<p>Unpack them:</p>
<pre class="code"># tar -zxvf subversion-1.4.4.tar.gz
# tar -zxvf subversion-deps-1.4.4.tar.gz</pre>
<p>The second command will include the dependencies in the same directory with main subversion package.</p>
<p>We compile and install the subversion package and dependencies:</p>
<pre class="code"># cd subversion-1.4.4
# ./autogen.sh
# ./configure
# make
# cp /etc/apache2/sysconfig.d/loadmodule.conf /etc/apache2/httpd2-prefork.conf
# make install
# cp /etc/apache2/httpd2-prefork.conf /etc/apache2/sysconfig.d/loadmodule.conf</pre>
<p>Now, checking the differences between these two files we have:</p>
<pre class="code"># diff /etc/apache2/sysconfig.d/loadmodule.conf /etc/apache2/httpd2-prefork.conf
30a31,32

&gt; LoadModule dav_svn_module /usr/lib/apache2/mod_dav_svn.so
&gt; LoadModule authz_svn_module   /usr/lib/apache2/mod_authz_svn.so</pre>
<p>so, we can see that already the modules are in the right place.</p>
<p>Edit <em>/etc/ld.so.conf</em> to include <em>/usr/lib</em>  and /usr/lib/apache2 and then run:</p>
<pre class="code"># /sbin/ldconfig</pre>
<p><strong>IMPORTANT:</strong> in   <em>/etc/apache2/sysconfig.d/loadmodule.conf</em> we need also:</p>
<pre class="code">LoadModule dav_module   /usr/lib/apache2-prefork/mod_dav.so</pre>
<p>before the previous two lines. <em>dav_module</em> has to appear before <em>dav_svn_module</em> in file. If you don’t have this line before, you will see next message when you try to restart apache server:</p>
<pre class="code">Cannot load /usr/lib/apache2/mod_dav_svn.so into server: /usr/lib/apache2/mod_dav_svn.so: undefined symbol: dav_xml_get_cdata</pre>
<p>so, my file looks like this (only last three important lines):</p>
<pre class="code">[...]
LoadModule dav_module   /usr/lib/apache2-prefork/mod_dav.so
LoadModule dav_svn_module     /usr/lib/apache2/mod_dav_svn.so
LoadModule authz_svn_module   /usr/lib/apache2/mod_authz_svn.so</pre>
<p>Edit <em>/etc/sysconfig/apache2</em> and add: “<em>dav mod_dav_svn mod_authz_svn</em>”  to <em>APACHE_MODULES</em> section. My specific section is like this:</p>
<pre class="code">APACHE_MODULES="mod_perl access actions alias auth auth_dbm autoindex cgi dir env expires include log_config mime negotiation setenvif ssl   userdir php4 php5 /usr/lib/apache2-prefork/mod_frontpage.so python   suexec rewrite dav mod_dav_svn mod_authz_svn"</pre>
<p>Now is time to create our repository and set the correct owner and group for it:</p>
<pre class="code"># svnadmin create /home/svn
# chown -R apacheuser:apachegroup /home/svn</pre>
<p>If you edit  <em>/srv/www/vhosts/domain.com/conf/httpd.include</em>  and add at the end something, Plesk will remove your changes.</p>
<p>So, we need to create a new file <em>vhost.conf</em> and to use this file. I will create <em>/srv/www/vhosts/domain.com/conf/vhost.conf</em> and I will put inside:</p>
<pre class="code">&lt;Location /svn&gt;
DAV svn
SVNPath /home/svn
&lt;/Location&gt;</pre>
<p>for a subdomain the file has to be in <em>/srv/www/vhosts/domain.com/subdomains/NAME/conf</em></p>
<p>Now, you need to tell Plesk to update it’s information. You have to run:</p>
<pre class="code"># /usr/local/psa/admin/sbin/websrvmng -u --vhost-name=domain.com</pre>
<p>this will configure plesk only for one single domain, in this case domain.com</p>
<p>If you want to configure it for all sites run:</p>
<pre class="code"># /usr/local/psa/admin/bin/websrvmng -a</pre>
<p>Restart apache web server:</p>
<pre class="code"># /usr/sbin/apache2ctl stop
# /usr/sbin/apache2ctl start</pre>
<p>Check the repository:</p>
<pre class="code">http://domain.com/svn</pre>
<p>So, it seems that it is working, we can see:</p>
<pre class="code">Revision 0: /
Powered by Subversion version 1.4.4 (r25188).</pre>
<p>I hope that also for you. <img src='http://www.vioan.ro/wp/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> )</p>
<p>Next step is to restrict the access to our repository to give access only for some users:</p>
<pre class="code">DAV svn
SVNPath /home/svn/
AuthType Basic
AuthName “Private Repository”
AuthUserFile /etc/svn_auth_file
Require valid-user</pre>
<p>We can add first user which is able to access our repository (use <em>htpasswd2</em> if you have apache2):</p>
<pre class="code"># htpasswd -cm /etc/svn_auth_file firstuser</pre>
<p>-m means that we want to use MD5 encryption for passwords</p>
<p>To add the second user (don’t use -c option, it is used only the first time to create svn_auth_file):</p>
<pre class="code"># htpasswd -m /etc/svn_auth_file seconduser</pre>
<p>Bye!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vioan.ro/wp/2007/07/31/how-to-install-subversion-on-plesk-81/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>How to use vhost.conf in Plesk</title>
		<link>http://www.vioan.ro/wp/2007/07/31/how-to-use-vhostconf-in-plesk/</link>
		<comments>http://www.vioan.ro/wp/2007/07/31/how-to-use-vhostconf-in-plesk/#comments</comments>
		<pubDate>Tue, 31 Jul 2007 09:46:14 +0000</pubDate>
		<dc:creator>ionut</dc:creator>
				<category><![CDATA[Plesk]]></category>

		<guid isPermaLink="false">http://www.vioan.ro/wp/?p=22</guid>
		<description><![CDATA[Maybe you need to do some specific configurations for a domain or subdomain and you tried to do directly in httpd.include file. You saw that it works for the momment but plesk will delete again your specific configurations from this file. So, in this case the answer is vhost.conf file. This file will be placed [...]]]></description>
			<content:encoded><![CDATA[<p>Maybe you need to do some specific configurations for a domain or subdomain and you tried to do directly in <em>httpd.includ</em>e file. You saw that it works for the momment but plesk will delete again your specific configurations from this file. So, in this case the answer is <em>vhost.conf</em> file. This file will be placed inside your domain’s conf directory, usually found at /var/www/vhosts/domain.com/conf. Create a file called vhost.conf in whatever editor you prefer. I use vim.</p>
<p>You can now put in any Apache configuration options like you would into httpd.include. In my case I wanted to do only one thing, to have subversion repository accesible over web, without any kind of access restriction.<br />
Here is my vhost.conf file:</p>
<pre><code>
<location>
DAV svn
SVNPath /home/svn
</location>
</code></pre>
<p>Now, you need to tell Plesk to update it’s information.<br />
You have to run:</p>
<pre><code># /usr/local/psa/admin/sbin/websrvmng -u --vhost-name=domain.com</code></pre>
<p>this will configure plesk only for one single domain, in this case <em>domain.com</em><br />
If you want to configure it for all sites run:</p>
<pre><code># /usr/local/psa/admin/bin/websrvmng -a</code></pre>
<p>After this command if you look to httpd.include file, will see that your httpd.include will have an include line for your vhost.conf, something like this:</p>
<pre><code>Include /srv/www/vhosts/domain.com/conf/vhost.conf</code></pre>
<p>There is also a vhost.conf file for subdomain in their DocumentRoot directory, if you want to do some specific things for subdomain.</p>
<p>That&#8217;s all, bye!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vioan.ro/wp/2007/07/31/how-to-use-vhostconf-in-plesk/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Panache and Peril with Plesk (Spamassassin instalation)</title>
		<link>http://www.vioan.ro/wp/2007/07/29/panache-and-peril-with-plesk-spamassassin-instalation/</link>
		<comments>http://www.vioan.ro/wp/2007/07/29/panache-and-peril-with-plesk-spamassassin-instalation/#comments</comments>
		<pubDate>Sun, 29 Jul 2007 10:12:46 +0000</pubDate>
		<dc:creator>ionut</dc:creator>
				<category><![CDATA[Plesk]]></category>

		<guid isPermaLink="false">http://www.vioan.ro/wp/?p=28</guid>
		<description><![CDATA[  This is a copy of the original article, see it here
With this new dedicated server, I chose Plesk as a control panel solely because I hated it less than Ensim or cPanel. Normally I’d do all the installation, configuration, and tweaking of a server myself, but I just don’t have time for that [...]]]></description>
			<content:encoded><![CDATA[<p class="level1">  This is a copy of the original article, see it <a href="http://www.disobey.com/node/1759" class="urlextern" title="http://www.disobey.com/node/1759" rel="nofollow">here</a></p>
<p>With this new dedicated server, I chose Plesk as a control panel solely because I hated it less than Ensim or cPanel. Normally I’d do all the installation, configuration, and tweaking of a server myself, but I just don’t have time for that anymore. The biggest problem I have with control panels is that they make it very hard to do manual configs the normal Linux way: changes either get overwritten or ignored. Plesk is a little easier to live with in this regard; what follows are my last mile tweaks.</p>
<p>While Plesk allows you to create a chrooted <acronym title="File Transfer Protocol">FTP</acronym> user for a domain, it doesn’t have a front end for adding another, much less one constrained a particular subdirectory of that domain. Plesk’s configuration of ProFTPD chroots any user with a group of <em>psacln</em>. Via the shell, just <em>useradd</em> a new user with the desired home directory, use <em>/bin/false</em> for the shell so they can’t <acronym title="Secure Shell">SSH</acronym> in, and add them to group <em>psacln</em>. You’ll also need to make sure that the <em>httpdocs</em> directory is <em>751</em>, not the default <em>750</em>.</p>
<p>Plesk charges $49.00 to provide a <acronym title="Graphical User Interface">GUI</acronym> for SpamAssassin configuration. While I didn’t save any money doing this myself, maybe you will: here’s how to get SpamAssassin going with Plesk’s qmail implementation. If you have the Plesk SpamAssassin RPM installed (usually available in <em>/root/swsoft</em>), it provides a <em>spammng</em> command line utility for tweaking the SpamAssassin configuration. This utility appears to work without checking your license information: you can run <em>/etc/init.d/spamassassin stop</em> than <em>spammng -c -C start</em>. This restarts the spamd daemon with the proper command line flags for Plesk’s qmail install.</p>
<p>Going a bit further, try <em>spammng -c -C -e –mailname “user@domain.com” start</em>: this will enable SpamAssassin for the specified mailbox by editing the <em>.qmail</em> file in the relevant directory. For my install, this was <em>/var/qmail/mailnames/domain.com/user</em>. With these two bits of information, we can combine Plesk’s qmail with the default SpamAssassin installation without spending any cash. I have not yet figured out how to do this server wide (every incoming piece of mail is processed) or domain wide (every mail for a specific domain is processed). You?</p>
<p>In the <em>.qmail</em> file, Plesk writes the following:</p>
<pre class="code">| /usr/local/psa/bin/psa-spamc accept
| true
./Maildir/</pre>
<p><em>psa-spamc</em> is a shell wrapper around the SpamAssassin <em>spamc</em> utility and allows one argument: whether to “accept”/deliver mail that is flagged as spam based on the <em>/etc/mail/spamassassin</em>/ configuration, or whether to “reject” it. It’d be nice to have some granularity to say “reject everything over score 10”, but eh, not a biggie.</p>
<p>The last thing is to reteach the <em>/etc/init.d/spamassassin</em> startup script. Since we haven’t paid Plesk to fiddle with SpamAssassin, we have to teach our default install how to interact with Plesk’s qmail without their help. If you’ve started the <em>spamd</em> daemon from Plesk’s <em>spammng</em>, run the following to capture the startup configuration: <em>ps auwx | grep spamd</em>. You’ll get something along the lines of:</p>
<pre class="code">/usr/bin/spamd --username=popuser --daemonize --nouser-config --helper-home-dir=/var/qmail --max-children 5 --create-prefs --virtual-config-dir=/var/qmail/mailnames/%d/%l/.spamassassin --pidfile=/var/run/spamd/spamd_full.pid --socketpath=/tmp/spamd_full.sock</pre>
<p>Open up <em>/etc/sysconfig/spamassassin</em> and make it look like:</p>
<pre class="code">SPAMDOPTIONS="-d -c -m5 -H /var/qmail --username=popuser --nouser-config
--virtual-config-dir=/var/qmail/mailnames/%d/%l/.spamassassin --socketpath=/tmp/spamd_full.sock"
SPAMD_PID=/var/run/spamd/spamd_full.pid</pre>
<p>SPAMDOPTIONS is one line. Restart <em>spamd</em> with <em>/etc/init.d/spamassassin restart</em> and check Plesk’s qmail log at <em>/usr/local/psa/var/log/maillog</em>. If everything goes right, you should be able to send yourself a piece of mail and notice two things: spamd will process each incoming message and report the results and a <em>.spamassassin</em> directory will show up in the right domain and user directory under <em>/var/qmail/mailnames</em>/. Done.</p>
<p>Plesk’s licensing is annoying in other ways: I can only use 30 domains within my current install. Thankfully, domain aliases don’t count against this limitation and, with Drupal’s multisite capabilities, I can run any amount of domains on one code base with multiple databases. Unfortunately, this is a problem when it comes to logfiles and analysis: I’m not entirely sure if Apache’s ServerAlias is considered %v for split-logfile. Needs more testing before I can fully implement domain aliases.</p>
<p>====</p>
<ul>
<li class="level1">
<p class="li"> in order to process spammassassin the email we need  a .qmail file like this:</p>
</li>
</ul>
<pre class="code">bijoux# cat /var/qmail/mailnames/domain.com/user/.qmail
| /usr/local/psa/bin/psa-spamc accept
| true
./Maildir/</pre>
<p>for every user.</p>
<p>to obtain this you can edit the file or you can try next command, to update .qmail file for specific user.</p>
<pre class="code">bijoux# /usr/local/psa/admin/bin/spammng -c -C -e --mailname user@domain.com start</pre>
<ul>
<li class="level1">
<p class="li"> if you want to start SpamAssassin correctly at boot, put next lines in /etc/init.d/rc_local:</p>
</li>
</ul>
<pre class="code">/etc/init.d/psa-spamassassin stop
/etc/init.d/spamd stop
/usr/local/psa/admin/bin/spammng -c -C start</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.vioan.ro/wp/2007/07/29/panache-and-peril-with-plesk-spamassassin-instalation/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
