Plesk (15)


451 4.7.1 Service unavailable – try again later

  • May 19, 2013
  • Plesk

Good old Plesk. After an update yesterday, the Plesk milter greylisting has been confused, and returning 451 4.7.1 Service unavailable – try again later for all mail. Disabling grey listing within Plesk has at least allowed mail to now be delivered while i investigate, though no doubt Parallels will have a fix in the next […]

Read more...



add mail alias in plesk command line

To add a mail alias to an existing user on a Plesk server using the command line. [code] /usr/local/psa/bin/mail -u stuart@domain.com -aliases add:stu,stew [/code] Done. Much quicker than using the sometimes too-slow Plesk panel.

Read more...



Get mailbox info on command line Plesk

Using the command line is sometimes a lot quicker than fannying around with a panel in the browser. So to grab a quick summary of a users mailbox, the following one-liner will show all you need: [code] /usr/local/psa/bin/mail -i user@domain.co.uk [/code] On Plesk 11 If you’re running Plesk 11 you will see: [code gutter=”false”] $ […]

Read more...



Suspend / Unsuspend domain via command line Plesk

To suspend or unsuspend a domain on a Plesk server via the command line, we use the Plesk command line tools. Most are just one liners :) Suspend a Domain Suspend domain via command line Plesk [code]/usr/local/psa/bin/domain -u stuartsdomain.co.uk -status disabled[/code] Unsuspend a Domain Unsuspend domain via command line Plesk [code]/usr/local/psa/bin/domain -u stuartsdomain.co.uk -status enabled[/code]

Read more...



repairing a broken postfix on plesk 9

first, stop the mail manager: [code]/usr/local/psa/admin/sbin/mailmng –stop-service[/code] then locate all of the shitty mapped mailbox junk and delete it: [code]find /usr/local/psa/handlers/before-* -type f | while read h ; do [ ! -d /usr/local/psa/handlers/info/$(basename $h) ] && rm -f "$h"  ; done[/code] run mchk to rebuild all of the structure: [code]/usr/local/psa/admin/sbin/mchk –with-spam[/code] and restart the mail […]

Read more...



plesk / phpmyadmin database export.php not found

good old plesk and phpmyadmin combination nightmare that’s been an issue for several years… the problem: export.php not found occasionally when exporting databases from phpmyadmin you will get the file not found error. which is a stupid error because the file is in fact there, it’s caused by the attempted export of large databases and […]

Read more...



Get MySQL Passwords from Plesk (bash/command line)

Quick bash script to grep out MySQL passwords from Plesk’s PSA database. Script: [code language=”bash”]#!/bin/bash clear; echo "Searching MySQL user tables for: $1"; echo mysql psa -uadmin -p`cat /etc/psa/.psa.shadow` -e ‘SELECT domains.name AS domain_name, data_bases.name AS database_name, db_users.login, accounts.password FROM data_bases, db_users, domains, accounts WHERE data_bases.dom_id = domains.id AND db_users.db_id = data_bases.id AND db_users.account_id = […]

Read more...



Get Protected Directory Logins from Plesk

Quick bash script to grep out protected directory logins from Plesk’s PSA database. Script: [code language=”bash”]#!/bin/bash clear; you=`who am i | cut -d’ ‘ -f1`; echo -e "Hello $you, looking in the protected dirs password list for \033[33;1m$1\033[0m eh?"; echo mysql psa -uadmin -p`cat /etc/psa/.psa.shadow` -e ‘select pd.login, a.password, d.name, dirs.path from accounts a, pd_users […]

Read more...



Get FTP Passwords from Plesk

Quick bash script to grep out ftp passwords from Plesk’s PSA database. Script: [code language=”bash”]#!/bin/bash clear; echo "Searching the FTP password list for: $1"; echo mysql psa -uadmin -p`cat /etc/psa/.psa.shadow` -e ‘SELECT REPLACE(sys_users.home,"/home/httpd/vhosts/","") AS domain, sys_users.login,accounts.password FROM sys_users LEFT JOIN accounts on sys_users.account_id=accounts.id ORDER BY sys_users.home ASC’ | grep $1;[/code] Usage: [code gutter=”false”][root@mail bin]# grepftp […]

Read more...