Plesk

Postfix delete mail from mailq with perl script

#!/usr/bin/perl $REGEXP = shift || die “no email-adress given (regexp-style, e.g. bl.*\@yahoo.com)!”; @data = qx; for (@data) { if (/^(\w+)(\*|\!)?\s/) { $queue_id = $1; } if($queue_id) { if (/$REGEXP/i) { $Q{$queue_id} = 1; $queue_id = “”; } } }   open(POSTSUPER,”|postsuper -d -“) || die “couldn’t open postsuper” ;   foreach (keys %Q) { print…

Read More...

exceeds MaxRequestLen (16777216) plesk mod_fcgid unable to upload large files

So you’ve upgrade to Plesk and your users can’t upload large files any more. Upon looking at your log files, you see an fcgi error [warn] [client x.x.x.x] mod_fcgid: HTTP request length 16777256 (so far) exceeds MaxRequestLen (16777216) Where is maxrequestlen (16777216) set in Parallels Plesk 11 and Ubuntu It’s in a 2 locations… Edit…

Read More...

Plesk Ubuntu / Linux Log and Config file locations

http://kb.parallels.com/en/111283 Another nice page to help me remember where all those log files and config files are for Parallels Plesk Panel for Linux services logs and configuration files

Read More...

Plesk Small Business Panel 10.2.0 Upgrade Broke Plesk Control Panel :8443

After trying to upgrade Plesk Small Business Panel 10.2.0, I got some errors and was unable to load my plesk admin control panel on port 8443. Just a White Screen… I found this on parallels forum: location: /opt/psa/admin/bin autoinstaller –select-release-latest –upgrade-installed-components –ignore-key-errors when running, looked very similar to the bootstrapper.sh fix… and guess what? running…

Read More...

plesk 10.x upgrade apache2 won’t restart after making domain changes…

This is a post I made on parallels forum. If I can get this resolved, I’ll share the solution: http://forum.parallels.com/showthread.php?p=432805&posted=1#post432805 parallels, upgrading to 10 is a mess!!!!!!!!!!!!!!!!!!!!!!! I’ve been running plesk since version 6 and have had a few problem when upgrading. Nothing to the extent of this mess I’m experiencing with my painful upgrade…

Read More...

SMTP enable port 587 on ubuntu plesk when ISP’s block port 25

On plesk 8 and greater in Mail Server Settings turn on “Enable Message Submission” If your clients still can’t send through port 587 do the following. Enable Port 587 on Plesk when ISP’s block outgoing mail You should create the file or add the record manually “submission_psa” /etc/xinetd.d/submission_psa contents: service submission { socket_type = stream…

Read More...

Plesk 10 Upgrade Apache2 Restart Problem – “Address already in use: make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down”

Plesk 10 upgrade Apache2 won’t restart – Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down

Read More...

Plesk Ubutnu Qmail runs in shell but not in Plesk Services Management

the weirdest thing happened… /etc/init.d/qmail restart wouldn’t give any errors. however, trying to restart with plesk services management and the service would never start. this is because plesk checks Qmail with: telnet localhost 25 AND /usr/local/psa/admin/bin/mailmng –status-smtpd hmmm, qmail is running with the status check but not listening / bound to port 25. what controls…

Read More...

Plesk Ubuntu Remove DrWeb!

the MAGIC apt command to remove all of DrWeb: apt-get remove drweb-base drweb-bases drweb-common drweb-daemon drweb-updater psa-drweb-configurator root@blue:/home/primax# apt-get remove drweb-base drweb-bases drweb-common drweb-daemon drweb-updater psa-drweb-configurator Reading package lists… Done Building dependency tree Reading state information… Done The following packages were automatically installed and are no longer required: xulrunner-1.9-gnome-support Use ‘apt-get autoremove’ to remove them….

Read More...

PLESK upgrade 10.x from 9.5 stalls, quits, sucks!

——————————————————PLESK upgrade from 9.5.x to 10.x went like crap on my ubuntu server. Finally found this fix. # cd /usr/local/psa/bootstrapper/pp10.9.0-bootstrapper/# ./bootstrapper.sh repair this bootstrapper.sh repair ran for about 2 hours on our server. let it go. i’d like to point out that i upgraded everything in dpkg ——————————————————- /usr/local/psa/admin/bin/ ./httpdmng –reconfigure-all root@blue:/usr/local/psa/admin/bin# ./httpdmng –reconfigure-allroot@blue:/usr/local/psa/admin/bin# /etc/init.d/apache2…

Read More...

Plesk 9.5.x Assign Unique IP to Domain

Assign a unique IP to a domain in plesk. First make sure you have the IP available in your server. From Home > IP Addresses select the “Users” column to assign an IP to a user. Then, you can assign the IP to a specific domain owned by the User. Go to Domains > Domain…

Read More...

Ubuntu Backup MySQL Shell Script

found this great tutorial to backup plesk: http://www.cyberciti.biz/faq/ubuntu-linux-mysql-nas-ftp-backup-script/ #!/bin/bash

Read More...

plesk ubuntu disk usage size incorrect

plesk ubuntu says the client is 36.8gb when checking the file size in terminal with “du -hs” says the domain is only using 8gb. root@blue:/var/www/vhosts/files.millimetercreative.com# du -hs 8.4G . this domain has no mail accounts and @11mb in logs… i tried restarting plesk ubuntu with root@blue:/var/www/vhosts/files.millimetercreative.com# /etc/init.d/psa restart ii just tried psa stopall and start……

Read More...

plesk ubuntu mysql database user permissions

From home page of plesk select “Server” and then “Database Servers” The little “people” icon on the right allows you complete PHPMyAdmin access to your MySQL server     click the “Privileges” link from the home page    Find your user and edit…

Read More...

plesk ubuntu search maillog for domain

plesk 9.5.x maillog location: /usr/local/psa/var/log/maillog/ cat /usr/local/psa/var/log/maillog | grep “domain.com” > logfile_name.txt  

Read More...

ubuntu plesk AtMail login problems

AtMail login problems… Message loading failed – Please check the remote mail-server is responding correctly, remote mail-server online, no network timeouts, authentication error or mailbox lock http://forum.atmail.com/viewtopic.php?id=1006 root@blue:/var/log/atmail# cd /var/www/atmail root@blue:/var/www/atmail# nano showmail.php don’t know if you resolved the issue in showmail.php
try inserting 
    $email[‘EmailSubject’] = preg_replace(“/[^\x9\xA\xD\x20-\x{D7FF}\x{FFFD}\x{10000}-\x{10FFFF}]/u”,”-“,$email[‘EmailSubject’]); after : if ( $user[‘Advanced’] )
  …

Read More...

plesk 9 php.ini location

/etc/php5/apache2/php.ini so it’s here… remember this james!

Read More...

Plesk atmail webmail – “Your IP address has sent the maximum number of messages per day.”

A user was getting this error when trying to send out 600 messages (that’s a separate issue) Message Denied – Your IP address has sent the maximum number of messages per day. To reduce the possibility of spam, your outgoing message has been blocked. on Plesk 9 + Ubuntu, edit Config.php – /var/www/atmail/libs/Atmail/Config.php change the…

Read More...

force qmail to send queue – ubuntu + plesk + qmail

SMTP routes for qmail added our ISP’s outgoing mail server in hopes of getting stuff delivered. hopefully avoiding blacklists and stuff(); root@blue:/var/qmail/control# nano smtproutes added ISP :smtp.fuse.net root@blue:/var/qmail/control# /etc/init.d/qmail restart $Starting qmail: done restarted qmail root@blue:/var/qmail/control# /var/qmail/bin/qmail-qstat messages in queue: 74 messages in queue but not yet preprocessed: 0 root@blue:/var/qmail/control# kill -ALRM `ps ax |…

Read More...

courier imap restart

courier imap /etc/init.d/courier-authdaemon restart /etc/init.d/courier restart http://www.hard2get.org/apple/mail/apple-mail-plesk-imap.html http://www.sfr-fresh.com/unix/misc/courier-imap-4.6.0.tar.gz:a/courier-imap-4.6.0/tcpd/couriertcpd.html http://blog.makeitcomplete.com/2008/11/increase-the-number-of-connection-for-courier-imap-in-plesk/

Read More...